From owner-freebsd-questions@FreeBSD.ORG Sat May 22 05:08:44 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB3D516A4CE for ; Sat, 22 May 2004 05:08:44 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8248F43D2F for ; Sat, 22 May 2004 05:08:43 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i4MC8bjE004472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 22 May 2004 13:08:37 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i4MC8bZV004471; Sat, 22 May 2004 13:08:37 +0100 (BST) (envelope-from matthew) Date: Sat, 22 May 2004 13:08:37 +0100 From: Matthew Seaman To: Jeffrey Lyon Message-ID: <20040522120837.GA4257@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Jeffrey Lyon , questions@freebsd.org References: <40AF30B4.5050800@prepaidlegal.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <40AF30B4.5050800@prepaidlegal.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: Router take advantage of device polling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2004 12:08:45 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 22, 2004 at 06:51:32AM -0400, Jeffrey Lyon wrote: > I am currently running a router pushing about 15 megabit of traffic,=20 > with CPU usage like so: >=20 > root 25 5.9 0.0 0 12 ?? WL 10:16AM 47:49.70 (irq7:=20 > bge0 amr0) > root 14 5.9 0.0 0 12 ?? WL 10:16AM 55:15.63 (swi1: net) > root 26 3.0 0.0 0 12 ?? LL 10:16AM 28:42.81 (irq5: bge1) >=20 > I am told that activating the device_polling kernel option will cause a= =20 > substantial reduction in this usage. Is there any truth to that statement? Probably not. I see you are using bge(4) devices -- there's nothing in the polling(4) or bge(4) man pages to suggest that the bge interface does support polling, and the code in /usr/src/sys/dev/bge makes no reference to the DEVICE_POLLING cpp macro, so it's unlikely to help with that hardware. Assuming you've got suitable hardware, whether device polling gains you much, or anything at all depends on the nature of the traffic you're dealing with. There are about dozen kernel tunables that you can use to optimize traffic flows. See the polling(4) man page for more information. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAr0LFiD657aJF7eIRAnlJAKCV5ESWc4XzmUxUVrFl4YSTR1EegQCeNAe5 xxM7ydNpQWRv9JbmSVmjZvE= =Lhl9 -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--