Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jul 1998 14:05:56 +1200 (NZST)
From:      Joe Abley <jabley@clear.co.nz>
To:        Donn Miller <dmm125@bellatlantic.net>
Cc:        Mike Smith <mike@smith.net.au>, questions@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: FreeBSD equiv. of /proc/loadavg
Message-ID:  <Pine.BSF.3.96.980703140442.18952A-100000@buddha.clear.net.nz>
In-Reply-To: <359B9B21.6DE01652@bellatlantic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2 Jul 1998, Donn Miller wrote:

> Mike Smith wrote:
> > 
> > >
> > > Am looking for the FreeBSD equivalent of the Linux file /proc/loadavg.  I
> > > want to use this instead of using getloadavg().
> > 
> > The obvious question here is "why"?
> 
> I just figured that some Linux programs were trying to obtain load
> average info that way, and to ease porting, well, I wanted to open the
> equivalent FreeBSD file.  I realize now though that if you want to port
> some apps with low-level details, you gotta do a little reworking.
> 
> I was trying to port wmmon from WindowMaker.  It's just for Linux now. 
> In addition, the app tries to obtain loadaverage, uptime, and memory
> info about the machine like this: (from wmmon.c)

What about rpc.rstatd(8) - isn't this a common enough interface for all
these numbers?


Joe

--
Joe Abley <jabley@clear.co.nz>      Tel +64 9 912-4065, Fax +64 9 912-5008
Network Architect, CLEAR Net                      http://www.clear.net.nz/


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?Pine.BSF.3.96.980703140442.18952A-100000>