From owner-freebsd-net@FreeBSD.ORG Thu Nov 18 05:28:12 2004 Return-Path: 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 43CB316A4CE; Thu, 18 Nov 2004 05:28:12 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D53243D1F; Thu, 18 Nov 2004 05:28:06 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id iAI5R6Zg027175; Thu, 18 Nov 2004 15:57:06 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Thu, 18 Nov 2004 15:57:49 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id iAI5NMh14302; Thu, 18 Nov 2004 15:53:22 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id RZJDQ89Z; Thu, 18 Nov 2004 15:53:12 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id iAI5OIcS068285 ; Thu, 18 Nov 2004 15:54:18 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id iAI5OIhT068284; Thu, 18 Nov 2004 15:54:18 +1030 (CST) (envelope-from wilkinsa) Date: Thu, 18 Nov 2004 15:54:17 +1030 From: "Wilkinson, Alex" To: net@freebsd.org Message-ID: <20041118052417.GR66822@squash.dsto.defence.gov.au> Mail-Followup-To: net@freebsd.org, ru@freebsd.org References: <20041117181351.GA48071@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20041117181351.GA48071@comp.chem.msu.su> User-Agent: Mutt/1.5.6i Subject: Re: polling(4) rocks! X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 05:28:12 -0000 Why can some NIC use polling and others not ? eg I went to turn on polling on my BCM5782 Broadcom NetXtreme Gigabit Ethernet Card. And bge(4) doesn't mention anything about polling. Is it a hardware feature of the NIC ? - aW 0n Wed, Nov 17, 2004 at 09:13:51PM +0300, Yar Tikhiy wrote: Hi there, I can't but remind you that there's polling(4) in FreeBSD :-) Until today, I was convinced for some obscure reason that polling(4) was an experimental feature that might or might not work. Today I tried it on our central router box and got astounding results. The router box is a 1.4GHz Celeron PC with an fxp(4) interface split across a dozen of vlans. There is nothing special about its setup except for ~250 rules loaded into ipfw2. It is running 4.10-RELEASE. Without polling, it was able to switch full 10Mbytes/sec of traffic (~9kpps), but that took from 50 to 70% CPU time spent in interrupts. With polling on, interrupt time never exceeds 5% and it stays as low as 1-2% on average even when traffic is that high. Many thanks to folks who have had a hand in polling(4) development! Just in case: Please be aware that polling(4) won't make KDE run faster unless on a busy router ;-) -- Yar _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"