Ubuntu – High CPU usage while playing Flash and using Jupiter


Hi guys from what I see by Googling around it's a common problem but somehow all the threads I've seen end in "Oooo Flash is terrible" and the post dies there.

I'm experiencing a very high CPU usage 100% and more while watching any Flash videos.
What I'm running:

  • Latest Flash version available for 64bit in Ubuntu's repositories

  • Athlon X2-QL64 on a HP Compaq 615

    NOTE that I'm experiencing the same issue on a Celeron T3300 with Intel video card

What I tried:

  • Different browser (Firefox and Chromium behave the same)
  • Disabled the separate plugin-container process and made Flash run in firefox.exe (same behaviour)
  • Changed shell. Gnome3 and Unity behave the same
  • Flash ads blocker (prevents 100% loading just until I actually play the video so it really doesn't make a difference)
  • Open source Flash players. Gnash gives me a very low framerate and a super high CPU usage anyway. Lightspark is unable to play YouTube videos and insta-crashes
  • HTML5 video playback gives THE SAME super high load

If it can I noticed that xorg usage is low while playing (I saw posts where people seemed to have a very high xorg CPU load but it's not my case)

Any is really appreciated since I fell in love with Linux and can't stand to see Windows perform way better on the same machine

Turns out after hours that I'm half idiot half forced to do it.

Let me explain

I'm using jupiter to keep the temps under control and using it constantly in power save mode to save about 10°C.

If I use the "ondemand" governor the CPU usage goes down to about 50% while playing (CPU freq doubles in the case of my CPU)

If I set it to "maximum performance" it goes down to about 45% but my CPU goes to about 85C°

So basically the reason is that it's actually using 100% because it needs to and not for strange reasons but I can't afford to cook my battery just to see the CPU usage go down by 50% so I'll just keep it like it is since the playback looks fine even at constant full load. I just hope 12. 04 will run cooler

Best Answer

Change all the colordepths in my /etc/X11/xorg.conf to 24 bit. Both 32 and 16 bit had the problem, but 24 bit works.

I noticed a lot of errors about defaultdepth 32 which prompted me to change it.

Also, I'm using the nvidia binary driver and I added the following options at the same time, not sure if they helped or not:

Option "AddARGBGLXVisuals" "True" Option "DisableGLXRootClipping" "True"

Now my cpu is finally back to normal and compiz is much more responsive than it ever was before!

source: http://ubuntuforums.org/showthread.php?t=1873768

Related Question