home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!mskucher
- From: mskucher@math.uwaterloo.ca (Murray S. Kucherawy [MFCF])
- Subject: Re: Getting the load average
- Message-ID: <BuBq5H.KDw@math.uwaterloo.ca>
- Organization: Math Faculty Computing Facility, University of Waterloo, Canada
- References: <1992Sep9.154751.21635@cs.yale.edu>
- Date: Wed, 9 Sep 1992 18:32:04 GMT
- Lines: 21
-
- kaminsky-david@CS.YALE.EDU (David Kaminsky) writes:
- > I need to get the load average of an RS6000 running AIX.
- >I have a procedure now that makes an RPC call to
- >the rstatd to get the load. However, the rstatd seems
- >undependable (it fails periodically). Parsing the
- >output from (e.g.) uptime is too slow since I must
- >get the load repeatedly.
- >
- > Is there another way to get the load average?
- >How does rstatd get it?
-
- Most programs I know, including uptime, get the load average from a search
- of the kernel memory (/dev/kmem) which contains the load average information
- updated every five seconds. I've not tried it on AIX, though. You can
- get the location from a namelist in the kernel file (/unix).
-
- -- Murray S. Kucherawy ----------------------------------------+--------------
- Software Systems Co-op, Math Faculty Computing Facility [MFCF] | This is a
- University of Waterloo, Ontario, Canada | machine that
- E-mail: mskucherawy@{math,watdragon}.UWaterloo.ca | goes PING!
- ---------------------------------------------------------------+--------------
-