From owner-freebsd-current@FreeBSD.ORG Fri Oct 8 14:23:19 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F44B16A4CE for ; Fri, 8 Oct 2004 14:23:19 +0000 (GMT) Received: from exchange.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id C891F43D2D for ; Fri, 8 Oct 2004 14:23:18 +0000 (GMT) (envelope-from gnagelhout@sandvine.com) X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 8 Oct 2004 10:23:14 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Packet passing performance study on exotic hardware. Thread-Index: AcStQNTeq/lrI+x+T1CgqQBCtAgGaAAAMlUw From: "Gerrit Nagelhout" To: "David Gilbert" , Subject: RE: Packet passing performance study on exotic hardware. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 08 Oct 2004 14:23:19 -0000 David Gilbert Wrote: >=20 > - with polling and excessive packets, it doesn't "receive" the full > load of packets. In netstat -w, they show as input "errors" > although the number of "errors" isn't strictly related to the > number of dropped packets. It's just some large number that > generally increases with the number of dropped packets. >=20 In em_update_stats_counters, errors is calculated as follows: /* Rx Errors */ ifp->if_ierrors =3D adapter->dropped_pkts + adapter->stats.rxerrc + adapter->stats.crcerrs + adapter->stats.algnerrc + adapter->stats.rlec + adapter->stats.rnbc +=20 adapter->stats.mpc + adapter->stats.cexterr; The extra errors you are talking about come from doing mpc + rnbc. =20 Only mpc (missed packet count) (and the other errors of course) should=20 be used.=20 Rnbc is an indication of the internal buffer filling up, but not yet=20 dropping packets, and should not be included. Gerrit