From owner-freebsd-hackers Sun Jul 14 8:58:36 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 A008037B400 for ; Sun, 14 Jul 2002 08:58:34 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5879C43E6D for ; Sun, 14 Jul 2002 08:58:34 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g6EFwWo77028; Sun, 14 Jul 2002 08:58:32 -0700 (PDT) (envelope-from rizzo) Date: Sun, 14 Jul 2002 08:58:32 -0700 From: Luigi Rizzo To: David Miller Cc: hackers@FreeBSD.ORG Subject: Re: setsockopt() weirdness Message-ID: <20020714085832.C74633@iguana.icir.org> References: <20020714075706.A74633@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 11:49:46AM -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 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 :) > Does this mean that if one left HZ alone at 100 that you could only set it > for 320 seconds? There's no warning of this in the manpage for > setsockopt; I naturally assumed that one could set an unsigned long delay > and that it would work. Is this a bug, or just a feature I'm looking at > sideways? well it's obviously a bug, but we have been hit by this 2-3years ago with nfs (in-kernel), so i thought the problem had been fixed at the time by increasing the size of the relevant data structure. Maybe it was not done everywhere... > On a different note, how could I have discovered this without asking the > hackers list? bugs are bugs... so you can't expect to find them documented :) cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message