Thread (6 messages) flat view 6 messages, 4 authors, 2011-12-14

Re: CONFIG_NO_HZ added too much idle time in /proc/stat during throughput test.

From: Fushen Chen <hidden>
Date: 2011-12-14 01:14:24

This is 2.6.32, but I think 2.6.36 is the same.
Thanks,
Fushen

On Tue, Dec 13, 2011 at 3:34 PM, Benjamin Herrenschmidt <
benh@kernel.crashing.org> wrote:
On Wed, 2011-12-14 at 00:28 +0100, Thomas Gleixner wrote:
quoted
On Wed, 14 Dec 2011, Benjamin Herrenschmidt wrote:
quoted
On Tue, 2011-12-13 at 12:42 -0800, Fushen Chen wrote:
quoted
On APM82181,  "vmstat" (/proc/stat)  doesn't show correct idle
percent, if kernel enables "CONFIG_NO_HZ" (Tickless System / Dynamic
Tick).

When I run wireless throughput test with heavy traffic, "vmstat"
shows
quoted
quoted
quoted
very high idle percent while "oprofile" shows very low idle percent.
During the test, the system is idle, but network traffic uses a lot
of
quoted
quoted
quoted
hard IRQ and soft-irq time. "vmstat" would have the correct stats if
account_idle_ticks(ticks) in kernel/time/tick-sched.c doesn't add
more
quoted
quoted
quoted
idle time in "vmstat". In the same test, if I disable "CONFIG_NO_HZ"
in kernel, idle percent in "vmstat" and "oprofile" would match.

My APM82181 kernel configuration is "CONFIG_NO_HZ",
"CONFIG_HZ_250=y",
quoted
quoted
quoted
"CONFIG_HZ=250", and "CONFIG_HIGH_RES_TIMERS".

My question is that if kernel enables "CONFIG_NO_HZ", how would
kernel
quoted
quoted
quoted
report correct stats.
Hi Thomas ! Any idea what we're doing wrong ? :-)
Not really, that had been an issue before and had been fixed. Peter ????
Fusen, what kernel version is this ?

Cheers,
Ben.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help