Re: how load average is calculated

Antonio M. Trindade (trindade@student.dei.uc.pt)
Wed, 9 Dec 1998 10:23:14 +0000 (WET)


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.
>

The load average is the average number of runnable processes in periods
of 5 sec., 5 min and 15 min. The calculating code is in kernel/sched.c and
include/linux/sched.h. The real calculation is done with a macro. If you
are interested in changing the calculating parameters, you might want to
take a look at include/linux/sched.h

Regards,
Antonio Trindade.

/---------------------------------------------------------------------------\
|Linux RuleZ Linux RuleZ Linux R| F.C.T. da Universidade de Coimbra |
|ux RuleZ Linux RuleZ Linux Rule| Antonio Miguel Ferreira Marques Trindade |
|-------------------------------| PGP Public key available by finger |
|Jean-Michel Jarre is very cool!| Coimbra, PORTUGAL |
|---------------------------------------------------------------------------|
| E-mail address: trindade@student.dei.uc.pt |S/2 OS/2 OS/2 OS/2 OS/2 OS/2 O|
\---------------------------------------------------------------------------/

-
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/