From owner-freebsd-current@FreeBSD.ORG Thu Jan 3 05:37:33 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5375216A418 for ; Thu, 3 Jan 2008 05:37:33 +0000 (UTC) (envelope-from gwright@antiope.com) Received: from QMTA04.westchester.pa.mail.comcast.net (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) by mx1.freebsd.org (Postfix) with ESMTP id EA06413C448 for ; Thu, 3 Jan 2008 05:37:32 +0000 (UTC) (envelope-from gwright@antiope.com) Received: from OMTA09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA04.westchester.pa.mail.comcast.net with comcast id YLqe1Y00A0SCNGk050dd00; Thu, 03 Jan 2008 05:26:31 +0000 Received: from [192.168.1.100] ([123.116.115.38]) by OMTA09.westchester.pa.mail.comcast.net with comcast id YVSE1Y0090pmadn3V00000; Thu, 03 Jan 2008 05:26:22 +0000 X-Authority-Analysis: v=1.0 c=1 a=GeIttaVd03IA:10 a=6I5d2MoRAAAA:8 a=zGfodBCagz04itHu6fAA:9 a=oRLdVFFdN8iKPX6VvBwA:7 a=OoygN6XzZZiPjG3NddSyJKGTFf4A:4 a=8pM5Lrggm8MA:10 a=SV7veod9ZcQA:10 a=LROfrJfmX20A:10 a=HgpzGGeNr9EA:10 a=3SmO1NJXDBsA:10 a=JH8fDtLDgvtDco9aiZ0A:9 a=He4oDvUukjSQnFtdrJUA:7 a=Vhc2fVty9fFnr8lrc5ATSXUE7M4A:4 a=37WNUvjkh6kA:10 Message-Id: <15E2F52A-9502-4B9A-BA35-C4B4CB6173EE@antiope.com> From: Gregory Wright To: JD Bronson In-Reply-To: <20071230143156.45A31602A2@cheyenne.hanadarko.com> Mime-Version: 1.0 (Apple Message framework v915) Date: Thu, 3 Jan 2008 00:26:21 -0500 References: <20071230143156.45A31602A2@cheyenne.hanadarko.com> X-Mailer: Apple Mail (2.915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: 7.0-RC1 bge network performance issue? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 05:37:33 -0000 Hi JD, On Dec 30, 2007, at 9:31 AM, JD Bronson wrote: > I am not sure how or where to ask this so I will start here.. > > I have an IBM P4-3.06ghz machine with dual 10/100 BGE nics and 1GB ram > with ATA133 IDE drives. > > I have noticed the following and wondering how I can troubleshoot > this or what's changed. > > Using ANY 6.x branch, including 6.3-RC1 I have no issues at all. > Using the same hardware/machine exactly and using 7.0-RC1 > I am seeing terrible network writes into the machine. > > my bge nics are set to 100FDX and incoming FTP rates are dismal > at around 2-3MB/sec max. > > FTP outbound rates OUT of the box are at full 11-12MB/sec. > > Using 6.3-RC1 - traffic is the same in or out of the box. > (I am not using pf) > One thing to check is whether you are getting duplicate ACKs out of your box. A good way to check is to set up netperf client on a spare machine and a netperf server on your P4/bge box. Do a TCP test while looking at the packets with Wireshark (or your favorite packet logger). The duplicate ACK problem seems to be caused by a firmware bug on some models of the bge chipset. It's not just a FreeBSD problem, it was seen on Gentoo linux as well. (Apparently later versions of the gt3 driver --- the linux equivalent of bge --- fixed this problem, but it is not immediately apparent what the magic change was.) I saw the duplicate ACK problem on both 6.x and 7.0-BETA2, but it seemed a good deal worse with 7.0. One interesting thing on my dual Opteron box was that the problem didn't happen when running at 1Gb/s, it showed up when I ran at 100 Mb/s. I suspect some subtlety in initializing the chip is behind the duplicate ACKs. Some people have suggested TCP segmentation offloading (TSO) could be the root cause. You could also check if TSO is enabled, and if it is, disable it with ifconfig (8). Best Wishes, Greg Gregory Wright Antiope Associates LLC 18 Clay Street Fair Haven, New Jersey 07704 USA gwright@antiope.com 1 (732) 924-4549 1 (732) 345-8378 [fax] > If it's any help, I have noticed the exact same issue with OpenBSD > since anything newer than 3.7 and my posts to that group with this > issue have basically been unresponded to. > > I would love to keep using FreeBSD but cant with this issue. > > NetBSD 4.0 does not exhibit this behavior at this time. > > Any thoughts? Major changes on bge? Anything? > > It simply cant be my hardware as this is not an issue under the 6.x > branch. > > Thanks, > > -JD > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org > " >