home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9497 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.5 KB  |  32 lines

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