From owner-freebsd-hackers Thu Nov 4 9:53:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id A5C3215947 for ; Thu, 4 Nov 1999 09:53:11 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with ESMTP id MAA24253; Thu, 4 Nov 1999 12:52:50 -0500 (EST) Date: Thu, 4 Nov 1999 12:52:50 -0500 (EST) From: "Matthew N. Dodd" To: Arun Sharma Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kstat - an API for gathering kernel stats In-Reply-To: <19991104092304.A708@home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 4 Nov 1999, Arun Sharma wrote: > I just looked at the sysctl implementation and there are some differences. > Moreover, since it was not being used in tools like vmstat and xosview, > I thought there must be a reason. > > sysctl also seems to assume that it doesn't get called frequently. So > mapping the name to the sysctl data is a slightly more heavy duty > operation than a hash table lookup. Wouldn't hashing the sysctl OIDs be the way to go then? Why invent another namespace? -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message