linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* CONFIG_NO_HZ added too much idle time in /proc/stat during throughput test.
@ 2011-12-13 20:42 Fushen Chen
  2011-12-13 23:24 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 7+ messages in thread
From: Fushen Chen @ 2011-12-13 20:42 UTC (permalink / raw)
  To: Linuxppc-dev Development

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

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 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 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 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",
"CONFIG_HZ=250", and "CONFIG_HIGH_RES_TIMERS".

My question is that if kernel enables "CONFIG_NO_HZ", how would kernel
report correct stats.

Thanks,
Fushen

[-- Attachment #2: Type: text/html, Size: 1037 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-12-14  3:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAEu=RPirE=H1N=KjHNjNRBM6H1fRvrugCw6ojqWaTNm2=WTfng__4707.66240400753$1323813396$gmane$org@mail.gmail.com>
2011-12-13 23:57 ` CONFIG_NO_HZ added too much idle time in /proc/stat during throughput test Andreas Schwab
2011-12-13 20:42 Fushen Chen
2011-12-13 23:24 ` Benjamin Herrenschmidt
2011-12-13 23:28   ` Thomas Gleixner
2011-12-13 23:34     ` Benjamin Herrenschmidt
2011-12-14  1:14       ` Fushen Chen
2011-12-14  3:17         ` Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).