Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2006 15:31:51 -0600
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Andre Oppermann" <andre@freebsd.org>
Cc:        freebsd-net@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: Automatic TCP send socker buffer sizing
Message-ID:  <op.tjlcrdsx9aq2h7@mezz.mezzweb.com>
In-Reply-To: <455DC0F4.1070309@freebsd.org>
References:  <455CB311.8040301@freebsd.org> <455DC0F4.1070309@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Nov 2006 08:02:28 -0600, Andre Oppermann <andre@freebsd.org> =
 =

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.tjlcrdsx9aq2h7>