home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!wupost!monsanto.com!beaker!jrroma
- From: jrroma@beaker (John Roman)
- Subject: How do I get the load average?
- Message-ID: <1992Aug21.131928.16239@tin.monsanto.com>
- Sender: news@tin.monsanto.com (USENET News System)
- Organization: Monsanto Company
- X-Newsreader: Tin 1.1 PL5
- Date: Fri, 21 Aug 1992 13:19:28 GMT
- Lines: 22
-
- I would like to get the load average on my machine in the same
- way that top or osview does it. Is there a way I can read those
- values out of the kernel? Alternatively, is there a way I can
- calculate those values from available information?
-
- I have gotten a copy of monitor for the RS6000, but the values
- calculated using its load average algorithm are not close to
- the those displayed by osview. It uses the runque and runocc
- values out of the sysinfo structure and the formula:
-
- load average = ( ( curr_runque - runque_1min) /
- ( curr_runocc - runque_1min) ) - 1
-
- where 1min is the runque & runocc 1 minute previously. This
- does not seem to give reasonable values for some reason.
-
- Thanks very much for your help.
-
- --
- John Roman Monsanto Company
- jrroma@beaker.monsanto.com Chesterfield, MO 63198
- (314) 537-7044
-