From owner-freebsd-net@FreeBSD.ORG Sat Oct 8 02:04:12 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 7E59716A41F; Sat, 8 Oct 2005 02:04:12 +0000 (GMT) (envelope-from david.mao@thomson.net) Received: from dmzraw4.extranet.tce.com (dmzraw4.extranet.tce.com [157.254.234.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id F105443D46; Sat, 8 Oct 2005 02:04:11 +0000 (GMT) (envelope-from david.mao@thomson.net) Received: from indyvss1.am.thmulti.com (unknown [157.254.92.60]) by dmzraw4.extranet.tce.com (Postfix) with ESMTP id B4CD116E8; Sat, 8 Oct 2005 02:04:10 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by indyvss1.am.thmulti.com (Postfix) with ESMTP id 71545BBB02; Sat, 8 Oct 2005 02:04:10 +0000 (GMT) Received: from indyvss1.am.thmulti.com ([127.0.0.1]) by localhost (indyvss1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09466-01-55; Sat, 8 Oct 2005 02:04:08 +0000 (GMT) Received: from smtprelay2.indy.tce.com (smtprelay2.indy.tce.com [157.254.96.95]) by indyvss1.am.thmulti.com (Postfix) with ESMTP id 0E4D9BBAF1; Sat, 8 Oct 2005 02:04:08 +0000 (GMT) Received: from boulsmailbh01.eu.thmulti.com (localhost [127.0.0.1]) by smtprelay2.indy.tce.com (8.12.9/8.12.8) with ESMTP id j98245gt011929; Sat, 8 Oct 2005 02:04:06 GMT Received: from TAHKSMAILBH01.ap.thmulti.com ([141.11.13.33]) by boulsmailbh01.eu.thmulti.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 8 Oct 2005 04:04:05 +0200 Received: from bjngsmail01.ap.thmulti.com ([10.11.70.35]) by TAHKSMAILBH01.ap.thmulti.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 8 Oct 2005 10:04:01 +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: Sat, 8 Oct 2005 10:03:56 +0800 Message-ID: <31021C278A7A6B4AB95E9A085C3552181F78F4@bjngsmail01> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problems with em(4) Thread-Index: AcXHhgz2MBOlXufvRq+pHaQo2HVt7AEJl23A From: "Mao Shou Yan" To: "Gleb Smirnoff" X-OriginalArrivalTime: 08 Oct 2005 02:04:01.0791 (UTC) FILETIME=[8D73B0F0:01C5CBAC] X-Virus-Scanned: amavisd-new at thomson.net Cc: freebsd-net@freebsd.org Subject: RE: problems with em(4) 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: Sat, 08 Oct 2005 02:04:12 -0000 I enable fast forwarding! With or without ipfw, result is the same. -----Original Message----- From: Gleb Smirnoff [mailto:glebius@FreeBSD.org]=20 Sent: 2005=C4=EA10=D4=C23=C8=D5 3:18 To: Mao Shou Yan Cc: freebsd-net@FreeBSD.org Subject: Re: problems with em(4) On Fri, Aug 12, 2005 at 01:48:59PM +0800, Mao Shou Yan wrote: M> I have a machine running 5.4 stable, with 3 em cards: M>=20 M> (1) Two 82543GC with fiber=20 M>=20 M> (2) One 82544 M>=20 M> All of them are shared irq 11( from vmstat -i) M>=20 M> =20 M>=20 M> The problem is: M>=20 M> After the system run about 3 hours, there will be large = "Ierrs" M> with the em0(BTW, em0 is in promisc mode). M>=20 M> I use "sysctl hw.em0.stats=3D1", found there are a lot of = "missed M> packets" and some "Receive with no buffers". M>=20 M> Em0 is in polling mode, and hz is 2000, burst_max and M> each_burst is the default value. M>=20 M> The system is not heavy loaded, incoming rates of em0 is = less M> than 150Mbits/s. em1 and em2 are not connected. M>=20 M> And pps is less than 30k. M>=20 M> After 3 hours, the ierrs raise quickly every 1 minutes! M>=20 M> From pciconf, I found the driver version is "1.7.35". M>=20 M> =20 M>=20 M> I think is a problem with em(4) driver. M>=20 M> Anyone meet such condition? Do you have ip fastforwarding enabled? Do you use any firewall filtering or any other additional packet processing on your router? --=20 Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE