Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2004 13:08:37 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Jeffrey Lyon <jeffreylyon@prepaidlegal.com>
Cc:        questions@freebsd.org
Subject:   Re: Router take advantage of device polling
Message-ID:  <20040522120837.GA4257@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <40AF30B4.5050800@prepaidlegal.com>
References:  <40AF30B4.5050800@prepaidlegal.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040522120837.GA4257>