From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 14:13:26 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4192C1065675 for ; Thu, 28 Apr 2011 14:13:26 +0000 (UTC) (envelope-from kungfujesus06@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F3A768FC15 for ; Thu, 28 Apr 2011 14:13:25 +0000 (UTC) Received: by iwn33 with SMTP id 33so3126791iwn.13 for ; Thu, 28 Apr 2011 07:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=ZV87PZ+NhELx3Pq31gTjzy5E1bjJ+aSM07ODOjASc9k=; b=un1QO0Y2yP2XMJs1G2t/H0u6J8xguhEtCPqImScHbO/RkY86JugQhRZMjFGjcCOJ+8 DTgjO9iNEctsFrHtK2TLzt/ApOdeodsRCvigOtDXIXhtVeCTCztRBrpydEsBocHWWQqt oKHTkCaX3l7X/FyB+njza1PWQmsRz/TMbjOGc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Ur8TGbXM9j7nVQcsYH1sKeN8K014auEmC048FrykR0HccnQqd6svynsgshARmVUOZI t8brUXyWy9obt3ptzbjQRJcjPQ84btjULlqeddc17wgNwBM8a7W1s4nW6/JgGC9EX0br ZdnZuWCfMgulqvB02xSEXUqJ1BB8/qky2++ps= Received: by 10.42.221.70 with SMTP id ib6mr3333843icb.355.1304000004892; Thu, 28 Apr 2011 07:13:24 -0700 (PDT) Received: from ossumpossum.geop.uc.edu ([129.137.163.68]) by mx.google.com with ESMTPS id 13sm733095ibo.8.2011.04.28.07.13.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2011 07:13:23 -0700 (PDT) Date: Thu, 28 Apr 2011 10:13:39 -0400 From: Adam Stylinski To: Steven Hartland Message-ID: <20110428141339.GD2800@ossumpossum.geop.uc.edu> References: <20110428072946.GA11391@zephyr.adamsnet> <4DB965D8.7090906@sentex.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@freebsd.org Subject: Re: em0 performance subpar 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, 28 Apr 2011 14:13:26 -0000 --NtwzykIc2mflq5ck Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2011 at 02:52:59PM +0100, Steven Hartland wrote: > Running em's here we regularly see them hitting pretty much line rate > although there are a lot of different em's >=20 > Here we have the following under 8.0+ > em0@pci0:6:0:0: class=3D0x020000 card=3D0x000015d9 chip=3D0x10968086 rev= =3D0x01 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Intel PRO/1000 EB (Intel PRO/1000 EB)' > class =3D network > subclass =3D ethernet >=20 > You don't say which OS version your running? >=20 > Regards > Steve >=20 > ----- Original Message -----=20 > From: "Mike Tancsa" > To: "Adam Stylinski" > Cc: > Sent: Thursday, April 28, 2011 2:04 PM > Subject: Re: em0 performance subpar >=20 >=20 > > On 4/28/2011 3:29 AM, Adam Stylinski wrote: > >> Hello, > >> > >> I have an intel gigabit network adapter (the 1000 GT w/chipset 82541PI= ) which performs poorly in Freebsd compared to the same=20 > >> card in Linux. I've tried this card in two different freebsd boxes an= d for whatever reason I get poor transmit performance.=20 > >> I've done all of the tweaking specified in just about every guide out = there (the usual TCP window scaling, larger nmbclusters,=20 > >> delayed acks, etc) and still I get only around 600mbps. I'm using jum= bo frames, with an MTU of 9000. I'm testing this with=20 > >> iperf. While I realize that this may not be the most realistic test, = linux hosts with the same card can achieve 995Mbit/s to=20 > >> another host running this. When the Freebsd box is the server, Linux = hosts can transmit to it at around 800 something Mbit/s.=20 > >> I've increased the transmit descriptors as specified in the if_em man = page, and while that gave me 20 or 30 more mbit/s, my=20 > >> transmit performance is still below normal. > >> > >> sysctl stats report that the card is trigger a lot of tx_desc_fail2: > >> dev.em.0.tx_desc_fail2: 3431 > > > > Try the tests using the tools in /usr/src/tools/tools/netperf to > > generate / test udp traffic. > > > > Perhaps give the driver from HEAD a try. There are a few fixes to it. I > > back ported it to RELENG_8, but it should work on 8.2R as well. > > > > http://www.tancsa.com/em-723.tgz > > > > what does pciconf -lvc for your em NIC show ? > > also, vmstat -i > > > > ---Mike > > > > > > > > --=20 > > ------------------- > > Mike Tancsa, tel +1 519 651 3400 > > Sentex Communications, mike@sentex.net > > Providing Internet services since 1994 www.sentex.net > > Cambridge, Ontario Canada http://www.tancsa.com/ > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >=20 >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > This e.mail is private and confidential between Multiplay (UK) Ltd. and t= he person or entity to whom it is addressed. In the event of misdirection, = the recipient is prohibited from using, copying, printing or otherwise diss= eminating it or any information contained in it.=20 >=20 > In the event of misdirection, illegible or incomplete transmission please= telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. >=20 I am running FreeBSD 8.2-RELEASE on one of the boxes with the issues, and t= he other box which has the same issue is 8-STABLE. The issue doesn't seem = isolated to one box though and like I said, Linux seems to not have this is= sue. --=20 Adam Stylinski PGP Key: http://pohl.ececs.uc.edu/~adam/publickey.pub Blog: http://technicallyliving.blogspot.com --NtwzykIc2mflq5ck Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJNuXYSAAoJED6sRHE6TvmnVyYP/1hIzq7S7JMvNPPqbt2eN+yN cN9e4qKnrjRpui5fbufI4WPlTGzKCtN69vhgkXq1k5oKTF9We48UN+eWiLmi4QP+ tGbyHmA6GQMLhohq8iPOiPLJnigIyk5kXxlIMlA5Wf6toKwmQHugtUv1FLHX3ml2 pYO+eZ7xkqHTjy2QwtBkq4TqiSAxi6WG5HMPA5pBEHe0TOgPyGDq4mNK0FXpama4 lOSLpnV/wCSXIscCfJ+HrcVIsCfgWpsC0sjroowm8jSmjuXQweOn0hHvut8puD54 9zeRlLiy6WLhP3BQo2ByJ9FBMJpoDjoh08Bm4/2uXUgcg5aFByNR6YTjuEtl+bfU 8FLKMg0LIEmexgYfWRSJ9RZ8eHmVCmI3bh+5bGaxcYfGRFYd/DLWaeNaosdQs5Sa e7CmaQaHhylIG/NsagQJo+pcbxtLF+4sY7atEiijidS0Yb1DnZlFpgU/G/l/PFKm 6J4S8wPq0COmZgOWJHcIJvHOXxKYTY5jwDL5fhlmwjHQgKGh6ZLF+HSAR9UmRr/X YZGbTpONcc9oZ2A/LSQi3zPNNCCZpMIbEyH/CpWfBgYIyujdJpf/nQ/0PhZmZa9l 1T2FduEjtBNdlz+bQULmxnKtf57sf+ocK76iqJ3tXfSZiLTaKkEOWCfmc9sbRFsO JbyLK9BMcHZ0rYWZELtn =/b2b -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck--