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!enews.sgi.com!news.mathworks.com!newsfeed.internetmci.com!news.webspan.net!usenet From: "Jordan K. Hubbard" <jkh@FreeBSD.org> Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,comp.unix.bsd.freebsd.misc Subject: Re: System call for querying system load? Date: Sat, 21 Sep 1996 20:26:59 -0700 Organization: Walnut Creek CDROM Lines: 8 Message-ID: <3244B203.167EB0E7@FreeBSD.org> References: <51cjj1$1k7@news.cyberenet.net> <DxrMGE.59t@pe1chl.ampr.org> <51htd7$19t@main.gbdata.com> <51qh9o$bl1@dazed.nol.net> <paul.843233039@bean> NNTP-Posting-Host: time.cdrom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.2-CURRENT i386) To: Paul Wouters <paul@bean.xtdnet.nl> Xref: euryale.cc.adfa.oz.au comp.unix.programmer:43505 comp.os.linux.development.apps:22113 comp.unix.bsd.freebsd.misc:27681 Paul Wouters wrote: > > Just open the file /proc/loadavg and read and parse the data. Or, even easier, call getloadavg(3). -- - Jordan Hubbard President, FreeBSD Project