home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12755 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!wupost!monsanto.com!beaker!jrroma
  3. From: jrroma@beaker (John Roman)
  4. Subject: How do I get the load average?
  5. Message-ID: <1992Aug21.131928.16239@tin.monsanto.com>
  6. Sender: news@tin.monsanto.com (USENET News System)
  7. Organization: Monsanto Company
  8. X-Newsreader: Tin 1.1 PL5
  9. Date: Fri, 21 Aug 1992 13:19:28 GMT
  10. Lines: 22
  11.  
  12. I would like to get the load average on my machine in the same
  13. way that top or osview does it.  Is there a way I can read those
  14. values out of the kernel?  Alternatively, is there a way I can
  15. calculate those values from available information?
  16.  
  17. I have gotten a copy of monitor for the RS6000, but the values
  18. calculated using its load average algorithm are not close to
  19. the those displayed by osview.  It uses the runque and runocc
  20. values out of the sysinfo structure and the formula:
  21.  
  22. load average = ( ( curr_runque - runque_1min) / 
  23.             ( curr_runocc - runque_1min) ) - 1
  24.  
  25. where 1min is the runque & runocc 1 minute previously.  This
  26. does not seem to give reasonable values for some reason.
  27.  
  28. Thanks very much for your help.
  29.  
  30. --
  31. John Roman                                          Monsanto Company
  32. jrroma@beaker.monsanto.com                          Chesterfield, MO  63198
  33. (314) 537-7044
  34.