[Bug 513848] Re: [karmic] CPU load not being reported accurately

Chase Douglas chase.douglas at canonical.com
Fri Mar 19 17:36:33 UTC 2010


@tgabi:

This latest log confirms my theory. There are only two situations where
the calc_load_tasks counter is incremented: once when each process
updates the counter every 5 seconds, and when a processor switches from
an uninterruptible task to the idle task. The first increment is always
matched with a decrement in the log, while the second only sometimes
matches with a decrement. When there isn't a matching decrement due to
uninterruptible tasks is when we see the load avg calculated with a non-
zero calc_load_tasks.

This may be seen in Karmic but not Jaunty due to this commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=dce48a84adf1806676319f6f480e30a6daa012f9.
The commit reworks the load avg calculation code, and seems to introduce
this regression.

-- 
[karmic] CPU load not being reported accurately
https://bugs.launchpad.net/bugs/513848
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list