*BSD News Article 78270


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!inquo!in-news.erinet.com!ddsw1!news.mcs.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!newsfeed.internetmci.com!in3.uu.net!news.cyberenet.net!harry
From: harry@cyberenet.net (Harry Hochheiser)
Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,comp.unix.bsd.freebsd.misc
Subject: System call for querying system load?
Date: Fri, 13 Sep 96 21:27:34 GMT
Organization: H Systems
Lines: 21
Message-ID: <51cjj1$1k7@news.cyberenet.net>
NNTP-Posting-Host: harry.ppp.cyberenet.net
X-Newsreader: News Xpress 2.0 Beta #0
Keyword: BSD, Linux, PS, Uptime
Xref: euryale.cc.adfa.oz.au comp.unix.programmer:43198 comp.os.linux.development.apps:21808 comp.unix.bsd.freebsd.misc:27236


I'm looking for a system call/subroutine that will let me query the system 
load.  This call would return information similar to that found in uptime(1), 
and should be roughly portable across BSD-like Unixes (i.e, Linux's sysinfo() 
won't work, even though that's my primary environment.

While I'm at it, can anyone clue me in to a source describing proper 
interpretation of the load averages returned by uptime?

Sorry if these are FAQ's.  Please reply via email, and I'll summarize if 
necessary.

Thanks,

Harry Hochheiser

---------------
Harry Hochheiser           harry@tigger.jvnc.net
                           harry@cyberenet.net
08 3A B5 F6 47 7F C7 C4 28 B4 8D D2 2E DF F6 1E