Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2000 04:39:44 -0300
From:      Pedro A M Vazquez <vazquez@iqm.unicamp.br>
To:        Kris Kennaway <kris@hub.freebsd.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Getting CPU usage in FreeBSD
Message-ID:  <20000312043943.A50685@kalypso.iqm.unicamp.br>
In-Reply-To: <Pine.BSF.4.21.0003112336140.85709-100000@hub.freebsd.org>; from kris@hub.freebsd.org on Sat, Mar 11, 2000 at 11:37:18PM -0800
References:  <200003120459.FAA54518@dorifer.heim3.tu-clausthal.de> <Pine.BSF.4.21.0003112336140.85709-100000@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
|o|... Sat, Mar 11, 2000 at 11:37:18PM -0800, Kris Kennaway ...|o| wrote:
> On Sun, 12 Mar 2000, Oliver Fromme wrote:
> 
> > Then look up the definition of kread() in the same file, and
> > how the contents of cur.cp_time are used in the cpustats()
> > function.  Note that "cur" is a "struct statinfo", which is
> > defined in /usr/include/devstat.h.  The CPU states are defined
> > in /usr/include/sys/dkstat.h.
> 
> We probably should make this into a sysctl to divorce the binaries from
> having to read kvm.

it's already there:

	vm.loadavg: { 1.40 1.33 1.23 }

pedro

> 
> Kris
> 
> ----
> In God we Trust -- all others must submit an X.509 certificate.
>     -- Charles Forsythe <forsythe@alum.mit.edu>
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
.sig: license expired, contact your vendor


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?20000312043943.A50685>