Red Hat Bugzilla – Bug 229146
Firefox causes X to uses 50%+ CPU while waiting for page to load
Last modified: 2018-04-11 10:51:54 EDT
Description of problem:
I've noticed that when firefox waits for a page to load the X server often takes
50%+ CPU. After trying a lot of combinations I think i've finally narrowed this
down to a problem with the tabbed window support.
Version-Release number of selected component (if applicable):
also occurs with mozilla.org ff-188.8.131.52 i686 linux download
Every time i'm waiting for a page to load with 2+ tabs open.
Steps to Reproduce:
1. Launch firefox -ProfileManager
2. create new profile with default options and launch.
3. try accessing a page which does not exist. For me http://10.0.0.1 is a good
one. This causes the browser to try loading the page for ~30 seconds until timeout.
4. While firefox is still trying to load the page, open an xterm run top. Look
at X cpu usage.
5. After a few seconds of activity X will show ~1% CPU usage (i.e. everything
looks normal now).
6. Stop page load in firefox.
7. Go into preferences->tabs. Enable the "show tabs even when only one window
open" option so that the tab bar appears.
8. Try going to http://10.0.0.1 again.
9. Watch X CPU usage. For me X jumps to 50%+ and stays there for the 30+ seconds
that firefox tries to load the page
Having the tab bar open seems to cause firefox to hammer the X server while
loading new pages. At a guess, it could be the updates to do the nice
'Loading...' animation of the tabbed window title bar which cause the problem.
This is running FF on an AMD64 3000 so I don't expect the X server to need 50%+
CPU in order to tell me that FF is waiting for a page to load.
I'm using an NVidia FX5200 with the open source 'nv' driver.
I tried disabling pango with no effect.
The high X CPU still occurs even with firefox minimised so I don't think it is
due to the X driver code trying to repaint the screen.
I guess this is really an upstream issue since I see the same with the
mozilla.org 184.108.40.206 i686 binary release. Let me know if you want me to open a
bug at mozilla.org.
Yes, please, and let us know the number of the new bug (it would be nice of you
to search bugzilla.mozilla.org first to find out whether there isn't duplicate
bug of the same issue).
I see the same with the trunk mozilla 3.0a3pre. Did a quick search in bz.moz.org
for CPU and tabbed browsing and while there are lots of high firefox CPU bugs
reported none seem to be specific to X CPU and loading tabbed pages. Raised a
new bug https://bugzilla.mozilla.org/show_bug.cgi?id=372306
OK, so I am closing this as an upstream bug. Thanks for the info.