LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-02-2007, 10:18 PM   #1
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
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?
 
Old 11-02-2007, 10:39 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
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.
 
Old 11-02-2007, 10:53 PM   #3
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by syg00 View Post
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.
Ok I ran the command top, but I'm not sure how to make it save a log every 5-10 minutes.
 
Old 11-02-2007, 11:09 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
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 &
Edit: by logs, I was querying whether you had checked your logs; have a look in /var/log/*, and "dmesg"

Last edited by syg00; 11-02-2007 at 11:12 PM.
 
Old 11-03-2007, 01:42 PM   #5
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
 
Old 11-03-2007, 04:28 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
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.
 
Old 11-03-2007, 04:36 PM   #7
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
I have tried different screen savers, doesn't change anything.
 
Old 11-04-2007, 01:41 AM   #8
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
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
Tasks: 121 total,   3 running, 117 sleeping,   1 stopped,   0 zombie
Cpu(s): 46.9%us,  3.9%sy,  0.0%ni, 49.1%id,  0.1%wa,  0.1%hi,  0.0%si,  0.0%st
Mem:    970068k total,   834244k used,   135824k free,      316k buffers
Swap:  2048276k total,        0k used,  2048276k free,   402268k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 3366 root      25   0  231m  85m 7464 R 99.2  9.0 810:26.19 Xorg               
 6184 replica   15   0  2288 1016  760 R  2.0  0.1   0:00.01 top                
    1 root      15   0  2064  708  604 S  0.0  0.1   0:01.12 init               
    2 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd           
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0        
    4 root      34  19     0    0    0 S  0.0  0.0   0:00.29 ksoftirqd/0        
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0         
    6 root      10  -5     0    0    0 S  0.0  0.0   0:01.21 events/0           
    7 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper            
   25 root      15  -5     0    0    0 S  0.0  0.0   0:00.08 kblockd/0          
   26 root      10  -5     0    0    0 S  0.0  0.0   0:01.72 kacpid             
   27 root      10  -5     0    0    0 S  0.0  0.0   0:01.45 kacpi_notify       
  123 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 kseriod            
  145 root      15   0     0    0    0 S  0.0  0.0   0:00.56 pdflush            
  146 root      15   0     0    0    0 S  0.0  0.0   0:00.26 pdflush            
  147 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kswapd0            
  148 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0              
  590 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 ksuspend_usbd
 
Old 11-04-2007, 05:26 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
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.
 
Old 11-04-2007, 07:49 PM   #10
PETROSHP
LQ Newbie
 
Registered: Jan 2007
Posts: 24

Rep: Reputation: 15
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??
 
Old 11-04-2007, 11:06 PM   #11
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by syg00 View Post
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.
My processor is a single core AMD Turion64 ML-34
 
Old 11-05-2007, 02:43 PM   #12
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
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
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
IOAPIC[0]: apic_id 1, version 33, address 0xfec00000, GSI 0-23
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
replica@Debsidian:~$ dmesg | grep APIC
ACPI: APIC 3BEB7F6A, 005A (r1 GATEWA M300     20060124  LTP        0)
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:4 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 33, address 0xfec00000, GSI 0-23
Enabling APIC mode:  Flat.  Using 1 I/O APICs
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
ENABLING IO-APIC IRQs
..MP-BIOS bug: 8254 timer not connected to IO-APIC
ACPI: Using IOAPIC for interrupt routing
APIC error on CPU0: 00(40)
 
Old 11-05-2007, 03:22 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
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.
 
Old 11-05-2007, 03:27 PM   #14
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
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
so I'm gonna try noapic now.
 
Old 11-05-2007, 03:37 PM   #15
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,134

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Ok booted up with the noapic option, here what dmesg outputs:
Code:
$ dmesg | grep APIC
ACPI: APIC 3BEB7F6A, 005A (r1 GATEWA M300     20060124  LTP        0)
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:4 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: Skipping IOAPIC probe due to 'noapic' option.
Using ACPI for processor (LAPIC) configuration information
OEM ID:          Product ID:              APIC at: 0xFEE00000
I/O APIC #1 Version 33 at 0xFEC00000.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
So I don't see
"..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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My processor ran 10-12 hours without fan Hitboxx General 13 01-11-2007 04:52 PM
Load Avg High/Phys Mem High teamh Debian 2 12-26-2006 05:03 PM
Why is my load average so high when comp. is idle? BrianK Linux - General 1 11-18-2005 12:25 AM
High load - but CPU 99% idle? Boss Hoss Linux - Hardware 6 05-24-2004 04:39 AM
High idle cpu load in 2.6.4? geekzen Linux - General 4 04-10-2004 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration