From owner-freebsd-net@FreeBSD.ORG Sat Oct 8 07:42:17 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 5CD3F16A41F for ; Sat, 8 Oct 2005 07:42:17 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F60843D45 for ; Sat, 8 Oct 2005 07:42:16 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id j987gEwp048221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Oct 2005 11:42:15 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id j987gE4X048220; Sat, 8 Oct 2005 11:42:14 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sat, 8 Oct 2005 11:42:14 +0400 From: Gleb Smirnoff To: Mao Shou Yan Message-ID: <20051008074214.GI14542@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Mao Shou Yan , freebsd-net@FreeBSD.org References: <31021C278A7A6B4AB95E9A085C3552181F78F4@bjngsmail01> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <31021C278A7A6B4AB95E9A085C3552181F78F4@bjngsmail01> User-Agent: Mutt/1.5.6i 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 07:42:17 -0000 On Sat, Oct 08, 2005 at 10:03:56AM +0800, Mao Shou Yan wrote: M> On Fri, Aug 12, 2005 at 01:48:59PM +0800, Mao Shou Yan wrote: M> M> I have a machine running 5.4 stable, with 3 em cards: M> M> M> M> (1) Two 82543GC with fiber M> M> M> M> (2) One 82544 M> M> M> M> All of them are shared irq 11( from vmstat -i) M> M> M> M> M> M> M> M> The problem is: M> M> M> M> After the system run about 3 hours, there will be large "Ierrs" M> M> with the em0(BTW, em0 is in promisc mode). M> M> M> M> I use "sysctl hw.em0.stats=1", found there are a lot of "missed M> M> packets" and some "Receive with no buffers". M> M> M> M> Em0 is in polling mode, and hz is 2000, burst_max and M> M> each_burst is the default value. M> M> M> M> The system is not heavy loaded, incoming rates of em0 is less M> M> than 150Mbits/s. em1 and em2 are not connected. M> M> M> M> And pps is less than 30k. M> M> M> M> After 3 hours, the ierrs raise quickly every 1 minutes! M> M> M> M> From pciconf, I found the driver version is "1.7.35". M> M> M> M> M> M> M> M> I think is a problem with em(4) driver. M> M> M> M> Anyone meet such condition? M> M> Do you have ip fastforwarding enabled? Do you use any firewall filtering M> or any other additional packet processing on your router? M> M> I enable fast forwarding! M> With or without ipfw, result is the same. Can you please try to disable fast forwarding and see whether this helps or not? P.S. Please do not use top quoting, it make email hard to read. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE