home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9537 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!csusac!cdsac!scotte
  2. From: scotte@cdsac.uucp (L. Scott Emmons)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Getting the load average
  5. Message-ID: <Sep10.152901.26732@cdsac.uucp>
  6. Date: 10 Sep 92 15:29:01 GMT
  7. References: <1992Sep9.154751.21635@cs.yale.edu>
  8. Organization: CableData (U.S. Computer Services), Sacramento, CA
  9. Lines: 24
  10. NntpPostingHost: cdsac
  11.  
  12. In article <1992Sep9.154751.21635@cs.yale.edu> kaminskydavid@CS.YALE.EDU (David Kaminsky) writes:
  13. >    I need to get the load average of an RS6000 running AIX.
  14. >I have a procedure now that makes an RPC call to
  15. >the rstatd to get the load.  However, the rstatd seems 
  16. >undependable (it fails periodically).  Parsing the 
  17. >output from (e.g.) uptime is too slow since I must
  18. >get the load repeatedly.
  19. >
  20. >    Is there another way to get the load average?
  21. >How does rstatd get it?
  22.  
  23. Try taking a look at the "xload" source, which is hopefully on your
  24. system in "/usr/lpp/X11/Xamples/clients/xload". The file you are
  25. interested in is "get_load.c". It shows how to get the 'real' Unix
  26. load average from the kernel, not the silly one returned via
  27. {r,}uptime with 1.00 as a maximum.
  28.  
  29. Best of luck!
  30.  
  31.  
  32.                L. Scott Emmons
  33.               CableData  Research Center
  34.              csusac.csus.edu!cdsac!scotte
  35.                 KC6NFP
  36.