From owner-freebsd-questions@FreeBSD.ORG Tue Jun 24 16:08:01 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 881A1EF1 for ; Tue, 24 Jun 2014 16:08:01 +0000 (UTC) Received: from nm1-vm6.bullet.mail.ir2.yahoo.com (nm1-vm6.bullet.mail.ir2.yahoo.com [212.82.96.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6E002B40 for ; Tue, 24 Jun 2014 16:08:00 +0000 (UTC) Received: from [212.82.98.56] by nm1.bullet.mail.ir2.yahoo.com with NNFMP; 24 Jun 2014 16:07:52 -0000 Received: from [46.228.39.108] by tm9.bullet.mail.ir2.yahoo.com with NNFMP; 24 Jun 2014 16:07:52 -0000 Received: from [127.0.0.1] by smtp145.mail.ir2.yahoo.com with NNFMP; 24 Jun 2014 16:07:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1403626072; bh=3Kgq5GzoZNBb36iN2+5hcaRR/c6dopwb/yeXdVcwQyc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Disposition-Notification-To:Mime-Version:Content-Type:Content-Transfer-Encoding; b=vItdzfiIUAvB8jZq4ovr3DdZaabibk/hzruWuBELmwnlftoI/AAmCKDL6VrTOw42vXt25dE0Qtn6T9heHdhc4mmgpL7VRGmtMnj8FQqKq/PaV0IDpq4SjabzL+wlkuc0dSSYMzmhpthP5ED0CP5IJChDtbSYOBrviT3oWgoVG+w= X-Yahoo-Newman-Id: 254438.1110.bm@smtp145.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: X3H2zLYVM1mKwVrBLYWwH00EKGPD9hIzOsw68cScFIK_IXo aggaQiahCtFapoALfOObb4ZKHje2HGz79_IrDIPTq7UtctFgATAp5Si571BV YF9eEktcqMUb_eOUxXf_o6ZlENT5bfxXsPVUclE9rBNLLoOU228smJjzO3ws 7_WxsquexTUBjMAWh0O0ZafS5cCAGvJbQtaNkPSI3TNbBBv90tt9V3QwRDyp HtdwgX0JPtmgA4lzVO3lueUQAlYMb2sdwO.V4Z9_XPahHra78.htZFWTMzrs 9iXTr3gey3Qv19XEvctvsAO9VcjZjiz44RnhFiieng2GC0_y_jb.B2T7ry59 r9Of2pcUSmjq4g8Hlr9IypKTSbwBDqjidl9d1U3lPfSOKz7Tgfgwj4GBF7.R 3SJzr7uKeexADYbTU2qvU26pbJg._Aqe9.lhvUqq4tOAukQlqP9z4exTLEoN ySewXKUl0NLYDGFxOFXjBI8Ua4t7O3GyDpcEjJHVG4003lTSEJK3jTzkn X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR X-Rocket-Received: from localhost (emorrasg@212.21.233.80 with plain [63.250.193.228]) by smtp145.mail.ir2.yahoo.com with SMTP; 24 Jun 2014 16:07:52 +0000 UTC Date: Tue, 24 Jun 2014 18:07:57 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: kern.ipc.nmbclusters limit reached makes a server go down, please help Message-Id: <20140624180757.0f9f0310af1a201a6cf403c0@yahoo.es> In-Reply-To: <1403617939.95369.YahooMailNeo@web162504.mail.bf1.yahoo.com> References: <1403617939.95369.YahooMailNeo@web162504.mail.bf1.yahoo.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Tue, 24 Jun 2014 16:08:01 -0000 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