From owner-freebsd-net@FreeBSD.ORG Fri Nov 17 17:59:30 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3B8916A47C for ; Fri, 17 Nov 2006 17:59:29 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5258843D77 for ; Fri, 17 Nov 2006 17:59:24 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 51730 invoked from network); 17 Nov 2006 17:51:29 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 17 Nov 2006 17:51:29 -0000 Message-ID: <455DF87D.8040604@freebsd.org> Date: Fri, 17 Nov 2006 18:59:25 +0100 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Morgan References: <013901c70a6f$84d7eee0$152ea8c0@phobos> In-Reply-To: <013901c70a6f$84d7eee0$152ea8c0@phobos> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: SV: Automatic TCP send socker buffer sizing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 17:59:30 -0000 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