lkml.org 
[lkml]   [1998]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: how load average is calculated
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:46    [W:0.066 / U:0.700 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site