Automatic TCP send and receive socket buffer sizing

Chris chrcoluk at gmail.com
Thu Dec 21 19:37:26 PST 2006


On 22/12/06, LI Xin <delphij at delphij.net> wrote:
> Chris wrote:
> [...]
> >> > I ran cvsup again, unfortenatly there was changes in world since the
> >> > last cvsup so I have done a new buildworld as well to keep it all
> >> > synched and then done a unpatched kernel, after that I have patched
> >> > and using testkernel.  So far seems to be working fine.  Thanks
> >>
> >> Yes, you need to rebuild stuff that depends on TCP in-kernel structures,
> >> for instance netstat(1), etc., to pick up with the change.
> >
> > Oh so after the patch I have to do another buildworld not just kernel?
>
> It's not strictly required, if you do not use these utilities to get
> information about TCP connection.  However, it's recommended to do
> buildworld.
>
> BTW:  The best practice is to do buildworld *before* buildkernel, and do
> installkernel before installworld.
>
> Cheers,
> --
> Xin LI <delphij at delphij.net>    http://www.delphij.net/
> FreeBSD - The Power to Serve!
>
>
>
>
Sorry I was unaware it needed that as the send patch only needed a kernel.

I think only send windows are been adjusted as I noticed poor speeds
going 'to' the server.

debug.log has many like this.

Dec 22 03:35:24 heaven kernel: tcp_output: inc sockbuf, old 156144,
new 164336, sb_cc 153464, snd_wnd 127424, sendwnd 108600

which indicates send is been adjusted right? but nothing with recv.

Chris


More information about the freebsd-net mailing list