Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 1997 20:11:30 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        tom@sdf.com (Tom)
Cc:        jhay@mikom.csir.co.za, sebesty@cs.elte.hu, hackers@FreeBSD.ORG
Subject:   Re: cpu load
Message-ID:  <199709172011.NAA13541@usr02.primenet.com>
In-Reply-To: <Pine.BSF.3.95q.970917100550.20301E-100000@misery.sdf.com> from "Tom" at Sep 17, 97 10:06:24 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > >  I'm searching for an easy way to get information cpu_load on FreeBSD. On
> > > Linux people just reads /proc/stat, but that one won't work on FreeBSD.
> >
> > sysctl vm.loadavg
> 
>   getloadavg() might be better for use within a program.  It is portable
> to all BSD4.4 systems.

If it is not a wrapper function for a sysctl(0 call, it should be.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709172011.NAA13541>