[lkml]   [2001]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectUp-to-date load information
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

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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:08    [W:0.035 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site