From owner-freebsd-net@FreeBSD.ORG Wed Aug 3 08:39:07 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 4246416A41F for ; Wed, 3 Aug 2005 08:39:07 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from mail.thelostparadise.com (129pc197.sshunet.nl [145.97.197.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CC7943D55 for ; Wed, 3 Aug 2005 08:39:05 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from [195.16.84.92] (92-unused.virt-ix.net [195.16.84.92]) by mail.thelostparadise.com (8.13.1/8.13.1) with ESMTP id j738d3xa050211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Aug 2005 10:39:03 +0200 (CEST) (envelope-from pieter@thedarkside.nl) Message-ID: <42F082A2.1050908@thedarkside.nl> Date: Wed, 03 Aug 2005 10:38:58 +0200 From: Pieter de Boer User-Agent: Mozilla Thunderbird 1.0.5 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <1123040973.95445.TMDA@seddon.ca> <20050802225518.G53516@odysseus.silby.com> In-Reply-To: <20050802225518.G53516@odysseus.silby.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Dave+Seddon , freebsd-net@freebsd.org Subject: Re: running out of mbufs? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 08:39:07 -0000 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