Re: How is run queue length computed in linux proc filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Exactly, I would like to know how is runq computed from load average. Are there any system calls to get this value.

Cheers,
Kris

On 16 August 2013 14:46, <Valdis.Kletnieks@xxxxxx> wrote:
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.



--
Thanks,
Murali Krishna Emani
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux