From owner-freebsd-hackers@FreeBSD.ORG Tue May 11 02:17:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64F9D16A4CE for ; Tue, 11 May 2004 02:17:54 -0700 (PDT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A34D43D39 for ; Tue, 11 May 2004 02:17:53 -0700 (PDT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i4B9MbxI006883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 May 2004 12:22:38 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i4B9I4Dk066233; Tue, 11 May 2004 12:18:04 +0300 (EEST) (envelope-from ru) Date: Tue, 11 May 2004 12:18:04 +0300 From: Ruslan Ermilov To: Mike Silbersack Message-ID: <20040511091804.GB66077@ip.net.ua> References: <20040424150050.GA93683@blurp.one.pl> <20040424131214.B5713@odysseus.silby.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline In-Reply-To: <20040424131214.B5713@odysseus.silby.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-hackers@freebsd.org cc: GiZmen Subject: Re: device pooling and high interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 09:17:54 -0000 --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 24, 2004 at 01:14:26PM -0500, Mike Silbersack wrote: >=20 > On Sat, 24 Apr 2004, GiZmen wrote: >=20 > > Hello, > > > > I am runnign freebsd 5.2.1 on 386 arch with two rl lan cards. My mainbo= ard > > is on VIA KT 266A with AMD athlon 1.1. > > I read man polling and i have HZ=3D1000. My problem is that when i set = up > > sysctl variable kern.polling.enable=3D1 my interrupts greatly increase. > > When my system is idle and indicate 0-1% interrupts with out polling. > > and when i turn on polling interrupts goes up to about 20% on idle syst= em. > > Is it normal ? I never before use polling and i dont know that i have > > something bad in my system ? > > > > Can somebody explain me this ? > > > > thx > > -- > > Best Regards: > > GiZmen >=20 > Ruslan can probably jump in and give you a better explanation than I can, > but I'll try to provide a quick answer. In short, the rl cards + driver > are not well suited to polling and will not work well with it enabled. > Support for polling on rl may in fact be removed as a result of this. >=20 Well, basically, 8139's TX/RX engine is just not worth for use with polling(4). Now that we have per-interface polling(4) controls, I suggest that we leave it _disabled_ for rl(4) by default. My tests have shown that I could only get a comparable throughput with rl(4) given HZ=3D5000, which is *ahem* quite large to be really useful. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD4DBQFAoJpMUkv4P6juNwoRAswRAJ47GNefp6R4GJ7Lq9BDk8EC8Z4ZPwCY4DUi GdG0HuAuPh5eemHE28xLOg== =q+sW -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/--