Re: Automatic TCP send socker buffer sizing

From: Jeremy Messenger <mezz7_at_cox.net>
Date: Sat, 25 Nov 2006 15:31:51 -0600
On Fri, 17 Nov 2006 08:02:28 -0600, Andre Oppermann <andre_at_freebsd.org>  
wrote:

> 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.

Is this relate with net.inet.tcp.sendspace? I reset my sysctl config back  
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+utorrent  
download/upload very fast and ustable without hog the CPU.

kern.ipc.maxsockbuf=2097152
net.inet.tcp.recvspace=262144
net.inet.tcp.sendspace=262144

Cheers,
Mezz


-- 
mezz7_at_cox.net  -  mezz_at_FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome_at_FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia_at_FreeBSD.org
Received on Sat Nov 25 2006 - 20:33:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:03 UTC