lkml.org 
[lkml]   [1999]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: load avg += 1
From
Date
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/

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