You are not logged in.

#1 2010-06-15 16:34:58

arcangeli
Member
Registered: 2010-06-15
Posts: 21

[solved] kacpid eat CPU cycle

Hi,
I've installed ArchLinux (x86_64) today on my new HP 8740w laptop (Core-i7 Q720 + nVidia quadro FX 3800m).
With kernel26-2.6.34-1 from testing.

kacpid but 96.5% of the first core all the time as reported by ps aux.

I've upgraded the BIOS.

I use Arch on another laptop (HP 4510s) every day with the same kernel without problem.

Result of ps aux:

[root@zalayane bruno]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   3892   604 ?        Ss   17:52   0:01 init [3]  
root         2  0.0  0.0      0     0 ?        S    17:52   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/2]
root        10  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/2]
root        11  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/2]
root        12  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/3]
root        13  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/3]
root        14  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/3]
root        15  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/4]
root        16  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/4]
root        17  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/4]
root        18  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/5]
root        19  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/5]
root        20  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/5]
root        21  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/6]
root        22  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/6]
root        23  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/6]
root        24  0.0  0.0      0     0 ?        S    17:52   0:00 [migration/7]
root        25  0.0  0.0      0     0 ?        S    17:52   0:00 [ksoftirqd/7]
root        26  0.0  0.0      0     0 ?        S    17:52   0:00 [watchdog/7]
root        27  0.0  0.0      0     0 ?        S    17:52   0:00 [events/0]
root        28  0.1  0.0      0     0 ?        S    17:52   0:02 [events/1]
root        29  0.0  0.0      0     0 ?        S    17:52   0:00 [events/2]
root        30  0.0  0.0      0     0 ?        S    17:52   0:00 [events/3]
root        31  0.0  0.0      0     0 ?        S    17:52   0:00 [events/4]
root        32  0.0  0.0      0     0 ?        S    17:52   0:00 [events/5]
root        33  0.0  0.0      0     0 ?        S    17:52   0:00 [events/6]
root        34  0.0  0.0      0     0 ?        S    17:52   0:00 [events/7]
root        35  0.0  0.0      0     0 ?        S    17:52   0:00 [cpuset]
root        36  0.0  0.0      0     0 ?        S    17:52   0:00 [khelper]
root        37  0.0  0.0      0     0 ?        S    17:52   0:00 [netns]
root        38  0.0  0.0      0     0 ?        S    17:52   0:00 [async/mgr]
root        39  0.0  0.0      0     0 ?        S    17:52   0:00 [pm]
root        40  0.0  0.0      0     0 ?        S    17:52   0:00 [sync_supers]
root        41  0.0  0.0      0     0 ?        S    17:52   0:00 [bdi-default]
root        42  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/0]
root        43  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/1]
root        44  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/2]
root        45  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/3]
root        46  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/4]
root        47  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/5]
root        48  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/6]
root        49  0.0  0.0      0     0 ?        S    17:52   0:00 [kblockd/7]
root        50 96.5  0.0      0     0 ?        R    17:52  23:08 [kacpid]
root        51  0.4  0.0      0     0 ?        S    17:52   0:06 [kacpi_notify]
root        52  0.0  0.0      0     0 ?        S    17:52   0:00 [kacpi_hotplug]
root        53  0.0  0.0      0     0 ?        S    17:52   0:00 [kseriod]
root        62  0.0  0.0      0     0 ?        S    17:52   0:00 [khungtaskd]
root        63  0.0  0.0      0     0 ?        S    17:52   0:00 [kswapd0]
root        64  0.0  0.0      0     0 ?        SN   17:52   0:00 [ksmd]
root        65  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/0]
root        66  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/1]
root        67  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/2]
root        68  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/3]
root        69  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/4]
root        70  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/5]
root        71  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/6]
root        72  0.0  0.0      0     0 ?        S    17:52   0:00 [aio/7]
root        73  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/0]
root        74  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/1]
root        75  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/2]
root        76  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/3]
root        77  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/4]
root        78  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/5]
root        79  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/6]
root        80  0.0  0.0      0     0 ?        S    17:52   0:00 [crypto/7]
root      1144  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/0]
root      1145  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/1]
root      1146  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/2]
root      1147  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/3]
root      1148  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/4]
root      1149  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/5]
root      1150  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/6]
root      1151  0.0  0.0      0     0 ?        S    17:52   0:00 [ata/7]
root      1152  0.0  0.0      0     0 ?        S    17:52   0:00 [ata_aux]
root      1153  0.0  0.0      0     0 ?        S    17:52   0:00 [scsi_eh_0]
root      1154  0.0  0.0      0     0 ?        S    17:52   0:00 [scsi_eh_1]
root      1155  0.0  0.0      0     0 ?        S    17:52   0:00 [scsi_eh_2]
root      1156  0.0  0.0      0     0 ?        S    17:52   0:00 [scsi_eh_3]
root      1157  0.0  0.0      0     0 ?        S    17:52   0:00 [scsi_eh_4]
root      1158  0.0  0.0      0     0 ?        S    17:52   0:00 [scsi_eh_5]
root      1204  0.0  0.0      0     0 ?        S    17:52   0:00 [jbd2/sda3-8]
root      1205  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1206  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1207  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1208  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1209  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1210  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1211  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1212  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      1245  0.0  0.0   6696  1324 ?        S<s  17:52   0:00 /sbin/udevd --daemon
root      1778  0.0  0.0      0     0 ?        S    17:52   0:00 [cfg80211]
root      1881  0.0  0.0      0     0 ?        S    17:52   0:00 [khubd]
root      1936  0.0  0.0      0     0 ?        S    17:52   0:00 [kpsmoused]
root      1956  0.0  0.0      0     0 ?        S    17:52   0:00 [kmmcd]
root      1990  0.0  0.0      0     0 ?        S    17:52   0:00 [pccardd]
root      2029  0.0  0.0      0     0 ?        S    17:52   0:00 [hd-audio0]
root      2128  0.0  0.0      0     0 ?        S    17:52   0:00 [usbhid_resumer]
root      2217  0.0  0.0      0     0 ?        S    17:52   0:00 [jbd2/sda4-8]
root      2218  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2219  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2220  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2221  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2222  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2223  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2224  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2225  0.0  0.0      0     0 ?        S    17:52   0:00 [ext4-dio-unwrit]
root      2237  0.0  0.0      0     0 ?        S    17:52   0:00 [flush-8:0]
root      2339  0.0  0.0  26092   544 ?        S    17:53   0:00 supervising syslog-ng
root      2340  0.0  0.0  28460  1992 ?        Ss   17:53   0:00 /usr/sbin/syslog-ng
root      2380  0.0  0.0   8200   340 ?        Ss   17:53   0:00 /sbin/dhcpcd -q eth0
root      2397  0.0  0.0   5988   652 ?        Ss   17:53   0:00 /usr/sbin/crond -S -l info
root      2724  0.0  0.0  43524  1244 tty1     Ss   17:53   0:00 /bin/login --      
root      2725  0.0  0.0   3888   584 tty2     Ss+  17:53   0:00 /sbin/agetty -8 38400 tty2 linux
root      2726  0.0  0.0   3888   584 tty3     Ss+  17:53   0:00 /sbin/agetty -8 38400 tty3 linux
root      2727  0.0  0.0   3888   584 tty4     Ss+  17:53   0:00 /sbin/agetty -8 38400 tty4 linux
root      2728  0.0  0.0   3888   580 tty5     Ss+  17:53   0:00 /sbin/agetty -8 38400 tty5 linux
root      2729  0.0  0.0   3888   584 tty6     Ss+  17:53   0:00 /sbin/agetty -8 38400 tty6 linux
bruno     2730  0.0  0.0  25004  2708 tty1     S    17:55   0:00 -zsh
bruno     2774  0.0  0.0  13492  1660 tty1     S+   17:57   0:00 /bin/sh /usr/bin/startx
bruno     2791  0.0  0.0  15536   800 tty1     S+   17:57   0:00 xinit /home/bruno/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.Xw0YumC8Qn
root      2792  1.4  0.7 110936 31376 tty7     S<s+ 17:57   0:16 /usr/bin/X -nolisten tcp
root      2794  0.0  0.0   6692  1252 ?        S<   17:57   0:00 /sbin/udevd --daemon
bruno     2797  0.0  0.0  13492  1556 tty1     S    17:57   0:00 sh /home/bruno/.xinitrc
bruno     2803  0.0  0.2  70688 10320 tty1     S    17:57   0:00 urxvtd
bruno     2805  0.2  0.2 157416 10068 tty1     S    17:57   0:02 awesome
bruno     2806  0.0  0.0  13492   888 tty1     S    17:57   0:00 /bin/sh /home/bruno/bin/wallpaperch.sh
bruno     2814  0.0  0.0  19816   560 tty1     S    17:57   0:00 dbus-launch --autolaunch 5da171bbbf3ff2e336da543300000294 --binary-syntax --close-stderr
bruno     2816  0.0  0.0  12728   868 ?        Ss   17:57   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
bruno     2828  0.0  0.0  27260  3012 pts/0    Ss   17:58   0:00 zsh
bruno     2876  2.4  2.7 474568 108032 tty1    Sl   18:00   0:23 firefox
bruno     2883  0.0  0.0  37928  3056 ?        S    18:00   0:00 /usr/lib/GConf/gconfd-2
root      2902  0.0  0.0   6692  1148 ?        S<   18:00   0:00 /sbin/udevd --daemon
root      3011  0.0  0.0  22952  1196 pts/0    S    18:11   0:00 su
root      3014  0.0  0.0  15732  2180 pts/0    S    18:11   0:00 bash
bruno     3081  0.0  0.0   5872   548 tty1     S    18:12   0:00 sleep 15m
root      3307  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/0]
root      3308  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/1]
root      3309  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/2]
root      3310  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/3]
root      3311  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/4]
root      3312  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/5]
root      3313  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/6]
root      3314  0.0  0.0      0     0 ?        S    18:13   0:00 [kondemand/7]
root      3357  0.0  0.0   3884   600 ?        Ss   18:14   0:00 /usr/sbin/acpid
root      3381  0.0  0.0  10612  1172 pts/0    R+   18:16   0:00 ps aux

Help greatly appreciated

Bruno

EDIT:
There is a know bug in some HP laptop BIOS. Kernel 2.6.35 (git version) resolve this issue, but it need to add the line "echo disable > /sys/firmware/acpi/interrupts/gpe01" in /etc/rc.local

I'm waiting for the Arch version of 2.6.35 now :-)

Last edited by arcangeli (2010-06-25 07:30:41)

Offline

#2 2010-06-15 18:55:48

arcangeli
Member
Registered: 2010-06-15
Posts: 21

Re: [solved] kacpid eat CPU cycle

I've tried to downgrade the kernel with 2.6.33 in Core. Same problem.

Offline

#3 2010-06-28 06:05:03

rippleAdder
Member
Registered: 2010-06-28
Posts: 2

Re: [solved] kacpid eat CPU cycle

I am having the same problem hp 8540p I tried using 2.6.35 and the issue  issue persisted. I have seen this reported elsewhere and none of the "workarounds" seem to resolve our problem.  I am continuing to investigate but if this problem isn't corrected I believe it will damage our hardware as the acpi control system is completely borked.

Offline

#4 2010-06-28 11:44:20

arcangeli
Member
Registered: 2010-06-15
Posts: 21

Re: [solved] kacpid eat CPU cycle

Hi rippleAdder,

Update your BIOS as this bug come from the new HP bios on some laptop (mainly EliteBook) and reset to factory setting. There is a problem with "run always the fan whith AC adapter connected" or something like that (i can't look at my bios now because i'm compiling a big software).

The patch was applied to the 2.6.35 tree after the rc3 release candidate.

Please try this patch with the kernel source 2.6.35-rc3 with the last git patch (i'm using the 20100625 version) and add tjhis patch (found somewhere on the kenel bugzilla):

---
 drivers/pci/pcie/pme/pcie_pme_acpi.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: linux-2.6/drivers/pci/pcie/pme/pcie_pme_acpi.c
===================================================================
--- linux-2.6.orig/drivers/pci/pcie/pme/pcie_pme_acpi.c
+++ linux-2.6/drivers/pci/pcie/pme/pcie_pme_acpi.c
@@ -39,9 +39,10 @@ int pcie_pme_acpi_setup(struct pcie_devi
        if (!handle)
                return -EINVAL;

-       status = acpi_pci_osc_control_set(handle,
+       status = AE_NOT_FOUND;
+       /*status = acpi_pci_osc_control_set(handle,
                        OSC_PCI_EXPRESS_PME_CONTROL |
-                       OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL);
+                       OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL);*/
        if (ACPI_FAILURE(status)) {
                dev_info(&port->dev,
                        "Failed to receive control of PCIe PME service: %s\n",

After compiling/installing the new kernel, add

echo disable > /sys/firmware/acpi/interrupts/gpe01

to /etc/rc.local

Restart with the new kernel.

I've made a PKGBUILD file (tweaked from another kernel release) for this. Please ask if you need it. It's not very good but do the job.

Offline

#5 2010-06-30 03:59:18

rippleAdder
Member
Registered: 2010-06-28
Posts: 2

Re: [solved] kacpid eat CPU cycle

I installed kernel26-git and the main problem seems to have stopped. Now and have issue compiling modules specifically alsa snd-aloop and I can forsee other issues as there is no matching header package for this kernel build. I have no luck flashing the bios from usb but I could be doing it wrong.

Offline

#6 2010-06-30 06:40:31

arcangeli
Member
Registered: 2010-06-15
Posts: 21

Re: [solved] kacpid eat CPU cycle

you can remove kernel26-headers with pacman -R. The kernel26-git pkgbuild install all the headers file in /usr/src.

Have you tried to reflash your bios with freedos?

Offline

#7 2010-08-19 23:40:46

thiagoc
Member
From: Brazil
Registered: 2009-02-14
Posts: 33
Website

Re: [solved] kacpid eat CPU cycle

Kernel .35 don't help me, but I'm think I solved this problem in my Intel Atom-based system.

From https://bugs.launchpad.net/ubuntu/+sour … comments/9:

I disabled in the BIOS "fan controlled from operating system".
My BIOS allows to set a fixed speed (from 50% up to 100%) or speed controlled by operating system.
Now I have put the speed fixed to 50% and this is fixed fixed fixed.

Offline

Board footer

Powered by FluxBB