You are not logged in.

#1 2009-06-05 19:23:02

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

High CPU Usage.....25% Higher than Ubuntu/Debian [SOLVED]

My Arch 2009.2 x86-64 Gnome install idles at about 25-27% CPU usage.

Similarly configured Ubuntu 9.04 64bit on this same computer idles at about 1%. About the same as Debian 5.0 64bit.

I use the Radeon HD driver on Arch. Ubuntu and Debian use the fglrx driver.

I use Metacity only in Arch, whereas Ubuntu has Compiz installed, but I seldom use it.

xf86-video-radeonhd (1.2.5-1)
Experimental Radeon HD video driver for r500 and r600 ATI cards
Status: Installed
Local Version: 1.2.5-1
Version in the Repository: 1.2.5-1

The Radeon HD description says experimental,  but it's in the extra pacman repo.
I believe the Radeon driver is OSS and would be more stable, whereas the fglrx would be more problematic.

[jeff@Arch2009p2 ~]$ uname -a
Linux Arch2009p2 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 06:42:43 UTC 2009 x86_64 AMD Phenom(tm) 9850 Quad-Core Processor AuthenticAMD GNU/Linux
[jeff@Arch2009p2 ~]$
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon 3100 Graphics

Arch top:

[jeff@Arch2009p2 ~]$ su
Password: 
[root@Arch2009p2 jeff]# top

top - 10:06:01 up 1 day, 19:30,  2 users,  load average: 1.41, 1.65, 1.60
Tasks: 123 total,   3 running, 120 sleeping,   0 stopped,   0 zombie
Cpu(s): 18.9%us,  7.9%sy,  0.0%ni, 73.0%id,  0.1%wa,  0.1%hi,  0.0%si,  0.0%st
Mem:   3788364k total,  3444748k used,   343616k free,   675060k buffers
Swap:  2048216k total,        0k used,  2048216k free,  1806460k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                
16072 root      20   0  385m  59m 8104 R    6  1.6   0:26.42 Xorg                                                                                                   
16103 jeff      20   0  164m 7816 6052 S    4  0.2   0:17.78 gnome-session                                                                                          
16153 jeff      20   0  8800 1320  744 S    3  0.0   0:12.15 dbus-daemon                                                                                            
16158 jeff      20   0 40596 6432 2192 S    3  0.2   0:12.55 gconfd-2                                                                                               
16234 jeff      20   0  298m  40m  10m S    2  1.1   0:12.70 python                                                                                                 
16165 jeff      20   0  223m  11m 7968 S    1  0.3   0:05.06 gnome-settings-                                                                                        
16218 jeff      20   0  148m 9124 7244 S    1  0.2   0:03.12 gnome-power-man                                                                                        
18960 jeff      20   0  202m  16m  10m S    1  0.4   0:02.17 gnome-terminal                                                                                         
16170 jeff      20   0  176m  14m 9660 S    1  0.4   0:01.19 metacity                                                                                               
16172 jeff      20   0 36544 2068 1756 S    1  0.1   0:00.88 gvfsd                                                                                                  
16182 jeff      20   0  242m  22m  11m S    0  0.6   0:01.71 gnome-panel                                                                                            
16189 jeff      20   0  206m  15m 9.9m S    0  0.4   0:01.30 nm-applet                                                                                              
16221 jeff      20   0  171m 9640 6640 S    0  0.3   0:01.39 notification-da                                                                                        
17071 jeff      20   0  167m 2916 1452 S    0  0.1   0:01.29 gnome-screensav                                                                                        
    1 root      20   0  3804  608  520 S    0  0.0   0:00.46 init                                                                                                   
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd                                                                                               
    3 root      RT  -5     0    0    0 S    0  0.0   0:02.69 migration/0                                                                                            
    4 root      15  -5     0    0    0 S    0  0.0   0:02.36 ksoftirqd/0                                                                                            
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0                                                                                             
    6 root      RT  -5     0    0    0 S    0  0.0   0:02.90 migration/1                                                                                            
    7 root      15  -5     0    0    0 S    0  0.0   0:00.18 ksoftirqd/1                                                                                            
    8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1                                                                                             
    9 root      RT  -5     0    0    0 S    0  0.0   0:03.54 migration/2                                                                                            
   10 root      15  -5     0    0    0 S    0  0.0   0:00.19 ksoftirqd/2                                                                                            
   11 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/2                                                                                             
   12 root      RT  -5     0    0    0 S    0  0.0   0:03.68 migration/3                                                                                            
   13 root      15  -5     0    0    0 S    0  0.0   0:00.67 ksoftirqd/3                                                                                            
   14 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/3                                                                                             
   15 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/0                                                                                               
   16 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/1                                                                                               
   17 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/2                                                                                               
   18 root      15  -5     0    0    0 S    0  0.0   0:01.40 events/3                                                                                               
   19 root      15  -5     0    0    0 S    0  0.0   0:00.00 work_on_cpu/0                                                                                          
   20 root      15  -5     0    0    0 S    0  0.0   0:00.00 work_on_cpu/1                                                                                          
   21 root      15  -5     0    0    0 S    0  0.0   0:00.00 work_on_cpu/2                                                                                          
   22 root      15  -5     0    0    0 S    0  0.0   0:00.00 work_on_cpu/3                                                                                          
   23 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper                                                                                                
   24 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0                                                                                              
   25 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1                                                                                              
   26 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/2                                                                                              
   27 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/3                                                                                              
   28 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid                                                                                                 
   29 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify                                                                                           
   30 root      15  -5     0    0    0 S    0  0.0   0:00.00 kseriod                                                                                                
   31 root      20   0     0    0    0 S    0  0.0   0:00.00 pdflush                                                                                                
   32 root      20   0     0    0    0 S    0  0.0   0:01.27 pdflush

Ubuntu top:

jeff@amd4-server:~$ sudo top
[sudo] password for jeff: 

top - 10:13:51 up 3 min,  2 users,  load average: 0.14, 0.28, 0.14
Tasks: 153 total,   2 running, 151 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.2%us,  0.5%sy,  0.0%ni, 98.2%id,  0.0%wa,  0.1%hi,  0.0%si,  0.0%st
Mem:   3738184k total,   570460k used,  3167724k free,    18392k buffers
Swap:  2048216k total,        0k used,  2048216k free,   209044k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                               
 3005 root      20   0  462m  59m  20m S    3  1.6   0:05.33 Xorg                                                                                  
 3623 jeff      20   0  338m  41m  11m S    2  1.1   0:09.43 gdesklets-daemo                                                                       
 3654 jeff      20   0  214m  18m  11m S    1  0.5   0:01.12 gnome-terminal                                                                        
 3539 jeff      20   0  123m 5528 4212 S    0  0.1   0:00.47 at-spi-registry                                                                       
 3552 jeff      20   0  408m  29m  15m S    0  0.8   0:01.25 gnome-panel                                                                           
 3673 root      20   0 19116 1356  988 R    0  0.0   0:00.35 top                                                                                   
    1 root      20   0  4104  916  628 S    0  0.0   0:00.92 init                                                                                  
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd                                                                              
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/0                                                                           
    4 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0                                                                           
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0                                                                            
    6 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1                                                                           
    7 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1                                                                           
    8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1                                                                            
    9 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/2                                                                           
   10 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksoftirqd/2                                                                           
   11 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/2                                                                            
   12 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/3                                                                           
   13 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksoftirqd/3                                                                           
   14 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/3                                                                            
   15 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/0                                                                              
   16 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/1                                                                              
   17 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/2                                                                              
   18 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/3                                                                              
   19 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper                                                                               
   20 root      RT  -5     0    0    0 S    0  0.0   0:00.00 kstop/0                                                                               
   21 root      RT  -5     0    0    0 S    0  0.0   0:00.00 kstop/1                                                                               
   22 root      RT  -5     0    0    0 S    0  0.0   0:00.00 kstop/2                                                                               
   23 root      RT  -5     0    0    0 S    0  0.0   0:00.00 kstop/3                                                                               
   24 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/0                                                                         
   25 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/1                                                                         
   26 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/2                                                                         
   27 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/3                                                                         
   28 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0                                                                             
   29 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1                                                                             
   30 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/2                                                                             
   31 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/3                                                                             
   32 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid                                                                                
   33 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify                                                                          
   34 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue                                                                                
   35 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/0                                                                                 
   36 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/1                                                                                
   37 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/2

How would I further diagnose and work on a solution.....or is this it even worth chasing down.
Having a somewhat high end CPU (AMD quad core 2.5ghz) on this computer compared to my others, may make this more tolerable.
I seldom use high CPU requiring apps, although I do want to get Sun xVM Vbox set up on Arch eventually. 
I see from the top command output that it's not just one app using CUP, but spread out over several .......

Are the BSD-style init scripts distros, Arch, Slackware, etc any more or less CPU intensive than a Debian based distro? I wouldn't think so...

Last edited by jeff story (2009-06-07 20:54:51)


Check out my website for info on the Arch Linux Installer

Offline

#2 2009-06-05 20:53:37

wakkadojo
Member
Registered: 2009-05-31
Posts: 50

Re: High CPU Usage.....25% Higher than Ubuntu/Debian [SOLVED]

Have you tried using the fglrx driver in Arch or using the Radeon HD driver in Ubuntu?

Offline

#3 2009-06-06 23:25:19

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: High CPU Usage.....25% Higher than Ubuntu/Debian [SOLVED]

Have you tried using the fglrx driver in Arch or using the Radeon HD driver in Ubuntu?

After thinking about this more.......if it was the graphics driver, wouldn't it mostly show up as an increase on Xorg?


Arch

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                
16072 root      20   0  385m  59m 8104 R    6  1.6   0:26.42 Xorg

Ubuntu

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                               
 3005 root      20   0  462m  59m  20m S    3  1.6   0:05.33 Xorg

If I add up the top users in Arch, it's 23%

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                
16072 root      20   0  385m  59m 8104 R    6  1.6   0:26.42 Xorg                                                                                                   
16103 jeff      20   0  164m 7816 6052 S    4  0.2   0:17.78 gnome-session                                                                                          
16153 jeff      20   0  8800 1320  744 S    3  0.0   0:12.15 dbus-daemon                                                                                            
16158 jeff      20   0 40596 6432 2192 S    3  0.2   0:12.55 gconfd-2                                                                                               
16234 jeff      20   0  298m  40m  10m S    2  1.1   0:12.70 python                                                                                                 
16165 jeff      20   0  223m  11m 7968 S    1  0.3   0:05.06 gnome-settings-                                                                                        
16218 jeff      20   0  148m 9124 7244 S    1  0.2   0:03.12 gnome-power-man                                                                                        
18960 jeff      20   0  202m  16m  10m S    1  0.4   0:02.17 gnome-terminal                                                                                         
16170 jeff      20   0  176m  14m 9660 S    1  0.4   0:01.19 metacity                                                                                               
16172 jeff      20   0 36544 2068 1756 S    1  0.1   0:00.88 gvfsd

The Xorg is only 3% higher than ubuntu. I'm thinking it's the other 17% that are below Xorg in the code.  Ubuntu only has 3% there.

Is my logic reasonable here? Anyone knowing otherwise please let me know.

I found searching about this, that in the past, Ubuntu had a kernel bug that caused high idle CPU usage, and a kernel fix corrected the problem.


Check out my website for info on the Arch Linux Installer

Offline

#4 2009-06-07 20:53:17

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: High CPU Usage.....25% Higher than Ubuntu/Debian [SOLVED]

U P D A T E

Last night, I fell asleep (or was that drank too many beers) while trying to solve an unrelated to this thread problem...monitor signal shutting off.
I remember deleting packages that had anything to do with power management, and got a bit carried away!!!
I woke up to a non functioning Gnome desktop before going to bed.

So this morning, I really wasn't too worried, I'd just use my new Linux skills I've learned from installing and running Arch.
Firefox was still up and running in several windows...Arch Forums, hal, pm-utils, nautilus-power-management.....

I rebooted into the root shell, pacman -Sy, pacman -S (a bunch of packages). Started with hal, pm-utils, nautilus.....
and ended up reloading xorg, xf86-video-radeonhd, gnome, and whatever else I was informed was "hosed" when I tried
to load a package or reboot.

After about an hour, I'm back on my fav new distro, Arch typing this now.

Only difference is my CPU usage is lazily bouncing the guage between 0 and 2% !!!

So to recap what fixed the CPU issue....this isn't something I'd recommend the inexperienced even try, but it had to be the beer.

[jeff@Arch2009p2 ~]$ beer --X12 bushlight.0.0.1
bash:must be root user
[jeff@Arch2009p2 ~]$ su
Password: 
[root@Arch2009p2 jeff]# beer --X12 bushlight.0.0.1
bushlight:where 
bushlight:bottles or cans 
[jeff@Arch2009p2 ~]$ ~./cans 
bushlight:repairing high idle cpu usage

Last edited by jeff story (2009-06-07 21:43:27)


Check out my website for info on the Arch Linux Installer

Offline

#5 2009-06-08 06:39:31

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: High CPU Usage.....25% Higher than Ubuntu/Debian [SOLVED]

It's a commonly known fact that you have to match the Arch developers drink per drink in order to properly comprehend Arch Linux. It doesn't take people long to figure this out...

Offline

Board footer

Powered by FluxBB