From owner-freebsd-stable@FreeBSD.ORG Sat May 23 01:24:23 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC06310657C3 for ; Sat, 23 May 2009 01:24:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id A246F8FC13 for ; Sat, 23 May 2009 01:24:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id k40so846344rvb.43 for ; Fri, 22 May 2009 18:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=T77vSIaxK9qY9HeQXCAd6cIiuEdhwMwcHsNucNZhxnA=; b=mO8aHhLDeEdbUMZpp6PWG1zWd0N6+cAaaQ+/dwKqpQSDcs70mGZjXXaUY3PzIsMZpe wN0ZdM6nghZhaN1E6ryLf2NetNrjBeynzATgSlhUR7U6V18EcAaVnldZfBQ+T/dgUxrC ygh4g3+O9+tHG224A/iQZVGlLmzoppfAdnSxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ciUVCOdZtc3cBZTEFLeSZ+7grbOYxKDeQ//Jvbq9tvnWVMnVeUcDmsdp6dMRfV3SWg ykLIjFC2AWtD/qm+zEenFKUFDz2g4jhdDcZmpqpPKneckzEfvc+VAHw042eCjYLTV1oU T91YWgDPZRlMncKhIN2jDYMi657RP4gpTaKvI= Received: by 10.141.163.1 with SMTP id q1mr1907254rvo.126.1243041862384; Fri, 22 May 2009 18:24:22 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id f42sm849718rvb.21.2009.05.22.18.24.20 (version=SSLv3 cipher=RC4-MD5); Fri, 22 May 2009 18:24:21 -0700 (PDT) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Sat, 23 May 2009 10:34:52 +0900 From: Pyun YongHyeon Date: Sat, 23 May 2009 10:34:52 +0900 To: "Michael L. Squires" Message-ID: <20090523013452.GA22204@michelle.cdnetworks.co.kr> References: <4A09DEF1.2010202@delphij.net> <4A09FDB2.5080307@eyede.com> <20090513004131.GP65350@michelle.cdnetworks.co.kr> <20090514082750.GU65350@michelle.cdnetworks.co.kr> <310A73CC-A32D-4794-BF23-A49715AFCF99@nokia.com> <20090515085806.GX65350@michelle.cdnetworks.co.kr> <20090520173716.U1136@familysquires.net> <20090521034540.GM9043@michelle.cdnetworks.co.kr> <20090522153805.W1128@familysquires.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090522153805.W1128@familysquires.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: net.inet.tcp.tso=1 still neceesary with fxp was Re: TCP differences in 7.2 vs 7.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2009 01:24:23 -0000 On Fri, May 22, 2009 at 03:50:07PM -0400, Michael L. Squires wrote: > > > On Thu, 21 May 2009, Pyun YongHyeon wrote: > > >On Wed, May 20, 2009 at 05:55:29PM -0400, Michael L. Squires wrote: > >>I started having speed problems after shifting from 7.1-STABLE to > >>7.1-PRERELEASE. They have continued with 7.2-STABLLE. > >> > >>Reverting to the 7.1-STABLE kernel eliminated the problem. > >> > >>After downloading 7.2-STABLE from cvsup.freebsd.org at about 10:40 AM EST > >>on 5/20/2009, doing a buildworld/buildkernel/installkernel/installworld > >>cycle I still need to execute "net.inet.tcp.tso=1" to elminate throughput > >>problems between my home system (on Comcast) and my office PC (connected > >>via a Time-Warner connection). This also affects connections to other > >>systems; downloading Web pages (ebay.com) speeds up after I change the TSO > >>entry. > >> > >>The box in question runs NAT and has an fxp (Intel Pro100) interface > >>connected to a Comcast cable modem and an em (Intel Pro1000) interface > >>connected to the internal network. > >> > >>There are no network errors in "netstat -i" on either interface. > >> > >>The "if_fxp.c" code appears to be the May 7 version. > >> > > > >You should have cvs rev. 1.266.2.15 of if_fxp.c. > > > >>This is the dmesg entry for the card in question. The system is a dual > >>Xeon > >>Supermicro 1U box, 1GB RAM, single 300GB IDE hard drive. > >> > >>fxp0: port 0xe400-0xe43f mem > >>0xfebfd000-0xfebfdfff,0xfeb80000-0xfeb9ffff irq 27 at device 7.0 on pci0 > >>miibus0: on fxp0 > >> > > > >Since you use both em(4) and fxp(4) I'd like to know which driver > >has the issue. Instead of disabling TSO of network stack try > >disabling TSO for each interface. For instance, > >1. Diable TSO of em(4) and check you see the same issue > > (ifconfig em0 -tso). > >2. Diable TSO of fxp(4) and check you see the same issue > > (ifconfig fxp0 -tso). > > > > The version of if_fpx.c is in fact 1.266.2.15. > > Connecting to the FreeBSD box from a PC with a bash shell under XP > SP3/Cygwin OpenSSH I find > > (1) disable "tso" on the internal "em0" interface has no effect; but > > (2) disabling "tso" on the external "fxp0" inteface eliminates the > througput problem. The effect appears to be the same as using sysctl to > disable tso on all interfaces. > > With "tso" enabled on the "fxp0" interface the connection (reading email > using "pine" in a large window) hung completely. > > There are no errors in "netstat -i" nor in /var/log/messages. > > "netstat -e" on the XP PC shows no discards or errors; however, I don't > think I've ever seen a PC under Windows admit to network errors. > > The fxp0 interface connects to a Comcast cable modem, which eventually > connects to my office PC which is in the "iga.in.gov" domain hosted by > TimeWarner. > > I'll be happy to run anything else you want. > Would you capture the failing TCP session with tcpdump and mail me the URL of the captured file(off-list)?