Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Nov 1999 02:53:51 -0500 (EST)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        Arun Sharma <adsharma@home.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: kstat - an API for gathering kernel stats
Message-ID:  <Pine.BSF.4.20.9911040251030.18969-100000@sasami.jurai.net>
In-Reply-To: <19991103215642.A31757@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Nov 1999, Arun Sharma wrote:
> A user program makes a system call with this string "cpu.system" to get
> the current value of user/system/nice time etc.

How is this different from doing:

# sysctl -a | grep load
vm.loadavg: { 0.15 0.09 0.04 }

Ideally we could have a syscall that could return the OID for a given name
to solve the portability and speed issues associated with doing repeated
lookups.

Seems like you've reinvented the wheel to me.

-- 
| 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.9911040251030.18969-100000>