From owner-freebsd-net@FreeBSD.ORG Mon Feb 23 21:40:20 2004 Return-Path: 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 8C1C616A504 for ; Mon, 23 Feb 2004 21:40:20 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 1067343D2D for ; Mon, 23 Feb 2004 21:40:20 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 2999 invoked from network); 24 Feb 2004 05:40:18 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 24 Feb 2004 05:40:18 -0000 X-pair-Authenticated: 209.68.2.70 Date: Mon, 23 Feb 2004 23:40:17 -0600 (CST) From: Mike Silbersack To: "Ronald F. Guilmette" In-Reply-To: <46780.1077593029@monkeys.com> Message-ID: <20040223233906.O5783@odysseus.silby.com> References: <46780.1077593029@monkeys.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: default socket receive buffer size, net.inet.tcp.recvspace (?) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 05:40:20 -0000 On Mon, 23 Feb 2004, Ronald F. Guilmette wrote: > I have just now found out that the kernel default value for > net.inet.tcp.recvspace, i.e. the default amount of receive > buffer space associated with a new socket is set to 56kB, > at least on the specific version of FreeBSD (4.7) that I'm > running. > > Just curious: why? > > 56kB seems like a somewhat odd number to pick for the default. > > Why not 32kB or else 64kB? Because once you hit 64K, you need to use TCP window scaling, and older versions of IPFilter had problems with window scaling. Once this was discovered, the value was reduced to 56K. I think that IPFilter was updated and the value was changed back, but I don't recall exactly. Mike "Silby" Silbersack