co je LOAD

Martin `MJ' Mares mj na ucw.cz
Neděle Březen 3 12:49:07 CET 2002


Ahoj!

> Tady je uryvek. Priste zkuste dele hledat, staci man -k load.
> 
> The getloadavg() function returns the number of processes in the system
> run queue averaged over various periods of time.  Up to nelem samples are
> retrieved and assigned to successive elements of loadavg[].  The system
> imposes a maximum of 3 samples, representing averages over the last 1, 5,
> and 15 minutes, respectively.

Ja jen doplnuji, ze to neni obycejny prumer, nybrz EWMA (Exponentially
Weighted Mean Average) pocitany pres n nasamplovanych hodnot jako

x_0*q^0 + x_1*q^1 + x_2*q^2 + ... + x_{n-1}*q^{n-1}

pro vhodnou konstantu q<1. Hodnoty v nedavne minulosti maji tedy daleko
vetsi vahu nez ty vzdalenejsi a navic se cely prumer da snadno updatovat
o novy vzorek, aniz by si kernel musel pamatovat vsechny vzorky.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj na ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
To understand a program you must become both the machine and the program.


Další informace o konferenci Linux