Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › high CPU usage in Ubuntu
New Posts  All Forums:Forum Nav:

high CPU usage in Ubuntu

post #1 of 16
Thread Starter 
Hey all,

i've been going crazy over my Ubuntu lately...
sometimes it just hangs for 30 seconds, and other times it just slows down really bad.
just now it got really laggy again, when i opened my system-monitor i took a look at the usage, and it appears to be pretty busy...
even though i only have Firefox open with 2 tabs, and qBittorrent
so no really heavy programs running...
but still i have some pretty high spikes...up to around 40% while just browsing OCN
is there anything i can do about this?
i've attached a screenshot so you can see what i mean
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
post #2 of 16
Open up a terminal and type

Code:
top
and look for what is consuming your CPU, and we'll see what the culprit is.
Deimos
(13 items)
 
Pluto
(18 items)
 
 
CPUMotherboardGraphicsRAM
AMD 1090T Biostar TA890FXE Nvidia GTX 470 Corsair Vengence 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 MZ-7PC128D/AM Western Digital Black Western Digital Green Western Digital Blue 
CoolingOSOSMonitor
Dtek v2 Water Windows 7 Pro Fedora 16 LG4250 42" LCD TV 
KeyboardPowerCaseMouse
Microsoft Ergo Silverstone ST-1000P Cooler Master Cosmos 1000 Logitech G500 
Mouse PadAudio
X-Trac Ripper Asus D1 
  hide details  
Reply
Deimos
(13 items)
 
Pluto
(18 items)
 
 
CPUMotherboardGraphicsRAM
AMD 1090T Biostar TA890FXE Nvidia GTX 470 Corsair Vengence 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 MZ-7PC128D/AM Western Digital Black Western Digital Green Western Digital Blue 
CoolingOSOSMonitor
Dtek v2 Water Windows 7 Pro Fedora 16 LG4250 42" LCD TV 
KeyboardPowerCaseMouse
Microsoft Ergo Silverstone ST-1000P Cooler Master Cosmos 1000 Logitech G500 
Mouse PadAudio
X-Trac Ripper Asus D1 
  hide details  
Reply
post #3 of 16
Quote:
Originally Posted by Psycho666 View Post
Hey all,

i've been going crazy over my Ubuntu lately...
sometimes it just hangs for 30 seconds, and other times it just slows down really bad.
just now it got really laggy again, when i opened my system-monitor i took a look at the usage, and it appears to be pretty busy...
even though i only have Firefox open with 2 tabs, and qBittorrent
so no really heavy programs running...
but still i have some pretty high spikes...up to around 40% while just browsing OCN
is there anything i can do about this?
i've attached a screenshot so you can see what i mean
how are you using 40% of your Six core just browsing the web?

im using Ubuntu and i have about 12 tabs open and playing music on a C2D laptop and it's only using 12%
    
CPUMotherboardGraphicsRAM
|i7 2600K| |EVGA P67 SLI| |N560GTX-Ti Hawk| Waiting on Sandy Bridge :) 
Hard DriveOSMonitorPower
Waiting on Sandy Bridge :) |Windows 7 Ulitmate 64-Bit| |Hanns-G HZ281HPB 1920x1200| |Silverstone Strider Plus 850W| 
Case
|SilverStone RV03| ETA: 04/05/11 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
|i7 2600K| |EVGA P67 SLI| |N560GTX-Ti Hawk| Waiting on Sandy Bridge :) 
Hard DriveOSMonitorPower
Waiting on Sandy Bridge :) |Windows 7 Ulitmate 64-Bit| |Hanns-G HZ281HPB 1920x1200| |Silverstone Strider Plus 850W| 
Case
|SilverStone RV03| ETA: 04/05/11 
  hide details  
Reply
post #4 of 16
Thread Starter 
Quote:
Originally Posted by esocid View Post
Open up a terminal and type

Code:
top
and look for what is consuming your CPU, and we'll see what the culprit is.
Xorg, Firefox, python, compiz...those four are at the top, keep switching places.

Quote:
Originally Posted by BKsMassive View Post
how are you using 40% of your Six core just browsing the web?

im using Ubuntu and i have about 12 tabs open and playing music on a C2D laptop and it's only using 12%
i know...that's why i'm asking help
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
post #5 of 16
Why do you have a 9.3gb swap?
    
CPUMotherboardGraphicsRAM
Q9550 Gigabyte EP45-UD3P EVGA GTX 465 4x2GB G.Skill 1066 
Hard DriveOSMonitorPower
750GB WD Caviar Black Windows 7 ASUS VW224U Dual Screens Corsair 750w HX 
Case
CM Storm Sniper Black 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Q9550 Gigabyte EP45-UD3P EVGA GTX 465 4x2GB G.Skill 1066 
Hard DriveOSMonitorPower
750GB WD Caviar Black Windows 7 ASUS VW224U Dual Screens Corsair 750w HX 
Case
CM Storm Sniper Black 
  hide details  
Reply
post #6 of 16
Thread Starter 
well...why not?
i don't know why i need it, but ubuntu said i needed it.
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
post #7 of 16
Quote:
Originally Posted by Psycho666 View Post
Xorg, Firefox, python, compiz...those four are at the top, keep switching places.



i know...that's why i'm asking help
What percentages are they at?

12% seems high too. I didn't think FF and audio playback were that CPU intensive. Surely the desktop alone can't add too much.. Do you have a bunch of flash playing?
post #8 of 16
Thread Starter 
Quote:
Originally Posted by evermooingcow View Post
What percentages are they at?

12% seems high too. I didn't think FF and audio playback were that CPU intensive. Surely the desktop alone can't add too much.. Do you have a bunch of flash playing?
mostly around 2% but i've seen firefox jump to 40% when i opened it. (closed it before)
highest i've seen on Xorg is 13%
python and nautilus haven't been above 10%

the open sites were OCN and Xtremesystems...so no heavy flash or anything
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
Darkness
(20 items)
 
Overkill
(13 items)
 
Project X
(13 items)
 
CPUMotherboardGraphicsGraphics
I5 4690K Asus Sabertooth Z97 Mark 1 USB3.1 MSI HD5870 Twin Frozr III MSI HD5870 Twin Frozr III 
RAMHard DriveHard DriveHard Drive
16 Gb G-Skill Ripjaws 2133Mhz Samsung SSD830 Samsung Spinpoint F3  Samsung SSD840 
CoolingOSMonitorMonitor
Heatkiller 3.0 Windows 10 Pro Acer P241W Acer P246H 
KeyboardPowerCaseMouse
Logitech G15 v2 Be Quiet Dark Power Pro 1200w Silverstone TJ-07BW Roccat Kone XTD 
Mouse PadAudioOtherOther
Roccat Raivo Asus D2X 480mm Swiftech radiator Liang Li D5 Vario pump 
CPUMotherboardGraphicsRAM
Intel E6750 Asus Maximus II Formula HD 6350 4Gb Mushkin Enhanced 1002Mhz 
Hard DriveCoolingOSMonitor
2x WD Caviar Black 500Gb in Raid-0 OCZ Vendetta Windows 8 pro Samsung 40" lcd tv 
KeyboardPowerCaseMouse
Galaxy S3 Thermaltake Toughpower 750w MS-Tech 300 Galaxy S3 
Audio
Through AMD HD6350 
CPUMotherboardGraphicsRAM
Intel D525 Foxconn D52s Intel GMA3150 2Gb Corsair XMS2 800Mhz 
Hard DriveOSPowerCase
Seagate 160Gb SataII Windows 8 Developer Preview Chieftec 350w Xbox360 case 
  hide details  
Reply
post #9 of 16
Your swap is very large. You don't really need more than your RAM, and 4GB is plenty, but if you have the space it won't hurt anything.

But I guess it might be something in Xorg and compiz consuming resources. What nvidia driver are you using?
Deimos
(13 items)
 
Pluto
(18 items)
 
 
CPUMotherboardGraphicsRAM
AMD 1090T Biostar TA890FXE Nvidia GTX 470 Corsair Vengence 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 MZ-7PC128D/AM Western Digital Black Western Digital Green Western Digital Blue 
CoolingOSOSMonitor
Dtek v2 Water Windows 7 Pro Fedora 16 LG4250 42" LCD TV 
KeyboardPowerCaseMouse
Microsoft Ergo Silverstone ST-1000P Cooler Master Cosmos 1000 Logitech G500 
Mouse PadAudio
X-Trac Ripper Asus D1 
  hide details  
Reply
Deimos
(13 items)
 
Pluto
(18 items)
 
 
CPUMotherboardGraphicsRAM
AMD 1090T Biostar TA890FXE Nvidia GTX 470 Corsair Vengence 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 MZ-7PC128D/AM Western Digital Black Western Digital Green Western Digital Blue 
CoolingOSOSMonitor
Dtek v2 Water Windows 7 Pro Fedora 16 LG4250 42" LCD TV 
KeyboardPowerCaseMouse
Microsoft Ergo Silverstone ST-1000P Cooler Master Cosmos 1000 Logitech G500 
Mouse PadAudio
X-Trac Ripper Asus D1 
  hide details  
Reply
post #10 of 16
The issue lies with compiz. What effects do you have enabled?

Install compizconfig-settings-manager and then go to system>preferences>Compiz Config Settings Manager.

I uncheck a whole bunch of them that I don't use. When I'm not using it (moving windows, rotating the cube, etc) it sits at 0.00 CPU usage and sometimes jumps up to .25% Even when I do something major like rotate the cube, my Compiz usage only jumps to 10% of CPU usage initially but then calms down to anywhere between 2 and 5 percent.
    
CPUMotherboardGraphicsRAM
Q9550 Gigabyte EP45-UD3P EVGA GTX 465 4x2GB G.Skill 1066 
Hard DriveOSMonitorPower
750GB WD Caviar Black Windows 7 ASUS VW224U Dual Screens Corsair 750w HX 
Case
CM Storm Sniper Black 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Q9550 Gigabyte EP45-UD3P EVGA GTX 465 4x2GB G.Skill 1066 
Hard DriveOSMonitorPower
750GB WD Caviar Black Windows 7 ASUS VW224U Dual Screens Corsair 750w HX 
Case
CM Storm Sniper Black 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › high CPU usage in Ubuntu