Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Arbitrary 100% Processor Usage

  1. #1
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Arbitrary 100% Processor Usage

    Hello,

    I'm having an issue where both of my Ubuntu machines seem to arbitrarily eat up all of my processor power when I'm not doing anything really.

    I've got 2 laptops, both with Ubuntu. One is 10.10, the other is 11.10. Both have fluxbox, transset, and xcompmgr installed. Whey they're working properly, the processor usually sits around 10 - 15 percent, more if I've got lots and lots of tabs open in Opera or Firefox or something. For some reason though, the processor shoots up to 100% sometimes, and stays that way for hours. Nothing that I do provokes this. I've attatched 2 screenshots of conky, one from each machine. At the time of writing, the 10.10 machine (the one I'm writing on) is behaving normally, as you can tell from the first screenshot. It's using much less processor power than the other one, even though it's running Opera and Fatrat. The other machine, having just been booted up, has nothing open aside from shutter (which I used to get the conky screenshot, and which should absolutely not eat up 100% of processor power), and yet the CPU load is consistently between 95% and 100%. In my experience, this persists until it arbitrarily stops. Shutting down and rebooting don't remedy it, and killing the processes reported as using the most CPU doesn't remedy it either.

    This is a screenshot of the 10.10 machine running properly.


    This is a screenshot of the 11.10 machine consuming nearly 100% of processor power.


    I hope somebody can help shed some light on this problem, it's very frustrating. Below you will find the output of top from the machine that is not working properly.

    Code:
    top - 16:41:49 up 42 min,  1 user,  load average: 4.27, 3.52, 2.96
    Tasks: 130 total,   3 running, 127 sleeping,   0 stopped,   0 zombie
    Cpu(s): 33.4%us, 22.7%sy, 42.6%ni,  0.7%id,  0.0%wa,  0.0%hi,  0.4%si,  0.0%st
    Mem:   2050448k total,  1016272k used,  1034176k free,    71492k buffers
    Swap:  2928636k total,        0k used,  2928636k free,   527688k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                           
     2300 root      39  19  188m 173m 6348 R   86  8.7  25:08.20 update-apt-xapi                                                                                   
     3072 bonez     20   0 75700 5136 3840 S   39  0.3   7:01.47 conky                                                                                             
     1379 root      20   0 67848  50m  10m R   38  2.5  14:05.14 Xorg                                                                                              
     3552 bonez     20   0  154m  14m  10m S   22  0.7   0:06.75 gnome-terminal                                                                                    
     3634 bonez     20   0  2664 1108  832 R    5  0.1   0:00.45 top                                                                                               
      442 messageb  20   0  4100 1932 1140 S    3  0.1   1:21.05 dbus-daemon                                                                                       
     1276 root      20   0 24448 7040 1916 S    2  0.3   0:25.94 python                                                                                            
     2844 root      20   0     0    0    0 S    2  0.0   0:17.28 kworker/1:0                                                                                       
     3556 root      20   0     0    0    0 S    2  0.0   0:00.60 kworker/0:3                                                                                       
     1359 root      20   0 14696 7496 3580 S    1  0.4   0:11.79 python                                                                                            
     1908 bonez     20   0 11912 5300 4180 S    0  0.3   0:28.00 fluxbox                                                                                           
     1952 bonez     20   0  264m  67m  25m S    0  3.4   3:09.55 cairo-dock                                                                                        
     1957 bonez     20   0  3680 1096  856 S    0  0.1   0:17.27 xcompmgr                                                                                          
     3296 root      20   0     0    0    0 S    0  0.0   0:03.28 kworker/0:0                                                                                       
        1 root      20   0  3320 1888 1260 S    0  0.1   0:09.98 init                                                                                              
        2 root      20   0     0    0    0 S    0  0.0   0:00.02 kthreadd                                                                                          
        3 root      20   0     0    0    0 S    0  0.0   0:00.54 ksoftirqd/0                                                                                       
        5 root      20   0     0    0    0 S    0  0.0   0:04.81 kworker/u:0                                                                                       
        6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0                                                                                       
        7 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1                                                                                       
        9 root      20   0     0    0    0 S    0  0.0   0:00.41 ksoftirqd/1                                                                                       
       11 root       0 -20     0    0    0 S    0  0.0   0:00.00 cpuset                                                                                            
       12 root       0 -20     0    0    0 S    0  0.0   0:00.00 khelper                                                                                           
       13 root       0 -20     0    0    0 S    0  0.0   0:00.00 netns                                                                                             
       15 root      20   0     0    0    0 S    0  0.0   0:00.05 sync_supers                                                                                       
       16 root      20   0     0    0    0 S    0  0.0   0:00.00 bdi-default                                                                                       
       17 root       0 -20     0    0    0 S    0  0.0   0:00.00 kintegrityd                                                                                       
       18 root       0 -20     0    0    0 S    0  0.0   0:00.00 kblockd                                                                                           
       19 root       0 -20     0    0    0 S    0  0.0   0:00.00 ata_sff                                                                                           
       20 root      20   0     0    0    0 S    0  0.0   0:00.13 khubd                                                                                             
       21 root       0 -20     0    0    0 S    0  0.0   0:00.00 md                                                                                                
       23 root      20   0     0    0    0 S    0  0.0   0:00.00 khungtaskd                                                                                        
       24 root      20   0     0    0    0 S    0  0.0   0:00.00 kswapd0                                                                                           
       25 root      25   5     0    0    0 S    0  0.0   0:00.00 ksmd                                                                                              
       26 root      39  19     0    0    0 S    0  0.0   0:00.00 khugepaged                                                                                        
       27 root      20   0     0    0    0 S    0  0.0   0:00.01 fsnotify_mark                                                                                     
       28 root      20   0     0    0    0 S    0  0.0   0:00.00 ecryptfs-kthrea                                                                                   
       29 root       0 -20     0    0    0 S    0  0.0   0:00.00 crypto                                                                                            
       37 root       0 -20     0    0    0 S    0  0.0   0:00.00 kthrotld                                                                                          
       47 root      20   0     0    0    0 S    0  0.0   0:00.01 scsi_eh_0

  2. #2
    Join Date
    Aug 2006
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Arbitrary 100% Processor Usage

    update-apt-xapi is known for hight CPU usage - lots of bugs reports on launchpad. It usually runs soon after start up, and takes a few minutes to complete. Either let it be, or remove the apt-xapian-index package entirely.

    According to the top output, conky is another gross offender (might also be responsible for Xorg CPU usage), so you might want to remove it either.

  3. #3
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Re: Arbitrary 100% Processor Usage

    Thanks for the reply.

    I'll try removing apt-xapian-index and see if that helps.

    Conky shouldn't be using that much CPU, and neither should Xorg. When things are working normally conky uses between 5% and 8%, and Xorg usually around 10%. It's only when the CPU is maxed out that they consume what they are in the screenshot.

  4. #4
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Re: Arbitrary 100% Processor Usage

    Well I uninstalled apt-xapian-index, rebooted, and nothing changed. The processor was immediately maxed at 100%. I waited from about the time when I made the first reply until just a few minutes ago and the processor never went back to normal. I booted back into Windows 7 because I wanted to listen to music and that was impossible in the state that that computer was in, so I am still in need of a fix. If anybody can help me I'd really appreciate it, I can boot back into Ubuntu at any time if somebody wants me to get the output of any command or to try to do something to remedy this. I really hope this can be resolved because I really don't like using Windows and it's honestly a show-stopping issue.

  5. #5
    Join Date
    Aug 2006
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Arbitrary 100% Processor Usage

    Well, you should definitely be posting the output of 'top' every time you talk about high CPU usage. Simply mentioning that it's high is not too usefull.

  6. #6
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Re: Arbitrary 100% Processor Usage

    Will post new top output tomorrow evening, ~10 PM EST or earlier.

  7. #7
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: Arbitrary 100% Processor Usage

    the question I have is why is conky taking 39% of your CPU?

  8. #8
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Re: Arbitrary 100% Processor Usage

    Good question, and I don't really know because it usually only takes something like ~5%.

    All I've got going on in conky is the processes being monitored for cpu usage and memory usage, hard drive input/output graph, cpu load graph, and network down/up graphs. When things are working properly this barely makes a dent in total CPU usage, but when it starts to go all crazy like this it seems like any application opoen will use way more CPU than it ever has needed when things work normally.

    For example, look at this top output I just took a few minutes ago:

    Code:
    top - 10:58:16 up 1 day, 15:23,  2 users,  load average: 3.31, 3.12, 4.29
    Tasks: 170 total,   3 running, 167 sleeping,   0 stopped,   0 zombie
    Cpu(s): 76.2%us, 22.8%sy,  0.0%ni,  0.9%id,  0.0%wa,  0.0%hi,  0.1%si,  0.0%st
    Mem:   2049060k total,  1918236k used,   130824k free,    32104k buffers
    Swap:  3227644k total,   212680k used,  3014964k free,   511736k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                         
     7121 bonez     20   0 1278m 965m  14m R   78 48.2 383:46.09 opera                                                                                                                                                                           
     1630 root      20   0  125m  74m  10m R   35  3.7 393:46.88 Xorg                                                                                                                                                                            
     2585 bonez     20   0 66928 1704 1284 S   28  0.1 202:42.50 conky                                                                                                                                                                           
    30197 bonez     20   0  165m  14m  10m S   18  0.7   0:51.65 gnome-terminal                                                                                                                                                                  
     1868 bonez     20   0 68512  11m 6788 S   14  0.6 171:27.64 compiz                                                                                                                                                                          
    26956 bonez     20   0 1156m  45m 4216 S   10  2.3  28:41.29 operapluginwrap                                                                                                                                                                 
    30221 bonez     20   0  2620 1160  844 R    5  0.1   0:56.70 top                                                                                                                                                                             
    27709 bonez     20   0 82144  19m 6380 S    4  1.0  27:35.70 vidalia                                                                                                                                                                         
     2644 bonez     20   0 23764 1496 1236 S    4  0.1  47:45.72 conky                                                                                                                                                                           
       10 root      20   0     0    0    0 S    1  0.0   1:11.51 events/1                                                                                                                                                                        
       64 root      20   0     0    0    0 S    1  0.0  10:48.46 kondemand/0                                                                                                                                                                     
       65 root      20   0     0    0    0 S    1  0.0  10:27.47 kondemand/1                                                                                                                                                                     
    26962 bonez     20   0 18800 3644 2620 S    1  0.2   1:59.19 operapluginwrap                                                                                                                                                                 
    26965 bonez     20   0 89444 3136 1312 S    1  0.2   0:58.95 GoogleTalkPlugi                                                                                                                                                                 
        9 root      20   0     0    0    0 S    0  0.0   0:09.34 events/0                                                                                                                                                                        
      384 root      20   0     0    0    0 S    0  0.0   0:09.87 flush-8:0                                                                                                                                                                       
     1870 bonez     20   0  3908  512  492 S    0  0.0   2:42.17 syndaemon                                                                                                                                                                       
     1888 root      20   0  5620  744  548 S    0  0.0   0:47.90 udisks-daemon                                                                                                                                                                   
    27713 bonez     20   0 38116  22m 5552 S    0  1.1   3:18.88 tor                                                                                                                                                                             
        1 root      20   0  2888 1380  992 S    0  0.1   0:00.99 init                                                                                                                                                                            
        2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                                                                                                                                                                        
        3 root      20   0     0    0    0 S    0  0.0   0:59.52 ksoftirqd/0                                                                                                                                                                     
        4 root      RT   0     0    0    0 S    0  0.0   0:02.45 migration/0                                                                                                                                                                     
        5 root      RT   0     0    0    0 S    0  0.0   0:00.22 watchdog/0                                                                                                                                                                      
        6 root      RT   0     0    0    0 S    0  0.0   0:03.48 migration/1                                                                                                                                                                     
        7 root      20   0     0    0    0 S    0  0.0   1:26.13 ksoftirqd/1                                                                                                                                                                     
        8 root      RT   0     0    0    0 S    0  0.0   0:00.21 watchdog/1                                                                                                                                                                      
       11 root      20   0     0    0    0 S    0  0.0   0:00.00 cpuset                                                                                                                                                                          
       12 root      20   0     0    0    0 S    0  0.0   0:00.00 khelper                                                                                                                                                                         
       13 root      20   0     0    0    0 S    0  0.0   0:00.00 netns                                                                                                                                                                           
       14 root      20   0     0    0    0 S    0  0.0   0:00.00 async/mgr                                                                                                                                                                       
       15 root      20   0     0    0    0 S    0  0.0   0:00.00 pm                                                                                                                                                                              
       17 root      20   0     0    0    0 S    0  0.0   0:01.26 sync_supers                                                                                                                                                                     
       18 root      20   0     0    0    0 S    0  0.0   0:01.71 bdi-default                                                                                                                                                                     
       19 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/0                                                                                                                                                                   
       20 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/1                                                                                                                                                                   
       21 root      20   0     0    0    0 S    0  0.0   0:22.37 kblockd/0                                                                                                                                                                       [39;49          (B 0     0    0    0 S    0  0.0   0:00.00 kintegrityd/0                                                                                                                                                                   
       21 root      20   0     0    0    0 S    0  0.0   0:22.37 kblockd/0                                                                                                                                                                       
       22 root      20   0     0    0    0 S    0  0.0   0:01.27 kblockd/1                                                                                                                                                                       
       23 root      20   0     0    0    0 S    0  0.0   0:00.04 kacpid                                                                                                                                                                          
       24 root      20   0     0    0    0 S    0  0.0   0:00.06 kacpi_notify                                                                                                                                                                    
       25 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpi_hotplug                                                                                                                                                                   
       26 root      20   0     0    0    0 S    0  0.0   0:00.00 ata_aux                                                                                                                                                                         
       27 root      20   0     0    0    0 S    0  0.0   0:05.06 ata_sff/0                                                                                                                                                                       
       28 root      20   0     0    0    0 S    0  0.0   0:00.60 ata_sff/1                                                                                                                                                                       
       28 root      20   0     0    0    0 S    0  0.0   0:00.60 ata_sff/1                                                                                                                                                                       
       29 root      20   0     0    0    0 S    0  0.0   0:00.03 khubd                                                                                                                                                                           
       30 root      20   0     0    0    0 S    0  0.0   0:00.01 kseriod                                                                                                                                                                         
       31 root      20   0     0    0    0 S    0  0.0   0:00.00 kmmcd                                                                                                                                                                           
       32 root      20   0     0    0    0 S    0  0.0   0:00.22 khungtaskd                                                                                                                                                                      
       33 root      20   0     0    0    0 S    0  0.0   0:29.05 kswapd0                                                                                                                                                                         
       34 root      25   5     0    0    0 S    0  0.0   0:00.00 ksmd
    As well as this conky screenshot, showing a totally ridiculous 22.98% CPU usage for gedit, 20.39% CPU usage for Xorg, and 18.45% CPU usage for conky:



    That is from the computer running 10.10. It was taken in the gnome 2.x desktop environment with only the default desktop effects turned on. I'm pretty sure it has nothing to do with compiz or the desktop effects because the same thing occurs when running fluxbox.

    I upgraded my 11.10 computer to 12.04 beta hoping that the upgrade might solve the problem, but it did not. Here is the output of top from that machine, along with a screenshot of conky which shows the CPU load steady at around ~50%. This was taken with no programs open (aside from shutter and gnome-terminal). The only thing that I see that's unusual is kworker, which I don't know what it is or why it's running (but it's only taking up a tiny bit of CPU compared to Xorg and conky).

    Code:
    Tasks: 123 total,   3 running, 120 sleeping,   0 stopped,   0 zombie
    Cpu(s): 69.3%us, 28.0%sy,  0.0%ni,  2.4%id,  0.0%wa,  0.0%hi,  0.3%si,  0.0%st
    Mem:   2049980k total,   831000k used,  1218980k free,   164984k buffers
    Swap:  2928636k total,        0k used,  2928636k free,   425788k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                           
     5919 bonez     20   0 51060  13m 9132 R   62  0.7   0:02.16 perl                                                              
     1308 root      20   0 71000  52m  11m R   42  2.6  38:37.66 Xorg                                                              
     3688 bonez     20   0 83824 6296 4768 S   30  0.3  48:01.77 conky                                                             
     5784 bonez     20   0  230m  15m  11m S   17  0.8   0:13.26 gnome-terminal                                                    
     5875 bonez     20   0  2840 1156  880 R    4  0.1   0:02.43 top                                                               
     3695 bonez     20   0  3928 1176  924 S    2  0.1   0:23.13 xcompmgr                                                          
     5727 root      20   0     0    0    0 S    2  0.0   0:01.79 kworker/1:1                                                       
     2415 root      20   0     0    0    0 S    1  0.0   1:17.52 kworker/0:1                                                       
     3640 bonez     20   0 11772 5212 4268 S    1  0.3   0:21.56 fluxbox                                                           
      560 messageb  20   0  3920 1732  844 S    1  0.1   1:25.69 dbus-daemon                                                       
     1276 root      20   0  3588  644  496 S    1  0.0   0:25.71 irqbalance                                                        
     1421 root      20   0 25888 7276 2160 S    1  0.4   1:41.27 wicd                                                              
     3685 bonez     20   0  3772 1076  628 S    1  0.1   0:01.08 dbus-daemon                                                       
     3690 bonez     20   0  284m  54m  24m S    1  2.7   0:48.81 cairo-dock                                                        
     3771 bonez     20   0  123m 6004 4876 S    1  0.3   0:01.11 indicator-sound                                                   
     5783 bonez     20   0  333m  42m  17m S    1  2.1   0:25.66 shutter                                                           
     1463 root      20   0 15260 7972 4072 S    0  0.4   0:44.57 wicd-monitor                                                      
     1498 root      20   0  6200 2764 1360 S    0  0.1   0:04.28 apache2                                                           
        1 root      20   0  3648 2104 1348 S    0  0.1   0:14.07 init                                                              
        2 root      20   0     0    0    0 S    0  0.0   0:00.03 kthreadd                                                          
        3 root      20   0     0    0    0 S    0  0.0   0:03.84 ksoftirqd/0                                                       
        5 root      20   0     0    0    0 S    0  0.0   0:12.89 kworker/u:0                                                       
        6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0                                                       
        7 root      RT   0     0    0    0 S    0  0.0   0:09.75 watchdog/0                                                        
        8 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1                                                       
       10 root      20   0     0    0    0 S    0  0.0   0:13.72 ksoftirqd/1                                                       
       12 root      RT   0     0    0    0 S    0  0.0   0:00.45 watchdog/1                                                        
       13 root       0 -20     0    0    0 S    0  0.0   0:00.00 cpuset                                                            
       14 root       0 -20     0    0    0 S    0  0.0   0:00.00 khelper                                                           
       15 root      20   0     0    0    0 S    0  0.0   0:00.04 kdevtmpfs                                                         
       16 root       0 -20     0    0    0 S    0  0.0   0:00.00 netns                                                             
       17 root      20   0     0    0    0 S    0  0.0   0:00.36 kworker/u:1                                                       
       18 root      20   0     0    0    0 S    0  0.0   0:00.30 sync_supers                                                       
       19 root      20   0     0    0    0 S    0  0.0   0:00.00 bdi-default                                                       
       20 root       0 -20     0    0    0 S    0  0.0   0:00.00 kintegrityd                                                       
       21 root       0 -20     0    0    0 S    0  0.0   0:00.00 kblockd                                                           
       22 root       0 -20     0    0    0 S    0  0.0   0:00.00 ata_sff                                                           
       23 root      20   0     0    0    0 S    0  0.0   0:00.10 khubd                                                             
       24 root       0 -20     0    0    0 S    0  0.0   0:00.00 md                                                                
       26 root      20   0     0    0    0 S    0  0.0   0:00.04 khungtaskd                                                        
       27 root      20   0     0    0    0 S    0  0.0   0:00.04 kswapd0
    And the screenshot:



    I really hope somebody can help me out with this, I've tried myself to figure it out for a number of days now and haven't been able to. Also right now it wouldn't be so bad if only one computer was doing it but currently both of them are, making it nearly impossible to even make this post in the first place (let alone get any other work done).

    Thank you in advance to anyone who can help.

  9. #9
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Re: Arbitrary 100% Processor Usage

    Update: this is also happening on 12.04 in Unity 2D.

  10. #10
    Join Date
    May 2007
    Beans
    100
    Distro
    Ubuntu

    Re: Arbitrary 100% Processor Usage

    2nd Update: Problem persists after logging out and back in again as well as powering down and then turning the computer back on again.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •