From owner-freebsd-net@FreeBSD.ORG Fri Nov 17 14:02:44 2006 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 54C5016A412 for ; Fri, 17 Nov 2006 14:02:44 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D7B443D5F for ; Fri, 17 Nov 2006 14:02:30 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 48802 invoked from network); 17 Nov 2006 13:54:36 -0000 Received: from dotat.atdotat.at (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 17 Nov 2006 13:54:36 -0000 Message-ID: <455DC0F4.1070309@freebsd.org> Date: Fri, 17 Nov 2006 15:02:28 +0100 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <455CB311.8040301@freebsd.org> In-Reply-To: <455CB311.8040301@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Automatic TCP send socker buffer sizing 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: Fri, 17 Nov 2006 14:02:44 -0000 Andre Oppermann wrote: > With automatic TCP send socket buffers we can start with a small buffer > and quickly grow it in parallel with the TCP congestion window to match > real network conditions. > > The patch is available here: > > http://people.freebsd.org/~andre/tcp_auto_sndbuf-20061116.diff > > Any testers, especially with busy FTP servers, are very welcome. A RELENG_6 version (for FreeBSD 6.x) of the patch is here: http://people.freebsd.org/~andre/tcp_auto_sndbuf-20061116-RELENG_6.diff Just apply this patch and recompile your kernel. It is activated by default. Be aware that all socket buffer sizing events get logged to syslog under LOG_DEBUG. This may affect overall system performance and you may want to disable logging to disk of this in syslogd.conf. -- Andre