This is 2.6.32, but I think 2.6.36 is the same.<br>Thanks,<br>Fushen<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 3:34 PM, Benjamin Herrenschmidt <span dir="ltr"><<a href="mailto:benh@kernel.crashing.org">benh@kernel.crashing.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, 2011-12-14 at 00:28 +0100, Thomas Gleixner wrote:<br>
> On Wed, 14 Dec 2011, Benjamin Herrenschmidt wrote:<br>
><br>
> > On Tue, 2011-12-13 at 12:42 -0800, Fushen Chen wrote:<br>
> > > On APM82181,  "vmstat" (/proc/stat)  doesn't show correct idle<br>
> > > percent, if kernel enables "CONFIG_NO_HZ" (Tickless System / Dynamic<br>
> > > Tick).<br>
> > ><br>
> > > When I run wireless throughput test with heavy traffic, "vmstat" shows<br>
> > > very high idle percent while "oprofile" shows very low idle percent.<br>
> > > During the test, the system is idle, but network traffic uses a lot of<br>
> > > hard IRQ and soft-irq time. "vmstat" would have the correct stats if<br>
> > > account_idle_ticks(ticks) in kernel/time/tick-sched.c doesn't add more<br>
> > > idle time in "vmstat". In the same test, if I disable "CONFIG_NO_HZ"<br>
> > > in kernel, idle percent in "vmstat" and "oprofile" would match.<br>
> > ><br>
> > > My APM82181 kernel configuration is "CONFIG_NO_HZ", "CONFIG_HZ_250=y",<br>
> > > "CONFIG_HZ=250", and "CONFIG_HIGH_RES_TIMERS".<br>
> > ><br>
> > > My question is that if kernel enables "CONFIG_NO_HZ", how would kernel<br>
> > > report correct stats.<br>
> ><br>
> > Hi Thomas ! Any idea what we're doing wrong ? :-)<br>
><br>
> Not really, that had been an issue before and had been fixed. Peter ????<br>
<br>
</div></div>Fusen, what kernel version is this ?<br>
<br>
Cheers,<br>
Ben.<br>
<br>
<br>
</blockquote></div><br>