From owner-freebsd-hackers Sun Jul 14 9:48: 0 2002 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 39FB137B400 for ; Sun, 14 Jul 2002 09:47:58 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id E713A43E64 for ; Sun, 14 Jul 2002 09:47:57 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g6EGlur77478; Sun, 14 Jul 2002 09:47:56 -0700 (PDT) (envelope-from rizzo) Date: Sun, 14 Jul 2002 09:47:56 -0700 From: Luigi Rizzo To: David Miller Cc: hackers@FreeBSD.ORG Subject: Re: setsockopt() weirdness Message-ID: <20020714094756.G74633@iguana.icir.org> References: <20020714085832.C74633@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from dmiller@sparks.net on Sun, Jul 14, 2002 at 12:43:51PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jul 14, 2002 at 12:43:51PM -0400, David Miller wrote: > On Sun, 14 Jul 2002, Luigi Rizzo wrote: > > > On Sun, Jul 14, 2002 at 11:49:46AM -0400, David Miller wrote: > > ... > > > HZ is set to 5000; the machine is intended to process several tens of > > > thousands of very small packets per second, and interrupt processing was a > > > big problem. > > > > why don't you use "options DEVICE_POLLING" then :) > > I am. Perhaps I understood wrong, but I thought that HZ controlled the > maximum latency when polling? oh yes, but HZ=5000 sounds a bit on the high side... do you really need a max latency of 200us ?? Plus, you still poll in the idle loop, so unless the box is overloaded, your average latency will still be shorted than 1/HZ. (all of this is of course irrelevant for the original subject:) cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message