Skip site navigation (1)Skip section navigation (2)
Date:      02 Jul 1998 08:58:10 -0400
From:      Cory Kempf <ckempf@enigami.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD equiv. of /proc/loadavg
Message-ID:  <x7k95wcsv1.fsf@singularity.enigami.com>
In-Reply-To: ADRIAN Filipi-Martin's message of "Thu, 2 Jul 1998 04:43:05 -0400 (EDT)"
References:  <Pine.BSF.3.96.980702042919.7966A-100000@lorax.ubergeeks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
ADRIAN Filipi-Martin <adrian@ubergeeks.com> writes:

> On Thu, 2 Jul 1998, Donn Miller wrote:

> > Am looking for the FreeBSD equivalent of the Linux file /proc/loadavg.  I
> > want to use this instead of using getloadavg().
> > 
> > Linux		FreeBSD
> > =====		=======
> > /proc/loadavg	??? (probably /kernel)

/kern/loadavg

> > /proc/uptime	??? (probably /kernel)

/kern/boottime -- I think you will need to do your own math.  Also check
out /kern/time.

> There has been talk of a /kernelfs, but I doubt that will be happening
> anytime soon.

There is a kernfs in -current.  As it happens, it is running on my system.

+C
-- 
Thinking of purchasing RAM from the Chip Merchant?  
Please read this first: <http://www.enigami.com/~ckempf/chipmerchant.html>;

Cory Kempf                Macintosh / Unix Consulting & Software Development
ckempf@enigami.com        <http://www.enigami.com/~ckempf/>;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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