Re: how load average is calculated

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Tue, 8 Dec 1998 15:35:58 +0100 (CET)


On Mon, 7 Dec 1998, John Haggerty wrote:

> I would like to know how the "load average" for a particular machine
> is calculated. I think this is proably done in the kernel but I'm
> not sure.

You can find the info you need in kernel/sched.c and
include/linux/sched.h. Search for 'avenrun' and 'load'.

All involved functions take about 20 lines and are well
commented so you should be able to figure out the rest
yourself...

succes,

Rik -- the flu hits, the flu hits, the flu hits -- MORE
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/