How is run queue length computed in linux proc filesystem

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Fri Aug 16 09:46:00 EDT 2013


On Fri, 16 Aug 2013 14:20:29 +0100, emani murali said:

> I'm trying to obtain number of runnable processes from linux kernel.

Why are you trying to get that number, and how important is accuracy?
(Remember that the value of that number can change literally several
tens of thousands of times per second).

> 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

Actually, you have that backwards.  Load average is computed based on run queue
length.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130816/b04a1c69/attachment-0001.bin 


More information about the Kernelnewbies mailing list