From: Andi Kleen (
Date: Wed Aug 30 2000 - 04:00:49 EST

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)


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

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:25 EST