How is run queue length computed in linux proc filesystem

emani murali murali132 at
Fri Aug 16 09:20:29 EDT 2013


I'm trying to obtain number of runnable processes from linux kernel. sar -q
gives this information readily. However I'm trying to get this value from
/proc filesystem. There is no file in /proc that gives this value directly,
then how is runq-sz computed.

The wiki page provides some
insight into how run queue length is computed based on ldavg values but it
is unclear. Can someone provide more pointers on this. Cheers

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list