lkml.org 
[lkml]   [2000]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: avenrun and TASK_UNINTERRUPTIBLE
    On Tue, Aug 29, 2000 at 12:17:15PM -0700, Jim Garlick wrote:
    > Hi,
    >
    > Why does (2.2.14) linux/kernel/sched.c::count_active_tasks() consider tasks
    > sleeping with the TASK_UNINTERRUPTIBLE flag to be the same as TASK_RUNNABLE
    > for the avenrun computation? (In 2.3.x the code is in linux/kernel/timer.c)
    >
    > It would seem that a sleeping task shouldn't contribute to the load avg...

    It is a cheap hack to count processes doing IO in the loadavg. Otherwise
    you could have a box full of processes doing heavy IO and loading the box a lot
    with a loadavg around 0.01 (like in Solaris)


    -Andi

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

    \
     
     \ /
      Last update: 2005-03-22 12:38    [W:2.196 / U:0.388 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site