From owner-freebsd-net@FreeBSD.ORG Thu May 31 18:21:41 2007 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 77C5316A421 for ; Thu, 31 May 2007 18:21:41 +0000 (UTC) (envelope-from freebsd@laws.ms) Received: from mail2.worria.com (mail2.worria.com [205.234.133.139]) by mx1.freebsd.org (Postfix) with SMTP id 2F19413C468 for ; Thu, 31 May 2007 18:21:40 +0000 (UTC) (envelope-from freebsd@laws.ms) Received: (qmail 5609 invoked by uid 399); 31 May 2007 18:21:41 -0000 Received: from unknown (HELO ?203.218.158.34?) (sales@worria.com@203.218.158.34) by mail2.worria.com with SMTP; 31 May 2007 18:21:41 -0000 X-Originating-IP: 203.218.158.34 Message-ID: <465F1219.3080004@laws.ms> Date: Fri, 01 Jun 2007 02:21:13 +0800 From: Pang User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd-net@freebsd.org References: <465ED66F.30902@laws.ms> <37f6bd601e453b39a3f70c0e95be3876@75.126.162.136> In-Reply-To: <37f6bd601e453b39a3f70c0e95be3876@75.126.162.136> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Download speed and TCPIP window 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: Thu, 31 May 2007 18:21:41 -0000 Thanks for reply. Nicolas Gieczewski wrote: > On Thu, 31 May 2007 22:06:39 +0800, Pang wrote: > >> Recently, I have leased a rack in Asianetcom and some bandwidth. >> However, the speed for my curcuit is substantially slower than my >> provider's company site. >> [...] >> *This server is using FreeBSD 6.2 patch 4 with Apache in the port tree. >> The kernel is custom built but I haven't made any modification in sysctl >> >> I have asked many techs in Asianetcom and they blamed on TCPIP window >> sizing. >> > > I used to have the same problem with my FreeBSD dedicated servers in the U.S. when I was living in South America with a latency of ~200 ms. Given identical hardware and connectivity, I could max out my download speed when downloading from a server running Linux, but would get no more than 100-150 KB/s when downloading from an otherwise identical FreeBSD box. > > The solution was to increase the size of the TCP send window on the FreeBSD server to about 128 KB--the default of 32 KB turned out to be way too small. > > # sysctl net.inet.tcp.sendspace=131072 > > After modifying this value, you need to restart any processes (e.g. Apache) that you want to take advantage of the change. > It doesn't work. I am still getting ~10KB/s speed. > Hope it helps. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Thanks Pang