From owner-freebsd-net@FreeBSD.ORG Thu Aug 11 02:42:30 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9E5716A41F for ; Thu, 11 Aug 2005 02:42:30 +0000 (GMT) (envelope-from david.mao@thomson.net) Received: from dmzraw5.extranet.tce.com (dmzraw5.extranet.tce.com [157.254.234.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A7A343D45 for ; Thu, 11 Aug 2005 02:42:30 +0000 (GMT) (envelope-from david.mao@thomson.net) Received: from indyvss2.am.thmulti.com (unknown [157.254.92.61]) by dmzraw5.extranet.tce.com (Postfix) with ESMTP id A5BD5B2C for ; Thu, 11 Aug 2005 02:42:29 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by indyvss2.am.thmulti.com (Postfix) with ESMTP id 990388C03 for ; Thu, 11 Aug 2005 02:42:29 +0000 (GMT) Received: from indyvss2.am.thmulti.com ([127.0.0.1]) by localhost (indyvss2 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17699-01-50 for ; Thu, 11 Aug 2005 02:42:27 +0000 (GMT) Received: from indysmailcs01.am.thmulti.com (indysmailcs01.am.thmulti.com [157.254.96.5]) by indyvss2.am.thmulti.com (Postfix) with ESMTP id A5C7D8C0A for ; Thu, 11 Aug 2005 02:42:27 +0000 (GMT) Received: from indysmailbh01.am.thmulti.com ([157.254.96.4]) by indysmailcs01.am.thmulti.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 10 Aug 2005 21:42:27 -0500 Received: from tahkexch2k.ap.thmulti.com ([141.11.13.12]) by indysmailbh01.am.thmulti.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 10 Aug 2005 21:42:27 -0500 Received: from tahksmail01.ap.thmulti.com ([141.11.13.38]) by tahkexch2k.ap.thmulti.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 11 Aug 2005 10:40:45 +0800 Received: from bjngsmail01.ap.thmulti.com ([10.11.70.35]) by tahksmail01.ap.thmulti.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 11 Aug 2005 10:40:44 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Aug 2005 10:40:36 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Why Ierrs is so high? Thread-Index: AcWeHGtO6EMUAyg8S1yNRq1vj9A6pQAAB/DwAABcx1A= From: "Mao Shou Yan" To: X-OriginalArrivalTime: 11 Aug 2005 02:40:44.0395 (UTC) FILETIME=[1258E3B0:01C59E1E] X-Virus-Scanned: amavisd-new at thomson.net Subject: FW: Why Ierrs is so high? 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, 11 Aug 2005 02:42:31 -0000 -----Original Message----- From: Mao Shou Yan=20 Sent: 2005=C4=EA8=D4=C211=C8=D5 10:34 To: 'Dave+Seddon' Subject: RE: Why Ierrs is so high? I'm also using polling enable and set HZ to 10000, the CPU is p4 3.0G. The system is 5.4 too. My conf: kern.polling.enable=3D1 kern.polling.burst_max=3D600 kern.polling.each_burst=3D10 And also gots lots of kern.polling.lost_polls and kern.polling.suspect. -----Original Message----- From: owner-freebsd-net@freebsd.org = [mailto:owner-freebsd-net@freebsd.org] On Behalf Of Dave+Seddon Sent: 2005=C4=EA8=D4=C211=C8=D5 10:26 To: freebsd-net@freebsd.org Subject: Re: Why Ierrs is so high? Greetings,=20 Yeah I'd say there is something funny also. I've stuffed around with HZ = and=20 polling settings heaps and could only manage about 120MB/s-ish of HTTP=20 traffic. I'm as running 5.4-stable from about 2-3 weeks ago.=20 /etc/sysctl.conf kern.polling.enable=3D1 kern.polling.each_burst=3D50 #need to edit /usr/src/sys/kern/kern_poll.c for set this kern.polling.burst_max=3D1500 #DO NOT SET THIS HIGHER THAN 65536 * 2 (FREEBSD BUG) net.inet.tcp.sendspace=3D131072 net.inet.tcp.recvspace=3D131072 kern.random.sys.harvest.ethernet=3D0 kern.random.sys.harvest.interrupt=3D0 kern.ipc.somaxconn=3D1024=20 I still get lots of kern.polling.lost_polls and kern.polling.suspect.=20 How do you edit the RXD is 256, TXD is 256? ---> in /usr/src/sys/dev/em/if_em.h, the default is 256/256. How do you view the errors when you set "sysctl hw.em0.stats=3D1"?=20 ----> sysctl hw.em0.stats=3D1, then see it using dmesg. Regards, Dave=20 Mao Shou Yan writes:=20 > Hi, all,=20 >=20 > I have a machine with 3 Intel pro1000 cards.=20 >=20 > em0 is in promisc mode, whose MAC controller is 82543 using fiber line > connected.=20 >=20 > em1, em2 is not connected with cable.=20 >=20 > Driver configuration is the default, RXD is 256, TXD is 256.=20 >=20 > =20 >=20 > Result of "netstat -i":=20 >=20 > =20 >=20 > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll=20 > em0 1500 00:03:47:de:72:36 1701943600 369823630 1 0 0=20 > em1 1500 00:10:dc:56:8b:b5 5561 0 4608 0 0=20 > em2 1500 00:03:47:42:6d:17 0 0 0 0 0=20 >=20 > =20 >=20 > Pps of em0 is about 20k/pps, and bandwidth is no more than 150Mbps.=20 >=20 > When I use "sysctl hw.em0.stats=3D1", I found the number of "missed > packets" is very high, which is about equal Ierrs.=20 >=20 > And I also found the number of"receive with no buffers"is raising with > about 10 per second.=20 >=20 > =20 >=20 > The machine is no extra load, only a raw system with em0 in promisc > mode!=20 >=20 > =20 >=20 > I'm looking forward your help!=20 >=20 > _______________________________________________ > 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 _______________________________________________ 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"