Hi there!
Is there any chance to determine the number of running/ready processes
(aka "system load") updated more often than usual? I need much more
up-to-date information than one-minute avarage which is provided by
`uptime' and /proc/loadavg. Probably, one-second or (at most) five-second
average would be ideal.
Is there any kernel module/option providing such (or similar)
functionality? Do you think it could be useful for anyone else?
If I need to write my own module to provide such data (I really NEED them
in my case), what is the best way to do so? Kernel thread polling the
value of nr_running periodically? Checking this value with each context
switch?
Another solution is to check nr_running from /proc/loadavg in the user
mode. However, I am afraid this could be inaccurate (and maybe slow). Also
using the number of running processes directly (not an average) can be
misguided.
Any suggestions? Please, CC a reply to me, since I am temporarily
signed off this list. Thanks.
Martin.