Re: SV: Automatic TCP send socker buffer sizing

From: Andre Oppermann <andre_at_freebsd.org>
Date: Fri, 17 Nov 2006 18:59:25 +0100
Morgan wrote:
>> A RELENG_6 version (for FreeBSD 6.x) of the patch is here:
>>   
>> http://people.freebsd.org/~andre/tcp_auto_sndbuf-20061116-RELE
>> NG_6.diff
>>
>> Just apply this patch and recompile your kernel.  It is 
>> activated by default.
> 
> Downloaded, applied, recompiled, installed and rebooted without any errors.

Good.

> I did however add the sysctl variables to my /etc/sysctl.conf just in case.

Unnecessary. ;-)

>> Be aware that all socket buffer sizing events get logged to 
>> syslog under LOG_DEBUG.
> 
> Does this mean they will automatically show up in /var/log/debug.log?

Yes, or in /var/log/messages.

>> This may affect overall system 
>> performance and you may want to disable logging to disk of 
>> this in syslogd.conf.
> 
> I could use some help with the syntax for this... :-)

I'd remove "kern.debug" from the /var/log/messages line and comment
out the /var/log/debug.log line for the time being after you see a
couple of lines with tcp_output: ...

> And a final question: Will this feature work regardless of what side
> initiates the TCP connection? Or will I have to instruct my ftp-users to use
> active mode only when they transfer files to/from my FreeBSD box?

It doesn't matter which side opens the connection.

-- 
Andre
Received on Fri Nov 17 2006 - 16:59:30 UTC

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