From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 23:43:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CB9435C for ; Wed, 25 Jun 2014 23:43:20 +0000 (UTC) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [IPv6:2607:f8b0:400c:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29CA722DC for ; Wed, 25 Jun 2014 23:43:20 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id jx11so2877944veb.33 for ; Wed, 25 Jun 2014 16:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4VuagnSY1Aw5/38wzBx2jCd0AkjVzV4JH2OttzuDvjE=; b=CbDFqPLkG9FLSZ/v2PStasRNjqDyZxmxHr1cTA1eXhQ9eCLmV/fVVD36l81WLnzvh+ iP8oxrUTVMlGcmRVZkvcUIcuK+ocdlLb/ijX5d7ipL+Pg1hkwMkBghS6jzASoKFK56iQ Jyr2YvaepTeVV/jtu0jQHb1Z8gbiNlVrJEtLVmqcFdtUCanuIDupZmx4lE8qVixC9TNp sqiRvPwNKtIns1uygPwwHinMYRBrYgRtdtJ2kScRGNPCeWih+JJniK+FxdvSwtK/BPKG ZhyEINBv/4XUyiqZy1qfYELeHLPYQ9WYbtWCVY7Zn4v+1JCs4WW1MTx6TIzGywYPqDdS MaDQ== MIME-Version: 1.0 X-Received: by 10.52.24.68 with SMTP id s4mr8165494vdf.37.1403739799158; Wed, 25 Jun 2014 16:43:19 -0700 (PDT) Received: by 10.220.153.70 with HTTP; Wed, 25 Jun 2014 16:43:19 -0700 (PDT) In-Reply-To: <1403696257.14362.YahooMailNeo@web162502.mail.bf1.yahoo.com> References: <1403617939.95369.YahooMailNeo@web162504.mail.bf1.yahoo.com> <20140624180757.0f9f0310af1a201a6cf403c0@yahoo.es> <1403696257.14362.YahooMailNeo@web162502.mail.bf1.yahoo.com> Date: Wed, 25 Jun 2014 16:43:19 -0700 Message-ID: Subject: Re: kern.ipc.nmbclusters limit reached makes a server go down, please help From: perikillo To: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 23:43:20 -0000 On Wed, Jun 25, 2014 at 4:37 AM, Stefan Stere wrote: > Thanks Eduardo > > what values do you recommend ? i have 1 gb of ram and rarely use more than > 20%, as it's a tor box only. > should i add those values to ensure they enforce at boot in > /etc/sysctl.conf ? > > > On Tuesday, June 24, 2014 7:08 PM, Eduardo Morras > wrote: > > > > On Tue, 24 Jun 2014 06:52:19 -0700 > Stefan Stere wrote: > > > Hi, > > > > I have a vmware virtual server running FreeBSD 10.0 STABLE > > The virtual server has 100mbps port. > > > > It is running a Tor router, consuming an average of 6-7 TB of monthly > > traffic. Its the only purpose of the server. > > > > Last night it went down, and vmware console log was saying: > > [zone: Mbuf_cluster] kern.ipc.nmbclusters limit reached > > > > nmbclusters shows/sets the number of network buffers the system has. Each > connection needs one buffer, if you get a connection peak, it can be > exhasuted. > > > > > > I don't know what this means - the traffic of the server is unlimited > > and nothing is capped in any way. What can I do to fix this? I have > > read on freebsd wiki that I might need to add some lines to sysctl ? > > can you please confirm? Thank you in advance. > > Show us the values of: > > #sysctl kern.ipc.nmbclusters > kern.ipc.nmbclusters: 25600 > > #sysctl kern.ipc.somaxconn > kern.ipc.somaxconn: 128 > > I put mine as example, but those values are for desktop use. Yours should > be bigger (131072, 512, f.ex.), don't set an arbitrarly high value because > increasing both values increase the memory needed by the kernel. > > HTH > > > --- --- > Eduardo Morras > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org > " > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > 'Show us the values of:'