<div dir="ltr"><div class="gmail_default"><div class="gmail_default" style><font face="trebuchet ms, sans-serif">Exactly, I would like to know how is runq computed from load average. Are there any system calls to get this value.</font></div>
</div><div class="gmail_extra"><br><div style="font-family:'trebuchet ms',sans-serif" class="gmail_default">Cheers,</div><div style="font-family:'trebuchet ms',sans-serif" class="gmail_default">Kris</div>
<br><div class="gmail_quote">On 16 August 2013 14:46, <span dir="ltr"><<a href="mailto:Valdis.Kletnieks@vt.edu" target="_blank">Valdis.Kletnieks@vt.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, 16 Aug 2013 14:20:29 +0100, emani murali said:<br>
<br>
> I'm trying to obtain number of runnable processes from linux kernel.<br>
<br>
</div>Why are you trying to get that number, and how important is accuracy?<br>
(Remember that the value of that number can change literally several<br>
tens of thousands of times per second).<br>
<div class="im"><br>
> The wiki page <a href="http://en.wikipedia.org/wiki/Load_(computing)" target="_blank">http://en.wikipedia.org/wiki/Load_(computing)</a> provides some<br>
> insight into how run queue length is computed based on ldavg values but it<br>
> is unclear. Can someone provide more pointers on this. Cheers<br>
<br>
</div>Actually, you have that backwards. Load average is computed based on run queue<br>
length.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Thanks,</div>Murali Krishna Emani
</div></div>