From owner-freebsd-net@FreeBSD.ORG Fri Dec 22 03:37:26 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 34F0616A403 for ; Fri, 22 Dec 2006 03:37:26 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id A90AF13C44B for ; Fri, 22 Dec 2006 03:37:25 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so3069076nfc for ; Thu, 21 Dec 2006 19:37:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lTXS8zKBJ42EnqiKAUTCz0wWvJWkHfLAT9xVmn+qzmF+aUeA+gJie9ZLUWNKFVWDDPuny3lZz+zyCKU3iVMvsqhhJ4uvJ3JGQErL8qRuCX7n2SRf3Cj23/OD6qZFRP61fH1Nw3OkRX6zDP+NY8Lehl59kyuzseS2EbWGkxPqhpM= Received: by 10.82.167.5 with SMTP id p5mr390263bue.1166758644344; Thu, 21 Dec 2006 19:37:24 -0800 (PST) Received: by 10.82.134.15 with HTTP; Thu, 21 Dec 2006 19:37:24 -0800 (PST) Message-ID: <3aaaa3a0612211937g12d97d5cm1f68ed8b943f9419@mail.gmail.com> Date: Fri, 22 Dec 2006 03:37:24 +0000 From: Chris To: "LI Xin" In-Reply-To: <458B4BF7.9060603@delphij.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <457F2D82.6000905@freebsd.org> <3aaaa3a0612210148n78b326a5wde5efa2e8dc4edb9@mail.gmail.com> <458A8BD6.5020004@delphij.net> <458A9633.1060908@delphij.net> <3aaaa3a0612211603i28111be4ve51ae47ef6c26bcd@mail.gmail.com> <458B3E39.8080601@delphij.net> <3aaaa3a0612211831u420aa76eq7088dcc9901d412b@mail.gmail.com> <458B4462.2010602@delphij.net> <3aaaa3a0612211855k16c2e87qdee8d6abfe627a5e@mail.gmail.com> <458B4BF7.9060603@delphij.net> Cc: freebsd-net@freebsd.org, Andre Oppermann , Jeremie Le Hen , Anton Yuzhaninov Subject: Re: Automatic TCP send and receive socket 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, 22 Dec 2006 03:37:26 -0000 On 22/12/06, LI Xin 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 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