Skip to contentSkip to conversation

sudden cpu hogging in kernel 3.2 rc-series

REGRESSION Nicolas Kalkhof 2 participants 2 messages Nov 21, 2011 – Nov 22, 2011

lore
Share & tools
lore
#0 lore raw

This happens on my machine after some minutes, too when running X and the trinity desktop. the cpu continuously uses up additional ~10 watts comparing to older 3.1 kernels. The issue remains high even after I kill X. A closer investigation shows that poll_idle uses up the cpu (see dump below). Is it normal for poll_idle to use up all ressources?

CPU: Intel Sandy Bridge microarchitecture, speed 2.701e+06 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000 samples  %        app name                 symbol name
524625   96.8279  vmlinux                  poll_idle
7807      1.4409  cfbimgblt                /cfbimgblt
813       0.1501  vmlinux                  rb_get_reader_page
806       0.1488  vmlinux                  fbcon_redraw.clone.30
616       0.1137  vmlinux                  i8042_interrupt
454       0.0838  vmlinux                  bit_putcs
414       0.0764  vmlinux                  ring_buffer_consume
373       0.0688  vmlinux                  _cond_resched
301       0.0556  cfbcopyarea              /cfbcopyarea
277       0.0511  libstdc++.so.6.0.14      /usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6.0.14 239       0.0441  cfbfillrect              /cfbfillrect
....

Regards
Nic

-----Ursprüngliche Nachricht-----
Von: "Maciej Rutecki" <[email protected]>
Gesendet: Nov 21, 2011 10:11:17 PM
An: "Nicolas Kalkhof" <[email protected]>
Betreff: Re: [REGRESSION] sudden cpu hogging in kernel 3.2 rc-series

Quoted 20 lines · On piątek, 18 listopada 2011 o 21:33:15 Nicolas Kalkhof wrote:
Quoted 12 lines

Hello,

since the merges for kernel 3.2 came in late october, my mobile i7 2620M sandybridge cpu/gpu seems to run hotter (approx 10 °C) when idling and after some minutes according to top the cpu load goes up on all cores but the cpu frequency stays low (800 MHz) as well as the gpu (650MHz) and the system is responding well. Yet still additional 5-8 watts are continously drained from the power supply. Something is throttling up :(. Oprofile shows that the kernel hogs the cpu (see dump below). This happens with every kernel since the 3.2 merge window closed up to latest linux-next. I wasn't able to track the bad commit down yet.

Quoted 2 lines

Could someone please confirm the issue?

I observed similar behaviour, few minutes after boot, when KDE is working plasma-desktop process (sometimes another) uses 20-50% cpu. System and kernel works without any kernel, but cpu usage is greater than in 3.1 (and older).

Quoted 8 lines

Hardware: old hp/compaq nx6310

Add this mail to regression list.

Regards
--
Maciej Rutecki
http://www.mrutecki.pl

___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192

#1 lore raw
Quoted 5 lines · Nicolas Kalkhof

This happens on my machine after some minutes, too when running X and the trinity desktop. the cpu continuously uses up additional ~10 watts comparing to older 3.1 kernels. The issue remains high even after I kill X. A closer investigation shows that poll_idle uses up the cpu (see dump below). Is it normal for poll_idle to use up all ressources?

poll_idle should not consume cycles on i7 unless you booted idle=poll, or miss-configured the kernel.

egrep 'IDLE|GOV' .config

CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_ARCH_HAS_DEFAULT_IDLE=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=m CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y CONFIG_INTEL_IDLE=y CONFIG_I7300_IDLE_IOAT_CHANNEL=y CONFIG_I7300_IDLE=m CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y CONFIG_DEVFREQ_GOV_PERFORMANCE=y CONFIG_DEVFREQ_GOV_POWERSAVE=y CONFIG_DEVFREQ_GOV_USERSPACE=y