From owner-freebsd-net@FreeBSD.ORG Wed Nov 23 15:45:37 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 16CA416A427 for ; Wed, 23 Nov 2005 15:45:04 +0000 (GMT) (envelope-from xds@LanGame.Net) Received: from netmail.langame.net (netmail.langame.net [80.80.128.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3366543D83 for ; Wed, 23 Nov 2005 15:44:48 +0000 (GMT) (envelope-from xds@LanGame.Net) Received: (qmail 12912 invoked by uid 0); 23 Nov 2005 12:45:11 -0000 Received: from xds@LanGame.Net by netmail.langame.net by uid 0 with qmail-scanner-1.22 (clamdscan: 0.72. Clear:RC:1(80.80.128.68):. Processed in 0.069862 secs); 23 Nov 2005 12:45:11 -0000 X-Qmail-Scanner-Mail-From: xds@LanGame.Net via netmail.langame.net X-Qmail-Scanner: 1.22 (Clear:RC:1(80.80.128.68):. Processed in 0.069862 secs) Received: from unknown (HELO ?80.80.128.68?) (xds%langame.net@80.80.128.68) by netmail.langame.net with SMTP; 23 Nov 2005 12:45:11 -0000 Message-ID: <43848E53.3010002@LanGame.Net> Date: Wed, 23 Nov 2005 17:44:19 +0200 From: Atanas Yankov User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050729) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <43848005.2000004@jku.at> In-Reply-To: <43848005.2000004@jku.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: bge driver, how to increase performance? 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: Wed, 23 Nov 2005 15:45:38 -0000 for bge0 #ifconfig bge0 mtu 9000 N.B MTU has to be consistent on LAN and you need Gigabit equipment that can handle jumbo frames for fxp0 #ifconfig fxp0 link0 Some chip revisions have loadable microcode which can be used to reduce the interrupt load on the host cpu. Not all boards have microcode support. Setting the link0 flag with ifconfig(8) will download the microcode to the chip if it is available. for all system you cand try net.inet.ip.fastforwarding=1 But do this carefully there some problems on 4.x with fastforwarding feature and dummynet and dot.1q vlans on 5.x its seems to work :)) br, CCNP Atanas Yankov Network Administrator AngelSoft Ltd. Ferdinand Goldmann wrote: > Hello, > > I have a 3com 3c996-SX card running under FreeBSD 5.4-STABLE. > Performance is quite ok so far, but interrupt load is very high. > (Machine is working as a traffic shaping device/firewall) > > # vmstat -i > interrupt total rate > irq18: bge0 153244636 5014 > irq27: fxp0 102056377 3339 > > Often, interrupt load will hit almost 100%. I guess the bge driver > does not support polling, but I remember reading somewhere that it > supports interrupt moderation? How would I enable this? On the em > driver, this could be done via sysctl. Does anyone have hints on > performance improvement concerning interrupt load? > > TIA