How is run queue length computed in linux proc filesystem

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


Hi,

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 http://en.wikipedia.org/wiki/Load_(computing) 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

Thanks,
Kris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130816/9f018c50/attachment.html 


More information about the Kernelnewbies mailing list