From owner-freebsd-net@FreeBSD.ORG Wed Aug 3 23:16:36 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB85816A420 for ; Wed, 3 Aug 2005 23:16:36 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id D845543D49 for ; Wed, 3 Aug 2005 23:16:35 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 91411 invoked by uid 89); 3 Aug 2005 23:16:33 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Thu, 04 Aug 2005 09:16:32 +1000 (EST) References: <1123040973.95445.TMDA@seddon.ca> <20050802225518.G53516@odysseus.silby.com> <42F082A2.1050908@thedarkside.nl> In-Reply-To: <42F082A2.1050908@thedarkside.nl> To: freebsd-net@freebsd.org Date: Thu, 04 Aug 2005 09:16:31 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit From: Dave+Seddon Message-ID: <1123110992.91393.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Subject: Re: running out of mbufs? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 23:16:36 -0000 Perhaps a quick "fix" to the bug would be to output a message to the console when somebody tried to set the tcp.sendspace or tcp.recvspace space > 65535 * 2. Regards, Dave Seddon Pieter de Boer writes: > Mike Silbersack wrote: > >>> net.inet.tcp.sendspace=1024000 >>> net.inet.tcp.recvspace=1024000 >>> kern.ipc.maxsockbuf=20480000 >> I don't think large socket buffers have been tested well, it's possible >> that you're exhausting almost all of your mbufs with just a few >> connections - if you're really stuffing that much data in. I'd go back >> to the default settings for the above and try again. > > With the added note that the send/recv spaces should be 65535 * 2^x (which > 1024000 isn't). I might add that there's still a bug in the calculation of > the TCP window scale option with regards to the set window size, leading > to a FreeBSD system advertising a too large recvspace, which makes setting > this option right even more necessary. > (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/82470) > > -- > Pieter > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"