From owner-freebsd-performance@FreeBSD.ORG Wed Oct 20 13:08:47 2004 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C59F16A4D0 for ; Wed, 20 Oct 2004 13:08:47 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB03743D49 for ; Wed, 20 Oct 2004 13:08:46 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id i9KD8k6u093437; Wed, 20 Oct 2004 08:08:46 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <41766350.4080901@centtech.com> Date: Wed, 20 Oct 2004 08:08:32 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040912 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oleg Gawriloff References: <004001c4b69d$80e21f40$0c0210ac@ADMIN1> In-Reply-To: <004001c4b69d$80e21f40$0c0210ac@ADMIN1> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-performance@freebsd.org Subject: Re: decreasing interrupt CPU load X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 13:08:47 -0000 Oleg Gawriloff wrote: > Hello! > > Currently we have router on FreeBSD 4.10-R on SMP 2*PIII 1Ghz. 5sec > average traffic trhough fxp on Intel 82550 is about 12kpps (26Mbit/sec). > CPU Load on interrupts shown in top and systat -v 1 always above 40%. > We've tried to enable polling with HZ=1000, but cpu load does not > change, instead round trip time increased from 1ms to 20ms. Also we've > tried link0, no success. Is any other options to decrease interrupt cpu > load? May be enabling fast forwarding, change fxp to em or bge NIC? Is > there exist any drawbacks from enabling fast forwarding? I've had really great performance with the em NICs, and bad experiences with bge's (the hardware is flaky). You might want to check if the interface has checksuming enabled. I believe disabling/enabling can change the performance, however I'm not certain how much, etc. In ifconfig, look for something like: options=3 If you don't need any firewalling, I would compile a custom kernel with as much removed as you can, specifically firewall related items. Also - it's possible that your bus is the bottleneck - depending on how many NICs you have, the type of bus, and the motherboard. Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Talk sense to a fool and he calls you foolish. ------------------------------------------------------------------