[lkml]   [1998]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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


    Rik -- the flu hits, the flu hits, the flu hits -- MORE
    | Linux memory management tour guide. |
    | Scouting Vries cubscout leader. |

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

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