Comparing Memory Usage of Firefox 2 vs 3 402
DaMan writes "ZDNet picks up on yesterday's Firefox 3 beta 1 review by comparing the memory usage of Firefox 2 against the latest beta. The results from one of the tests is quite interesting, after loading 12 pages and waiting 5 minutes, 2 used 103,180KB and 3 used 62,312KB. IE used 89,756KB.""
Yes, but... (Score:5, Funny)
Sorry, I'm new at this....
Re: (Score:3, Informative)
Re: (Score:3, Informative)
Meta (Score:2, Insightful)
Re: (Score:3, Insightful)
And Opera (Score:3, Informative)
Re:And Opera (Score:5, Insightful)
Re:And Opera (Score:4, Informative)
Re:And Opera (Score:5, Interesting)
I mean, people used to make fun of GNU Emacs, saying things like it stands for eight megabytes and constantly swapping or eventually malloc()'s all computer storage. Emacs takes somewhere around 10MB or so on a RHEL4 box, and that thing is practically an operating system. It reads mail! Firefox doesn't even read mail, and it takes 60MB. Opera reads mail, but still 34MB seems just too big, too.
Maybe I'm just getting to be a cranky old man. Now you kids get offa my lawn!
Re: (Score:3, Insightful)
Actually something of interest I've noticed is that since I got NoScript my FF ram usage has dropped considerably. I rarely get about 83MB with FF2 now, because it doesn't have to load the plugins and such.
Re:And Opera (Score:5, Insightful)
Even then it still needs a dynamic layout for CSS and scripting on the fly. And even then some scripting is safe, some is not, so there are rules that the code has to implement like pop-up blockers, password managers, warnings on insecure pages, warnings on cross-site scripting, etc. All that and the browsers STILL need to be able to sensibly parse and display completely borked pages with invalid HTML.
Nevermind maintaining history, cache, cookies, referring pages, bookmarks.
Re: (Score:3, Insightful)
No, I don't have Flash at all, yet Moz is just as much of a resource hog.
I use NoScript, so no Javascript in-use here 99% of the time, either...
A pop-up blocker is a passive device, simply refusing to execute certain code, it saves CPU time, not the other way around. Similar for pointless warnings
Dillo is back (Score:3, Informative)
They finally managed to get the code released for the half-finished port to FLTK last month, and there's been a massive flurry of activity on the developers mailing list [wearlab.de] and in CVS. I guess no one
Re: (Score:3, Informative)
> if it will give a huge performance boost
http://lxr.mozilla.org/seamonkey/source/parser/htmlparser/src/CNavDTD.cpp [mozilla.org]
http://lxr.mozilla.org/seamonkey/source/content/html/document/src/nsHTMLContentSink.cpp [mozilla.org]
Re:And Opera (Score:4, Informative)
Re: (Score:3, Interesting)
Re: (Score:3)
Re:And Opera (Score:4, Informative)
The "w3" web browser extension for Emacs can display images.
Re: (Score:3, Interesting)
Re: (Score:2, Insightful)
Re:And Opera (Score:4, Insightful)
What we really need is a mechanism for e.g. Firefox to use large amounts of memory to speed up page loading when there's plenty of memory, but to optimize for a small memory footprint when I've got ten zillion Gimp windows and Picasa open.
Why should Firefox behave in exactly the same way in two totally different situations?
Re:And Opera (Score:4, Informative)
We need a way to tell the operating system that some memory is important and other segments can be dropped at any time (cached or precalculated data) provided the application is told so it can rebuild it when necessary.
The OS scheduler would choose which applications are idle to the user and dump some of the applications data.
Re: (Score:3, Funny)
Re:And Opera (Score:5, Insightful)
I used to browse the web on a machine with 8 MB of RAM. Total, including the OS. At the time, real time decoding of a JPEG was extremely difficult, but my current CPU has 100 times the clock speed and is 64 bit and has vector processing features. Yet, browsers still seem to make the same class of CPU-memory tradeoffs that made sense on a 68030. For example, I may have ten tabs open in a window. I can only see one of them at any given moment, but the fully decoded images are all sitting in memory for all ten web pages, despite the fact that the page could be re-rendered almost instantly on a modern system.
Since browsing a few web pages is seldom the only thing I do with my computer, I go and do other stuff in Lightwave, Blender, Photoshop, whatever, then I come back to my web browser, and I wait while the whole working set gets swapped back in. Then, I click on the tab I want, and I wait while the working set for that tab gets swapped back in. If it just rerendered the page from the original bits, rather than using cached decoded images sucking up RAM and whatnot, it'd have almost nothing to reload and worst case performance would be orders of magnitude better. Hooray for "optimisation!"
Oh, and can we get some ninjas to fucking kill Flash. Seriously, I shouldn't need a bunch of script blocking and flash blocking extensions just to be able to browse the fucking intarwebs without having a seizure.
Re: (Score:3, Informative)
I repeat what you were already told. Install Flashblock add-on:
https://addons.mozilla.org/en-US/firefox/addon/433 [mozilla.org]
What does it do you ask? Well, it does everything you want. It disables all flash by default. You can whitelist a site (like youtube) to always show flash. Or you can simply single click the space where flash would norm
Re: (Score:3, Insightful)
But a browser doesn't just browse web pages. A browser is a limited form operating system, as it has an execution language (Javascript) and environment (the DOM). A mail client is relatively simple as it's just a texty protocol. A browser is HTML + XML + CSS + HTTP/S + JPG/PNG/GIF/etc renderers + embedded plugins + caches, and in case of FF, it has XPCOM and various other extensible subsystems.
Re: (Score:3, Insightful)
Let me put it in the other way.
The raw web data transfered for those pages couldn't be more than 10MB, why do they need 60MB?
Do you think that DOM editing of the document tree, for example, should be implemented by actually editing the raw data gotten from the web? Or, for another example, when you double click on a web page, how do you think the word on which the clicked happened is found in the document? I guess you are imagining that the whole document is reparsed, the placement on screen for every single thing is recomputed, reflowed and so on, and then the word in the click coordinates is found? Have you not considered th
Re: (Score:2)
While the rendering engine has an obvious need for memory, it's nice to see that they're cutting down on memory usage; it has been one of the biggest drawbacks of using Firefox. There's really no need for a web browser to use more than 100MB of memory. Fo
And Links (Score:2)
Yeah but it's still beta (Score:4, Funny)
Re: (Score:2)
Re:Yeah but it's still beta (Score:5, Interesting)
I'm reverting back to Firefox 2 for the time being, and will file a bug report once I have some more time to find out what's causing the issue...
Re: (Score:3, Informative)
I've been running nightly FF3 pre-beta builds for a few months now, and even on the occasional day where a new patch causes regular crashes I've not seen this happen.
Re: (Score:3, Interesting)
I can reproduce it every single time.
Re: (Score:3, Informative)
How are they measuring? (Score:5, Informative)
Re: (Score:3, Interesting)
Re:How are they measuring? (Score:5, Insightful)
Task Manager sucks, use Sysinternals' Process Explorer.
Re: (Score:3, Insightful)
Re: (Score:3, Insightful)
Re:How are they measuring? (Score:4, Interesting)
AND - Sysinternals used to distribute the source on some of their tools. No longer. It's out there. But it's not legal.
Re: (Score:3, Interesting)
In fact, I just tried the same thing with Opera--it dropped from 60,000 to 11,000.
I don't think it's an estimate--I think the program really uses less RAM when minimized.
Re: (Score:2)
1) Browse with IE for a few minutes.
2) Look at the memory usage
3) Minimize IE.
4) Look at the memory usage
5) Maximize IE
6) Look at the memory usage.
Compare #2 and #6. I've found that #6 is lower than #2.
Re:How are they measuring? (Score:4, Informative)
Re: (Score:3, Informative)
Re: (Score:2)
Where does the memory go when an application is minimized? Where does the memory come back from when you restore the application?
Hint: the application isn't doing anything. It's an OS trick.
Bonus Question: Why do you think Firefox disables this trick?
Re: (Score:2)
Now, I could really be off on this, but I have not seen anyone give a reason for this behavior that explains everything I see. If you have a better conclusion, I am all ears
Re: (Score:2)
To echo a previous reply, the reason #6 is less than #2 is that when the application is swapped to disk and swapped back, the OS doesn't fully restore all objects that the application had in memory. It only restores the objects that the application is using, and doesn't restore the rest until the application requests some swapped objects. Given that most browsers are coded in C++, rather than Java or C#, garbage collection is a non-issue.
Re: (Score:2)
Re: (Score:3, Interesting)
Strange, 1p/10 mins more than 12pp/5 mins? (Score:5, Interesting)
Seems to me that memory usage must still spiral under 3 beta, otherwise how would the single page/10 min usage be less than the 12pp/5 min test? Sure, it's not as bad, but that number really caught my eye... more testing is in order if I can get some time away from the in-laws over the holiday.
Re:Strange, 1p/10 mins more than 12pp/5 mins? (Score:5, Insightful)
Re:Strange, 1p/10 mins more than 12pp/5 mins? (Score:5, Informative)
Unfortunately, I think the damage to Firefox's reputation is already done. There are many people who have had negative experiences with Firefox who keep on harping about the "memory leaks" and I don't see how Mozilla devs can change this public perception.
Don't take it anymore (Score:4, Insightful)
I don't see that memory usage remains a problem for most users. It's just the vocal few who are having memory problems. The main problem is that these users assume this is part of the "normal" experience of using Firefox, so they complain that every user must also be seeing the same thing. They take no steps to fix or report their problems, as they consider the problem to be "well-known" and think developers must be idiots for not being able to see it.
If you're still having serious problems with Firefox, try creating a new profile [mozillazine.org] and installing the Firefox 3 Beta [mozilla.com]. If you still have problems, discuss them on the MozillaZine Builds forum [mozillazine.org]. If the problems do not get resolved, just switch to another browser. It's not normal to experience serious problems when browsing, so I don't see why anyone accepts it as part of the "normal" experience.
I agree that the damage to Firefox's reputation is already done. I've found that no matter how many reports come out that Firefox doesn't have a severe and obvious memory problem, the few reports that show a problem are the ones that become popular. If any of them just included instructions to reproduce the problem on other computers, those reports would be productive. Somehow, they always seem to leave that part out.
Re: (Score:3, Insightful)
not to point out the obvious (Score:2, Insightful)
btw i did same test in IE7 and Opera9 and only got 30-40MB usage
Re:not to point out the obvious (Score:5, Informative)
Re: (Score:2, Insightful)
last i checked it was plugin writers who were blamed for all the memory issues by Mozilla
Which to me sounds eerily similar to Microsoft blaming 3rd party software for taking down the operating system.
Re: (Score:2)
If an extension crashes, I'm not even sure if the browser is supposed to stay open, or crash with it. Certainly an OS should not crash regardless of what a browser does.
Re:not to point out the obvious (Score:4, Interesting)
Re: (Score:2)
Which to me sounds eerily similar to Microsoft blaming 3rd party software for taking down the operating system.
Except "taking down the operating system" is very different, both in severity and root cause, from leaking memory. If you're going to allow extensions to run as part of the browser, you don't really have any control over what they do with the browser's RAM usage. An OS has the luxury of being able to partit
Re: (Score:2)
Re:not to point out the obvious (Score:5, Insightful)
Another point regarding your IE7 and Opera9 tests: as far as I know, all modern browsers choose to allocate more or less memory depending on how much memory the OS reports as available (certainly Firefox does), so users on different boxes can show very different results.
Re: (Score:2)
Opera 9.5 (Score:3, Informative)
Because of that, Opera has two features you could find useful:
As you see, Opera deserves its good reputation because they are updating the browser all the time adressing all kind of issues.
(And I'm glad you posted real issues, not the same old
Re: (Score:2)
Re: (Score:2)
It tells you the size and speed of download of all elements on the page.
It gives you a dom layout.
It lets you modify html, js, css on the fly!
It lets you right click an element and instantly find its source.
It lets you click a little symbol next to each and every css element so you can enable/disable it on the fly to see what is causing what.
It lets you view inheritence of any element in terms of css...
I just thought I'd mention this, I have no vested interest in firebug outside
Re: (Score:2)
FFX3 uses up all memory and causes thrashing (Score:2)
https://bugzilla.mozilla.org/show_bug.cgi?id=404688 [mozilla.org]
Re: (Score:2)
All of these windows-centric tests (Score:2)
12 pages? Who has 12 tabs open? (Score:3, Interesting)
BTW I never found old FireFox's memory consumption as annoying as intransigence of some sites in refusing to support Firefox and the lax/laisse-faire coding for IE only. May be because at work I usually have a couple of four processor 16GB machine for development/testing. I used to have a dedicated 2GB machine exclusively for Firefox. But that old machine's hard disk started squealing with an annoying noise so I had to throw it away. Even at home with my puny 512MB 4 year old desktop or the 1GB 2 year old laptop I get by without any serious memory issues.
not an issue (Score:2, Insightful)
Re: (Score:2)
Also, considering some other applications I often have open are memory hogs too (Microsoft Word / Excel / Powerpoint, Apple Mail, VMware Fusion) memory efficiency becomes more concerning. Even with 2GB of RAM, I run into problems at times.
Exact opposite on my machine (Score:3, Informative)
I wish I could have submitted a bug report, but my machine would freeze before firefox actually crashed.
(and no, it does also take me 15 minutes to move a 20 meg file on my mac.....)
What a stupid "test" (Score:4, Insightful)
I bet if he re-clicked on each of the 12 tabs after the 5 minutes was up, that memory usages would go back up again.
"using less memory" isnt always desirable. I have 4 GB of RAM in my system and i'd rather if the applications USED THAT RAM, to keep application response "instant", rather than un-caching stuff, only to pull it back into memory again when I want to see it.
Re: (Score:2)
A good point! And firefox does seem to take this into account. I am running Firefox 2 on Ubuntu (right now!) on a Thinkpad T20 with 256MB of ram - it works fine.
Re:What a stupid "test" (Score:5, Interesting)
Yet flash.... (Score:3, Informative)
Re: (Score:2)
Memory AND speed issues (Score:3, Interesting)
Re: (Score:2)
Let me guess: your company runs virus scans or similar on your PCs overnight, so Windows swaps out all your applications to cache the files the scanner has just finished scanning?
That's why I found that quitting and restarting Firefox was much faster than leaving it running overnight. It's not Mozilla's fault that the Windows disk cache was designed by a retard.
sounds like a poorly written extension (Score:3, Insightful)
Alternatively, you could use Opera.
Won't be going back (Score:3, Informative)
I'm feeling the same (Score:3, Interesting)
Checking RAM usage, it's using 237MB right now, as reported by Process Explorer.
Re: (Score:2)
Memory still an issue for me... (Score:2, Informative)
Re:Memory still an issue for me... (Score:4, Informative)
My system exhibits the exact same problem you describe. My Firefox will spike from around 66 MB of RAM usage to 700 then 800 then 900 and will just sit there chewing up more RAM until I kill it. I'd love to know the cause and even better, the solution to this problem.
It is happening in FF2 and in the 3 Beta. It doesn't happen on the same site every time. It happens most frequently when using JavaScript, but not always. I can't seem to narrow it down unfortunately.
Yes, but... (Score:2)
Just did this test in linux (Score:5, Informative)
I created a new user, logged in and loaded up FF 1.5.. opened up 12 tabs and logged into these sites
www.bbc.co.uk
www.slashdot.org
www.dailykos.com
www.news.com
www.abc.com
www.foxnews.com
www.freep.com
www.youtube.com
www.youporn.com
www.liveleak.com
www.rawstory.com
www.drudge.com
Here are the numbers for ff 1.5. The first line is when it loaded up with 12 empty tabs. The second line is the 12 websites loaded initially.. and the third line is 12 minutes afterwards
3876 perfume 20 0 175m 54m 38m S 0.0 14.5 0:18.19 firefox-bin
3876 perfume 20 0 348m 124m 49m R 72.0 33.2 1:47.83 firefox-bin
3876 perfume 20 0 338m 135m 49m R 46.8 36.0 7:30.93 firefox-bin
I logged out, rm -rf
4231 perfume 20 0 202m 58m 38m S 3.6 15.6 0:11.79 firefox-bin
4231 perfume 20 0 273m 106m 40m S 59.7 28.4 1:31.37 firefox-bin
4231 perfume 20 0 254m 107m 40m S 1.3 28.5 2:27.26 firefox-bin
CPU usage seemed to be much better with FF 3B1 as well.. not sure why the difference but everything was clean...
Re: (Score:2)
Re: (Score:3, Informative)
Can someone please tell me what the columns are in English? While it's great to know how much "NI" Firefox has, I'd rather see the memory usage.
That's an ignorable column. Instead, pay attention to "VIRT" (virtual memory used) and "RES" (approximately the physical memory used). In particular, note that both of those figures are relatively lower once a few sites are visited, meaning that FF3.0b1 is both less memory hungry and less inclined to touch pages that it is using (i.e. should be better performance in practice, especially if you're doing other things with the machine too, such as running an IDE.)
Regrettably It Also Locked Up! (Score:3, Informative)
Rebooted (Win2K, 2.8 MHZ Pentium 4, 1GB RAM), manually fired up ye olde Firefox, went to same pages, ran fine.
Closed, re-ran 3.0
Sorry boys, not ready for Prime Time IMHO.
Lockups bigger issue (Score:2)
Mind you it is perfectly possible that the two issues are related, and since my knowledge about the inner workings of firefox are, to put it very mildly, limited, I suppose I can't really judge what kind of changes would be hard to imple
Still giving issues (Score:3, Informative)
http://home.windstream.net/slashdot/pics/firefox3beta.jpg [windstream.net]
Memory is not as important as Stability! (Score:3, Insightful)
CPU utilization where the browser all of a sudden is sucking down 100% of your CPU or of a single core and/or crashes are just as important (or more). More than likely the memory leaks have related browser stability issues that can be addressed with single fixes but if the browser continues to have runaway CPU issues and crashes it will not matter HOW small a footprint of memory it uses.
Experiencing RAM/CPU Problems? Try Again. (Score:3, Informative)
Starting yesterday, we began receiving reports, like yours, of a new memory/cpu usage issue that happens shortly after a normal startup and can spike the CPU and chew up hundreds of MB of RAM. This is apparently happening to people with new profiles or in profiles that have a very outdated list of bad sites for the Phishing Protection feature.
What's going on is that soon after Firefox is started, Firefox tries to fetch updates to the site forgery list -- the lists of bad sites that allows Firefox to warn users about suspected Phishing attacks. If the profile has very outdated or no local list, as is the case for a new Firefox profile, Firefox is trying to bring down a complete, rather large, list in one big chunk rather than slowly in small chunks. This causes Firefox to consume large amounts of CPU and memory and can slow the users machine to a crawl.
This problem is due to the change in the "SafeBrowsing Protocol" which only affects Firefox 3 Beta 1 and nightly build users. If you're on Firefox 2, this isn't going to affect you.
The work-around for this problem was for us to throttle it on the server side. We've done that and if you try Firefox 3 Beta 1 again, it should be fine.
- A
Re: (Score:3, Insightful)
Re:This is irrelevant (Score:4, Insightful)
Re: (Score:2)