All,
For some time i am experiencing the high cpu rate on Firefox (2.0.0.14, Fedora 8) with some sites (sites with flash are always high on cpu and crash sometimes). I have done the following to find out what is going on when firefox is high on cpu.
# ps -p 27727 -mlfFL F S UID PID PPID LWP C NLWP PRI NI ADDR SZ WCHAN RSS PSR STIME TTY TIME CMD 0 - srikanth 27727 27722 - 5 13 - - - 99974 - 132048 - 15:43 ? 00:19:31 /usr/lib/firefox-2.0.0.14/firefox-bin 0 S srikanth - - 27727 4 - 80 0 - - - - 1 15:43 - 00:14:41 - 1 S srikanth - - 27728 0 - 80 0 - - - - 0 15:43 - 00:00:00 - 1 S srikanth - - 27729 0 - 80 0 - - - - 0 15:43 - 00:00:08 - 1 S srikanth - - 27731 0 - 80 0 - - - - 0 15:43 - 00:00:00 - 1 S srikanth - - 27732 0 - 80 0 - - - - 0 15:43 - 00:00:00 - 1 S srikanth - - 27733 0 - 80 0 - - - - 0 15:43 - 00:00:00 - 1 S srikanth - - 27827 0 - 80 0 - - - - 0 15:43 - 00:00:00 - 1 S srikanth - - 5540 0 - 80 0 - - - - 0 19:40 - 00:00:00 - 1 S srikanth - - 15572 68 - 80 0 - - - - 1 21:37 - 00:04:02 - 1 S srikanth - - 15573 0 - 80 0 - - - - 0 21:37 - 00:00:00 - 1 S srikanth - - 15574 0 - 80 0 - - - - 0 21:37 - 00:00:00 - 1 S srikanth - - 15702 0 - 80 0 - - - - 1 21:39 - 00:00:00 - 1 S srikanth - - 15775 0 - 80 0 - - - - 1 21:41 - 00:00:00 -
As per the above output the thread with LWP 15572 has the following from pstack output.
Thread 7 (Thread 164613008 (LWP 15572)): #0 0x00110402 in __kernel_vsyscall () #1 0x00be95d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0x08196ff8 in __cxa_pure_virtual () #3 0x08291438 in __cxa_pure_virtual () #4 0x0819734d in __cxa_pure_virtual () #5 0x00be550b in start_thread () from /lib/libpthread.so.0 #6 0x00b26b2e in clone () from /lib/libc.so.6
It appears that "pthread_cond_wait@@GLIBC_2.3.2 ()" could be the cause for high percentage of CPU but don't know how to go further with this.
Any help would be appreciated.
Thanks
Srikanth
On Friday 02 May 2008 12:47:55 am Srikanth Konjarla wrote:
For some time i am experiencing the high cpu rate on Firefox (2.0.0.14, Fedora 8) with some sites (sites with flash are always high on cpu and crash sometimes).
I have exactly the same problem. If I go to YouTube and watch a video I'll see Firefox taking about 35% of my cpu...and my load-average goes up to 1.0 (and that on my system is too much). I"m currently running Firefox 2.0.0.14 with the latest flash. The other day I tried Firefox 3 (newest beta) but after a while it started behaving the same way. Initially I thought it was better but then I realized it was about the same (with this flash-cpu issue).
I even deleted my complete profile (~/.mozilla) and created a new one from scratch (I had to install all my add-ons, themes, bookmarks...) but the problem still exists...so now I know it's not related to my profile.
The add-on I'm running is Adblock-Plus. I know there's another one to block flash content but I don't want to do that (what modern site doesn't have flash?)...
If you go to the Adobe Penguin.SWF Blog and check the comments for the latest release of the plugin for Linux:
http://blogs.adobe.com/penguin.swf/2007/12/flash_player_9_update_3_final.htm...
...you'll see there are many people upset with this performance issue.
So...I just would like to know if we have to live with this (while there's a newer version of the flash plugin) or is there really a workaround for this?
On 06May2008 20:56, Jorge F?bregas jorge.fabregas@gmail.com wrote: | On Friday 02 May 2008 12:47:55 am Srikanth Konjarla wrote: | > For some time i am experiencing the high cpu rate on Firefox (2.0.0.14, | > Fedora 8) with some sites (sites with flash are always high on cpu and | > crash sometimes). | | I have exactly the same problem. If I go to YouTube and watch a video I'll see | Firefox taking about 35% of my cpu...and my load-average goes up to 1.0 (and | that on my system is too much). I"m currently running Firefox 2.0.0.14 with | the latest flash. The other day I tried Firefox 3 (newest beta) but after a | while it started behaving the same way. Initially I thought it was better | but then I realized it was about the same (with this flash-cpu issue).
That's because Flash is a complete pig. Since th same plug applies to both browsers, of course they both eat your CPU.
| The add-on I'm running is Adblock-Plus. I know there's another one to block | flash content but I don't want to do that (what modern site doesn't have | flash?)...
I use NoScript (firefox plugin) and adzapper (squid proxy plugin). I have adblock (firefox plugin) installed, but find it rarely used in my setup.
With noscript you can easily whitelist the (few) sites for which flash is useful and it makes the browser much better behaved. And flash is a complete PITA - if a site won't work without it I will often just backpedal away from the site and try never to return.
A lot of ads are flash - gah!
| If you go to the Adobe Penguin.SWF Blog and check the comments for the latest | release of the plugin for Linux: | http://blogs.adobe.com/penguin.swf/2007/12/flash_player_9_update_3_final.htm... | ...you'll see there are many people upset with this performance issue.
It would be nice if flash didn't run on pages not exposed (eg the "other" tabs, and iconified windows).
| So...I just would like to know if we have to live with this (while there's a | newer version of the flash plugin) or is there really a workaround for this?
You're screwed. Eschew flash where possible. You'll be happier.
Cameron Simpson wrote:
| So...I just would like to know if we have to live with this (while there's a | newer version of the flash plugin) or is there really a workaround for this?
You're screwed. Eschew flash where possible. You'll be happier.
Well, Adobe is supposedly opening up Flash - so it will probably be reimplemented. Problem is, it'll more than likely take quite a while...