Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jul 1998 20:19:47 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Joe Abley <jabley@clear.co.nz>
Cc:        Donn Miller <dmm125@bellatlantic.net>, Mike Smith <mike@smith.net.au>, questions@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: FreeBSD equiv. of /proc/loadavg 
Message-ID:  <199807030319.UAA03532@antipodes.cdrom.com>
In-Reply-To: Your message of "Fri, 03 Jul 1998 14:05:56 %2B1200." <Pine.BSF.3.96.980703140442.18952A-100000@buddha.clear.net.nz> 

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?

No.  Not everybody wants to leak that sort of information, and why 
should I run two more daemons just to get three bloody numbers from the 
kernel?

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



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?199807030319.UAA03532>