Re: load avg += 1

Andi Kleen (ak@muc.de)
11 Oct 1999 23:07:21 +0200


jgarzik@pobox.com (Jeff Garzik) writes:

> Koblinger Egmont wrote:
> >
> > Hello!
> >
> > After about 45 days of running my 2.2.12 kernel, reporting the load
> > average went crazy, it always shows the value increased by 1. Though my
> > CPU is idle at 90--100%, the load is always around 1.00 -- 1.10 and
> > doesn't drop below 1. (PII, single processor, 233MHz).
>
> I see this on 2.3.20 as well, on my AMD K6-II w/ a minimal .config.

This is the core of the loadavg computation function:

for_each_task(p) {
if ((p->state == TASK_RUNNING ||
(p->state & TASK_UNINTERRUPTIBLE) ||
(p->state & TASK_SWAPPING)))
nr += FIXED_1;
}

TASK_UNINTERRUPIBLE looks like a good candidate. So please check with
ps which process is always in state 'D' and where it hangs (with ps
lax in WCHAN)

-Andi

-- 
This is like TV. I don't like TV.

- 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/