Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!newsfeed.internetmci.com!solaris.cc.vt.edu!deepthot!brtph500.bnr.ca!nrtphba6.bnr.ca!bcarh189.bnr.ca!nrchh45.rich.nt.com!ferret.ocunix.on.ca!resurrect 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: <R.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:43609 comp.os.linux.development.apps:22217 comp.unix.bsd.freebsd.misc:27794 Reposting article removed by rogue canceller. 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