From owner-freebsd-net@FreeBSD.ORG Wed Nov 17 18:53:07 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 726BC16A4D0 for ; Wed, 17 Nov 2004 18:53:07 +0000 (GMT) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5212443D41 for ; Wed, 17 Nov 2004 18:53:05 +0000 (GMT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1]) by grosbein.pp.ru (8.13.1/8.13.1) with ESMTP id iAHIqnGg001424; Thu, 18 Nov 2004 01:52:49 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.13.1/8.13.1/Submit) id iAHIqnIu001423; Thu, 18 Nov 2004 01:52:49 +0700 (KRAT) (envelope-from eugen) Date: Thu, 18 Nov 2004 01:52:49 +0700 From: Eugene Grosbein To: Yar Tikhiy Message-ID: <20041117185248.GA1394@grosbein.pp.ru> 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.4.1i cc: net@freebsd.org 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: Wed, 17 Nov 2004 18:53:07 -0000 On Wed, Nov 17, 2004 at 09:13:51PM +0300, Yar Tikhiy wrote: > 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. Does polling(4) increase latency? It is very imortant for router that handles lots of RTP (VoIP) traffic. Eugene