LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   High CPU load by kworker (http://www.linuxquestions.org/questions/linux-kernel-70/high-cpu-load-by-kworker-4175426466/)

sagatov 09-10-2012 03:19 AM

High CPU load by kworker
 
Lenovo IdeaPad Y560p. I have Ubuntu 12.04 with 3.2.0-30-generic kernel. I've tried all the kernels for the year. I've tried 3.4.0 kernel too. No results.

top
Code:

top - 11:13:26 up 7 min,  2 users,  load average: 0.14, 0.29, 0.15
Tasks: 161 total,  2 running, 159 sleeping,  0 stopped,  0 zombie
Cpu(s):  0.4%us,  3.9%sy,  0.0%ni, 95.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  6094152k total,  939540k used,  5154612k free,    36532k buffers
Swap:  6270972k total,        0k used,  6270972k free,  344800k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  11 root      20  0    0    0    0 R  35  0.0  1:11.52 kworker/0:1
 1106 root      20  0  301m  75m  49m S    2  1.3  0:04.78 Xorg
 3154 st1      20  0  497m  30m  21m S    2  0.5  0:00.82 konsole
  179 root      20  0    0    0    0 S    0  0.0  0:00.24 kworker/2:1
 2847 st1      20  0  682m  48m  34m S    0  0.8  0:00.85 kwin
    1 root      20  0 24444 2416 1380 S    0  0.0  0:01.30 init
    2 root      20  0    0    0    0 S    0  0.0  0:00.00 kthreadd
    3 root      20  0    0    0    0 S    0  0.0  0:00.00 ksoftirqd/0
    6 root      RT  0    0    0    0 S    0  0.0  0:00.00 migration/0
    7 root      RT  0    0    0    0 S    0  0.0  0:00.00 watchdog/0
    8 root      RT  0    0    0    0 S    0  0.0  0:00.00 migration/1
    9 root      20  0    0    0    0 S    0  0.0  0:00.00 kworker/1:0
  10 root      20  0    0    0    0 S    0  0.0  0:00.00 ksoftirqd/1
  12 root      RT  0    0    0    0 S    0  0.0  0:00.00 watchdog/1
  13 root      RT  0    0    0    0 S    0  0.0  0:00.00 migration/2
  14 root      20  0    0    0    0 S    0  0.0  0:00.00 kworker/2:0
  15 root      20  0    0    0    0 S    0  0.0  0:00.00 ksoftirqd/2
...

dmesg | grep ACPI
Code:

[    0.000000]  BIOS-e820: 00000000c7470000 - 00000000c74f1000 (ACPI NVS)
[    0.000000]  BIOS-e820: 00000000c7780000 - 00000000c779f000 (ACPI NVS)
[    0.000000]  BIOS-e820: 00000000c77e1000 - 00000000c77ff000 (ACPI data)
[    0.000000] ACPI: RSDP 00000000000f6f70 00024 (v02 PTLTD )
[    0.000000] ACPI: XSDT 00000000c77f1e3a 0006C (v01 LENOVO CB-01    06040000  LTP 00000000)
[    0.000000] ACPI: FACP 00000000c77e3000 000F4 (v03 LENOVO CB-01    06040000 PTEC 00000001)
[    0.000000] ACPI: DSDT 00000000c77e4000 0BC8C (v02 LENOVO CB-01    06040000 INTL 20060912)
[    0.000000] ACPI: FACS 00000000c779cfc0 00040
[    0.000000] ACPI: SSDT 00000000c77fdb62 01068 (v01 LENOVO CB-01    06040000 INTL 20060912)
[    0.000000] ACPI: HPET 00000000c77fed32 00038 (v01 LENOVO CB-01    06040000 PTEC 00000001)
[    0.000000] ACPI: MCFG 00000000c77fed6a 0003C (v01 LENOVO CB-01    06040000 PTEC 00000001)
[    0.000000] ACPI: APIC 00000000c77feda6 000BC (v01 LENOVO CB-01    06040000  LTP 00000000)
[    0.000000] ACPI: BOOT 00000000c77fee62 00028 (v01 LENOVO CB-01    06040000  LTP 00000001)
[    0.000000] ACPI: SLIC 00000000c77fee8a 00176 (v01 LENOVO CB-01    06040000  LTP 00000000)
[    0.000000] ACPI: SSDT 00000000c77e2000 0090C (v01  PmRef  Cpu0Ist 00003000 INTL 20060912)
[    0.000000] ACPI: SSDT 00000000c77e1000 00996 (v01  PmRef    CpuPm 00003000 INTL 20060912)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x03] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x05] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x07] enabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x04] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x05] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x06] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x07] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x8086a701 base: 0xfed00000
[    0.006587] ACPI: Core revision 20110623
[    0.946649] PM: Registering ACPI NVS region at c7470000 (528384 bytes)
[    0.946659] PM: Registering ACPI NVS region at c7780000 (126976 bytes)
[    0.947663] ACPI: bus type pci registered
[    0.948726] ACPI: Added _OSI(Module Device)
[    0.948728] ACPI: Added _OSI(Processor Device)
[    0.948729] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.948731] ACPI: Added _OSI(Processor Aggregator Device)
[    0.950820] ACPI: EC: Look up EC in DSDT
[    0.952923] ACPI: Executed 1 blocks of module-level executable AML code
[    0.956780] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[    0.957196] ACPI: SSDT 00000000c7719718 0067C (v01  PmRef  Cpu0Cst 00003001 INTL 20060912)
[    0.957730] ACPI: Dynamic OEM Table Load:
[    0.957733] ACPI: SSDT          (null) 0067C (v01  PmRef  Cpu0Cst 00003001 INTL 20060912)
[    0.984279] ACPI: SSDT 00000000c771aa98 00303 (v01  PmRef    ApIst 00003000 INTL 20060912)
[    0.984848] ACPI: Dynamic OEM Table Load:
[    0.984851] ACPI: SSDT          (null) 00303 (v01  PmRef    ApIst 00003000 INTL 20060912)
[    1.008107] ACPI: SSDT 00000000c7718d98 00119 (v01  PmRef    ApCst 00003000 INTL 20060912)
[    1.008643] ACPI: Dynamic OEM Table Load:
[    1.008645] ACPI: SSDT          (null) 00119 (v01  PmRef    ApCst 00003000 INTL 20060912)
[    1.193430] ACPI: Interpreter enabled
[    1.193437] ACPI: (supports S0 S1 S3 S4 S5)
[    1.193467] ACPI: Using IOAPIC for interrupt routing
[    1.193880] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in ACPI motherboard resources
[    1.281022] ACPI: EC: GPE = 0x17, I/O: command/status = 0x66, data = 0x62
[    1.281251] ACPI: No dock devices found.
[    1.281256] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    1.281561] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
[    1.323985] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    1.324125] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P2._PRT]
[    1.324185] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
[    1.324221] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
[    1.324258] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP04._PRT]
[    1.324296] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP07._PRT]
[    1.324372] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEG0._PRT]
[    1.324455]  pci0000:00: Requesting ACPI _OSC control (0x1d)
[    1.324493]  pci0000:00: ACPI _OSC request failed (AE_ERROR), returned control mask: 0x1d
[    1.324495] ACPI _OSC control for PCIe not granted, disabling ASPM
[    1.328117] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
[    1.328170] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)
[    1.328221] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
[    1.328272] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)
[    1.328320] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    1.328369] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    1.328416] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 *7 10 11 12 14 15)
[    1.328462] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
[    1.328919] PCI: Using ACPI for IRQ routing
[    1.344287] pnp: PnP ACPI init
[    1.344300] ACPI: bus type pnp registered
[    1.344699] pnp 00:00: Plug and Play ACPI device, IDs PNP0a08 PNP0a03 (active)
[    1.344758] pnp 00:01: Plug and Play ACPI device, IDs PNP0200 (active)
[    1.344788] pnp 00:02: Plug and Play ACPI device, IDs INT0800 (active)
[    1.344888] pnp 00:03: Plug and Play ACPI device, IDs PNP0103 (active)
[    1.344930] pnp 00:04: Plug and Play ACPI device, IDs PNP0c04 (active)
[    1.345035] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[    1.345069] pnp 00:06: Plug and Play ACPI device, IDs PNP0b00 (active)
[    1.345135] system 00:07: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
[    1.345194] pnp 00:08: Plug and Play ACPI device, IDs PNP0303 (active)
[    1.345257] pnp 00:09: Plug and Play ACPI device, IDs SYN1044 SYN1000 SYN0002 PNP0f13 (active)
[    1.345475] system 00:0a: Plug and Play ACPI device, IDs PNP0c02 (active)
[    1.345999] pnp: PnP ACPI: found 11 devices
[    1.346001] ACPI: ACPI bus type pnp unregistered
[    1.406223] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[    1.406521] ACPI: AC Adapter [ACAD] (on-line)
[    1.407141] ACPI: Lid Switch [LID]
[    1.407200] ACPI: Power Button [PWRB]
[    1.407239] ACPI: Sleep Button [SLPB]
[    1.407279] ACPI: Power Button [PWRF]
[    1.416466] ACPI: Thermal Zone [TZ00] (59 C)
[    1.416490] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[    1.416497] ACPI: Battery Slot [BAT1] (battery present)
[    1.633406] ACPI: Battery Slot [BAT1] (battery present)
[    2.771019] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)

I look many int9 (IO-APIC-fasteoi acpi) interruptions.

The problem is solved in two ways:
1 "echo disable > /sys/firmware/acpi/interrupts/gpe18"
2 acpi=off in grub

Any ideas?

nini09 09-19-2012 03:44 PM

Kworker is what controls the ACPI wakeup signals from the BIOS.
The latest kernel, well all of them since 2.6.35 have had issues with too many wakeups.

cwsutherland 10-21-2012 05:01 AM

I also have the Lenovo Y560p with the same issue but the problem is now solved.

Add the following in grub acpi=noirq

This will fix the kworker problem

Lukasz_Cholewa 10-10-2014 04:40 AM

[solved] for me
 
Based on this advice,
http://osdir.com/ml/ubuntu-bugs/2013-08/msg09026.html
I did the following:

1) Edited /boot/config-{kernversion}-server (on mine right now this
is 3.13.0-24-generic); commented out ONE line with IPMI and watchdog in it.
2) I deleted /lib/modules/3.13.0-24-generic/kernel/drivers/char/ipmi/ipmi_watchdog.ko (earlier I made backup of this file)

acpi=noirq was not necessary in my case.

I know this topic is old, but it still comes up in Google, soo... maby it will help someone.


All times are GMT -5. The time now is 02:32 PM.