Processor load high when laptop is idle for hours
I've noticed that when I don't touch my laptop for a few hours, the processor load is usually at 100%. It has been doing this since kernel 2.6.21 and higher (currently 2.6.22-3-k7). Most of the time it doesn't cause a problem, but sometimes after I exit my screensaver (blank screensaver) KDE will freeze up when I click on something, causing me to CTRL+ALT+BACKSPACE to restart X.
Anyone have an idea what might cause this? |
Logs ???.
Try running top in batch and write to a file every so often; say every 5-10 minutes. See what trickles to the top of the CPU usage. If nothing, that might indicate a kernel/driver issue. |
Quote:
|
Try something like this - should be self-explanatory, or see the man page(s)
Code:
while true ; do top -b -n 1 | head -n 25 > topdata.`date +%F_%H:%M:%S` ; sleep 600 ; done & |
So far it hasn't frozen on me yet, doesn't always happen, but according to the top data Xorg is at the top of the list.
When I say KDE freezes, it doesn't totally freeze up. Stuff like SuperKaramba and the clock still work fine, and I can still move the mouse pointer, but tooltips don't go away and I loose the ability to click on stuff or use the keyboard other than ALT+CTRL+BACKSPACE. Using SuperKaramba to monitor HDD space is usually the cause of this problem, though rarely it hasppens without SuperKaramba. |
X is a facilitator - generally it shows up as a symptom, not the real problem.
Something else is demanding services - if it's the screen saver, stop using it, or go looking for bug reports. |
I have tried different screen savers, doesn't change anything.
|
Ok I left it alone for hours, and X stopped responding. This is one of the saved top logs from about 10 minutes before I opened up my laptop:
Code:
top - 01:36:59 up 1 day, 8:22, 1 user, load average: 1.00, 1.00, 1.00 |
Do you have 2 CPUs (hiperthread maybe) ???.
If it's just come in as a problem, try running as a uniprocessor and see if the problem still occurs. Keep an eye out for fixes, or go back to the previous kernel level. |
similar problem here, although that happens from the begining... yesterday i finished configuring my CF and it was working just great although i started noticing a slow down on Super+Z function.. during the night while i was listening to Amarok my gnome freezed although music was keep running. I forced a shutdown and after a reboot I got no sound (even if I tried to run PuppyOS just to keep on with the music, unfortunately still no sound!!!) and my processor says 50% in use and when i go and click on something, it goes full and i got no action. (clock indeed keeps working properly and mouse too). My hd blinks once every 3 seconds... Any idea what´s wrong?
a suggestion above from replica9000 to try running "top in batch" does not ring a bell to me as I am new in linux world... Also by downgarding kernel would not be easy for me as well.. can u pls give me some light here?? |
Quote:
|
I think I found that it's a APIC error causing this problem. Not sure how to fix it though. I don't think my BIOS lets me disable APIC.
Code:
$ dmesg | grep apic |
No need - add "noapic" to the kernel line in your boot-loader. Maybe (separately) look at nolapic as well. Try the minimum set necessary, and "mix and match" if necessary to see what works. Should be plenty of threads on LQ about how to do this.
|
yeah I just tried adding noioapic to grub, but IO-APIC was still enabled.
Code:
kernel /vmlinuz-2.6.22-3-k7 root=/dev/hda5 ro quiet noioapic vga=791 |
Ok booted up with the noapic option, here what dmesg outputs:
Code:
$ dmesg | grep APIC "..MP-BIOS bug: 8254 timer not connected to IO-APIC" anymore so the test now is to let the laptop sit idle for a while, which usually takes 3+ hours to reproduce the problem. |
All times are GMT -5. The time now is 01:17 PM. |