Re: Load average

Top Page
Delete this message
Reply to this message
Author: Nigel Metheringham
Date:  
To: Philip Hazel
CC: exim-users
Subject: Re: Load average
Philip,

How are you getting load average for Linux??
The easy way requiring no privs is to open /proc/loadavg and read one line
from it.

[root@testit nigel]# cat /proc/loadavg
0.30 0.23 0.19 2/34 6083

The values are in order
    3 load average values like uptime (ie over 1, 5, 15 minutes)
    number running tasks/total number tasks
    last used pid


Vast amounts of other data are available in /proc

    Nigel.


-- 
[ Nigel.Metheringham@???   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House          Tel : +44 113 251 6012 ]
[ Melbourne Street, Leeds LS2 7PS UK.      Fax : +44 113 2345656  ]
[[[ Welcome to Grace, arrived 01:37 BST, 18 Sept 1996, 5lb 15oz ]]]