Automatic TCP send socker buffer sizing
Jeremy Messenger
mezz7 at cox.net
Sat Nov 25 13:33:41 PST 2006
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
More information about the freebsd-current
mailing list