From owner-freebsd-net@FreeBSD.ORG Thu Apr 27 07:07:00 2006 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 E426F16A400 for ; Thu, 27 Apr 2006 07:07:00 +0000 (UTC) (envelope-from ferdinand.goldmann@jku.at) Received: from emailsecure.uni-linz.ac.at (emailsecure.uni-linz.ac.at [140.78.3.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71DCE43D45 for ; Thu, 27 Apr 2006 07:06:59 +0000 (GMT) (envelope-from ferdinand.goldmann@jku.at) Received: from [140.78.164.13] (jku006048.edvz.uni-linz.ac.at [140.78.6.48]) by emailsecure.uni-linz.ac.at (Postfix) with ESMTP id A2C2322802C for ; Thu, 27 Apr 2006 09:06:58 +0200 (CEST) Message-ID: <44506D87.1020808@jku.at> Date: Thu, 27 Apr 2006 09:06:47 +0200 From: Ferdinand Goldmann Organization: Johannes Kepler University User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <49594.200.230.201.250.1146063341.squirrel@www.widemail.com.br> <444F8E89.2050905@wildcard.net.uk> <56286.200.230.201.250.1146067775.squirrel@www.widemail.com.br> <1146073590.1089.80.camel@sky.mediasat.ro> <59615.200.230.201.250.1146083577.squirrel@www.widemail.com.br> In-Reply-To: <59615.200.230.201.250.1146083577.squirrel@www.widemail.com.br> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Packet loss with traffic shaper and routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ferdinand.goldmann@jku.at List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 07:07:01 -0000 tpeixoto@widesoft.com.br wrote: > Hello. > > I did that and compiled the kernel. > Then I restarted the system and enabled sysctl kern.polling.enable=1 > > It seems that it has no effect in the system. Maybe bge driver doesn't > like polling? At least from a quick glance in the polling(4) manpage I cannot see that bge is among the supported devices. If you want to use polling, I suppose that you need to enable it via ifconfig, too: polling If the driver has user-configurable polling(4) support, select the polling mode on the interface. > At this moment, I'm getting more than 50% interrupts and 20% packets lost. > I also disabled HT in BIOS and the interrupts are now passing 80% mark. > Don't know what else to do. Aren't these cards supposed to work at > 100Mbits or 1Gbit? They are failing with 12Mbits traffic on a 100Mbits > LAN. Something is wrong and I am having a hard time trying to identify the > problem. > > Thanks for the hints, anything else would be greatly appreciated. Several wild guesses from my own experiences here: - SMP + networking in 5.x does not work too well, using em(4) I experienced VERY poor performance (only ~5MB/s over a Gbit link) - Try upgrading to 6.x (as others have already suggested). I experienced all kind of weird problems with 5.x, and although there is no proof that the problems were actually related to 5.x, 6.x seems to work better. - What's the value of nmbclusters? Have you checked netstat -m? Do you see memory requests for network memory denied? - 50% interrupts on such a fast machine is quite high. I currently experience about 30% interrupt load using two em(4) cards, shaping for about ~2000 clients on a 3.8GHz Xeon. Kind regards -- >> Ferdinand Goldmann //// | | >> |--00 | UNIX | >> Tel. : +43/732/2468/9398 Fax. : +43/732/2468/9397 C ^ | | >> EMail: Ferdinand.Goldmann@zid.uni-linz.ac.at \ ~/ ~~~|~~~~~~~~ >> PGP D4CF 8AA4 4B2A 7B88 65CA 5EDC 0A9B FA9A 13EA B993| |-----3