From owner-freebsd-current@FreeBSD.ORG Sat Nov 25 21:33:40 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA76416A412; Sat, 25 Nov 2006 21:33:40 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao04.cox.net (centrmmtao04.cox.net [70.168.83.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37CD643D68; Sat, 25 Nov 2006 21:32:50 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by centrmmtao05.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061125213112.VHCX27862.centrmmtao05.cox.net@eastrmimpo02.cox.net>; Sat, 25 Nov 2006 16:31:12 -0500 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id r9W61V00Q4iy4EG0000000; Sat, 25 Nov 2006 16:30:07 -0500 Date: Sat, 25 Nov 2006 15:31:51 -0600 To: "Andre Oppermann" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <455CB311.8040301@freebsd.org> <455DC0F4.1070309@freebsd.org> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <455DC0F4.1070309@freebsd.org> User-Agent: Opera Mail/9.02 (Linux) Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: Automatic TCP send socker buffer sizing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2006 21:33:41 -0000 On Fri, 17 Nov 2006 08:02:28 -0600, Andre Oppermann = = wrote: > Andre Oppermann wrote: >> With automatic TCP send socket buffers we can start with a small buff= er >> and quickly grow it in parallel with the TCP congestion window to mat= ch >> 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.d= iff > > 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 und= er > LOG_DEBUG. This may affect overall system performance and you may wan= t = > to > disable logging to disk of this in syslogd.conf. Is this relate with net.inet.tcp.sendspace? I reset my sysctl config bac= k = to default that was for wine+utorrent, so tested with wine+utorrent on = today (Nov 25th) RELENG_6 and works fine so far. [...] Nov 25 14:35:22 mezz kernel: tcp_output: inc sockbuf, old 65612, new = 73804, sb_cc 58553, snd_wnd 149760, sendwnd 36719 Nov 25 14:35:27 mezz kernel: tcp_output: inc sockbuf, old 73804, new = 81996, sb_cc 65608, snd_wnd 148896, sendwnd 38283 Nov 25 14:35:27 mezz kernel: tcp_output: inc sockbuf, old 81996, new = 90188, sb_cc 72604, snd_wnd 148896, sendwnd 38283 Nov 25 14:35:29 mezz kernel: tcp_output: inc sockbuf, old 90188, new = 98380, sb_cc 79093, snd_wnd 149760, sendwnd 39988 [...goes on...] A bit off point, I have to setup this below in sysctl to get wine+utorre= nt = download/upload very fast and ustable without hog the CPU. kern.ipc.maxsockbuf=3D2097152 net.inet.tcp.recvspace=3D262144 net.inet.tcp.sendspace=3D262144 Cheers, Mezz -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org