Skip to contentSkip to conversation

kapm-idled shows 90+% cpu usage when idle

DISCUSSION Mikael Pettersson 3 participants 3 messages Aug 10, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · safemode

Is this a true usage reading or just some quirk that's supposed to happen? I really doubt that this kernel daemon should really be using cpu. It seems to respond with a higher cpu usage when i'm idle. It immediately goes away
when something else uses cpu. If you need any more info just ask. I'm

Do you have CONFIG_APM_CPU_IDLE=y in your .config? If so, disable it.

There was a thread about this problem some months ago. I found that on all of my APM-capable machines, including a Dell laptop, CONFIG_APM_CPU_IDLE=y had a negative effect. The kernel ended up in a tight loop performing tons of APM IDLE BIOS calls, since each BIOS call returned immediately without having idled the CPU.

Leaving CONFIG_APM_CPU_IDLE unset lets the kernel use its own "HLT when idle" code. On my main development box, idle CPU temperature dropped >10 degrees C, and kapm-idled now uses 0% CPU.

/Mikael

#1 lore raw
Quoted 15 lines · Mikael Pettersson
Quoted 5 lines · safemode

Is this a true usage reading or just some quirk that's supposed to happen? I really doubt that this kernel daemon should really be using cpu. It seems to respond with a higher cpu usage when i'm idle. It immediately
goes away when something else uses cpu. If you need any more info just
ask. I'm

Do you have CONFIG_APM_CPU_IDLE=y in your .config? If so, disable it.

There was a thread about this problem some months ago. I found that on all of my APM-capable machines, including a Dell laptop, CONFIG_APM_CPU_IDLE=y had a negative effect. The kernel ended up in a tight loop performing tons of APM IDLE BIOS calls, since each BIOS call returned immediately without having idled the CPU.

Quoted 5 lines

Leaving CONFIG_APM_CPU_IDLE unset lets the kernel use its own "HLT when idle" code. On my main development box, idle CPU temperature dropped >10 degrees C, and kapm-idled now uses 0% CPU.

/Mikael

I've been told by others that this is exactly what's supposed to happen. It acts like it's using cpu when it's idle and does it job that way. I see no
difference either way. I'm using a KA7 motherboard and it says it supports
apm and lspci shows what i pasted in the original post. Oh well, it's not causing the cpu to generate more heat than it would be idle.

#2 lore raw
In reply to Mikael Pettersson
Quoted 23 lines
Quoted 7 lines · safemode
Quoted 5 lines

Is this a true usage reading or just some quirk that's supposed to happen? I really doubt that this kernel daemon should really be using cpu. It seems to respond with a higher cpu usage when i'm idle. It immediately
goes away when something else uses cpu. If you need any more info just
ask. I'm

Quoted 13 lines · Mikael Pettersson

Do you have CONFIG_APM_CPU_IDLE=y in your .config? If so, disable it.

There was a thread about this problem some months ago. I found that on all of my APM-capable machines, including a Dell laptop, CONFIG_APM_CPU_IDLE=y had a negative effect. The kernel ended up in a tight loop performing tons of APM IDLE BIOS calls, since each BIOS call returned immediately without having idled the CPU.

Leaving CONFIG_APM_CPU_IDLE unset lets the kernel use its own "HLT when idle" code. On my main development box, idle CPU temperature dropped >10 degrees C, and kapm-idled now uses 0% CPU.

/Mikael

Quoted 5 lines · safemode

I've been told by others that this is exactly what's supposed to happen. It acts like it's using cpu when it's idle and does it job that way. I see no
difference either way. I'm using a KA7 motherboard and it says it supports
apm and lspci shows what i pasted in the original post. Oh well, it's not causing the cpu to generate more heat than it would be idle.

If you don't see any benefit, I'd disable it just because of the modified results from top...