home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!csusac!cdsac!scotte
- From: scotte@cdsac.uucp (L. Scott Emmons)
- Newsgroups: comp.unix.aix
- Subject: Re: Getting the load average
- Message-ID: <Sep10.152901.26732@cdsac.uucp>
- Date: 10 Sep 92 15:29:01 GMT
- References: <1992Sep9.154751.21635@cs.yale.edu>
- Organization: CableData (U.S. Computer Services), Sacramento, CA
- Lines: 24
- NntpPostingHost: cdsac
-
- In article <1992Sep9.154751.21635@cs.yale.edu> kaminskydavid@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?
-
- Try taking a look at the "xload" source, which is hopefully on your
- system in "/usr/lpp/X11/Xamples/clients/xload". The file you are
- interested in is "get_load.c". It shows how to get the 'real' Unix
- load average from the kernel, not the silly one returned via
- {r,}uptime with 1.00 as a maximum.
-
- Best of luck!
-
-
- L. Scott Emmons
- CableData Research Center
- csusac.csus.edu!cdsac!scotte
- KC6NFP
-