lkml.org 
[lkml]   [2001]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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
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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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