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

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

 



On Fri, 16 Aug 2013 14:51:59 +0100, emani murali said:

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

Load average is computed from runq.  Not the other way around. Given runq,
you can comput load average.  Given load average, ti's very difficult to
compute runq.

Omeletts are made from eggs.  Not the other way around.  Given an egg,
you can create an omelette.  Given an omelette, it's very difficult to
make an egg.

The problem is that runq changes many times per second (potentially at
every system call, and it doesn't take much hardware to do a quarter million
system calls per second).  Load average is a smoothed average value, and
as such, loses information.  If I tell you that the average amount of folding
money in my wallet during July was $5.89, you can't figure out how much
was in my wallet at 2PM on July 12, or if there was $8 more in it at 10AM
that morning and I paid for lunch with cash that day.

There's also the minor detail that the *average* inclues 89 cents - but
folding money in the US is always an integer. :)

Attachment: pgplew6N861Ae.pgp
Description: PGP signature

_______________________________________________
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