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
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
Any suggestions? Please, CC a reply to me, since I am temporarily
signed off this list. Thanks.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/