Slashdot Log In
Comparing Memory Usage of Firefox 2 vs 3
Posted by
CmdrTaco
on Wednesday November 21, @08:39AM
from the i-don't-remember-nothing dept.
from the i-don't-remember-nothing dept.
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.""
Related Stories
Firehose:Memory test - Firefox 2.0.0.9 vs Firefox 3.0 b 1 by Anonymous Coward
Comparing Memory Usage of Firefox 2 vs 3
|
Log In/Create an Account
| Top
| 402 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Yes, but... (Score:5, Funny)
(http://filer.case.edu/bct4/)
Sorry, I'm new at this....
And Opera (Score:3, Informative)
Re:And Opera (Score:5, Insightful)
(http://evil.google.com/)
Re:And Opera (Score:4, Informative)
Re:And Opera (Score:5, Interesting)
(http://stylus-toolbox.sf.net/ | Last Journal: Tuesday May 15 2007, @11:50AM)
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: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:And Opera (Score:4, Informative)
(http://www.kibbee.ca/)
Re:And Opera (Score:4, Informative)
(http://www.chriswareham.net/)
The "w3" web browser extension for Emacs can display images.
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)
(http://www.urbandb.com/)
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:And Opera (Score:5, Insightful)
(http://forkforge.org/)
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.
Yeah but it's still beta (Score:4, Funny)
(http://www.joystick101.org/)
Re:Yeah but it's still beta (Score:5, Interesting)
(http://www.icemark.net/~beh/)
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...
How are they measuring? (Score:5, Informative)
(Last Journal: Saturday October 14 2006, @08:12AM)
Re:How are they measuring? (Score:5, Insightful)
(http://www.1bit.com.br/)
Task Manager sucks, use Sysinternals' Process Explorer.
Re:How are they measuring? (Score:4, Interesting)
(http://slashdot.org/)
AND - Sysinternals used to distribute the source on some of their tools. No longer. It's out there. But it's not legal.
Re:How are they measuring? (Score:4, Informative)
Strange, 1p/10 mins more than 12pp/5 mins? (Score:5, Interesting)
(Last Journal: Friday November 10 2006, @02:16PM)
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)
(http://www.kibbee.ca/)
Re:Strange, 1p/10 mins more than 12pp/5 mins? (Score:5, Informative)
(http://stony3k.blogspot.com/)
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.
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)
(http://ceejayoz.com/ | Last Journal: Monday June 05 2006, @06:14AM)
Re:not to point out the obvious (Score:4, Interesting)
(http://www.kibbee.ca/)
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.
FFX3 uses up all memory and causes thrashing (Score:2)
https://bugzilla.mozilla.org/show_bug.cgi?id=404688 [mozilla.org]
All of these windows-centric tests (Score:2)
(http://freefall.homeip.net/)
12 pages? Who has 12 tabs open? (Score:3, Interesting)
(Last Journal: Wednesday October 31, @08:33AM)
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)
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:What a stupid "test" (Score:5, Interesting)
Yet flash.... (Score:3, Informative)
Memory AND speed issues (Score:3, Interesting)
(Last Journal: Sunday May 20 2007, @10:07PM)
Won't be going back (Score:3, Informative)
Memory still an issue for me... (Score:2, Informative)
Re:Memory still an issue for me... (Score:4, Informative)
(http://vanfossen.blogspot.com/)
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.
Safari on Windows (Score:1)
(http://www.pittsburgh-living.net/)
Yes, but... (Score:2)
CPU usage concerns (Score:1)
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...
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 implement and what the security implications would be etc.. I would however argue that the browser's interface failing to respond when it encounters a poorly written/ bloated webpage is a more devestating problem than a larger than necessary memory consumption.
Still giving issues (Score:3, Informative)
(http://www.kryliss.net/)
http://home.windstream.net/slashdot/pics/firefox3beta.jpg [windstream.net]
600+MB real memory usage (Score:1)
HTML vs XHTML (Score:2)
(http://slashdot.org/ | Last Journal: Saturday February 05 2005, @03:50AM)
Memory is not as important as Stability! (Score:3, Insightful)
(Last Journal: Sunday August 20 2006, @09:16PM)
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.
Whiskey tango foxtrot. (Score:1)
Okay, so I tried it... (Score:1)
My desktop is unusual, to be sure, but firefox 2 has always been fine. Perhaps later I'll find the link. Meanwhile, what should I have expected, it IS a Beta...
Meanwhile, FF3 Beta 1 is working perfectly on my laptop, and is much, much lighter.
About Time (Score:1)
(http://www.nealgrosskopf.com/)
Not convinced (Score:1)
Tags (Score:1, Offtopic)
I'm sure that should say "whatisopera" not "whatiopera"
Just a heads up.
Efficient Firefox? Finally! (Score:2, Insightful)
(http://www.eggroll.com/~jimefaw/)
Firepenguin vs. Fireborg (Score:1, Troll)
(http://127.0.0.1/)
That being said, many posting here have a little knowledge about how memory use and performance correlate. A little knowlege is a dangerous thing.The assumption that less memory use is better is absurd. If I have 1.5 Gig free and my browser is spending its time conserving memory rather than rendering pages that is VERY WRONG. If it is Linux, use the memory you need and let the Kernel handle swapping, etc. Don't WASTE it, but don't waste memory by not using available memory either." That is a much bigger waste.
Conserve memory when memory needs to be conserved , and use more memory when plenty of memory is available.
A slightly off topic aside, hopefully eye opening to some, exemplifying how a little knowledge can be a dangerous thing:
I once requisitioned 16 Megs of RAM to add to the 16 Meg I had back in Win95 days. The typical person with minimal knowledge who thought he had a lot of it was trying to block my order, because he added 16 to his box and it still said 0% free so he concluded that "Windows just allocates and uses all the memory you give it." ROTFLMAO. I tried to explain to him about swapfiles and show him that the swapfile size decreased in proportion to the added RAM and why that was a HUGE win from a performance perspective, alas to no avail.
He told me he would be watching for my P.O. to block it, and I told him to have fun watching it go right through. I explained things to the CEO, who was not a complete moron, and he did in fact ultimately watch with gritted teeth as it got processed under direct approval of the CEO of the company. I figure we spent 10 times the money wasting time trying to address his ignorance than the actual RAM costs. The guy was quite an ASSet to the company
Realworld Test: MySpace and Bebo (Score:2)
(http://www.meehawl.com/Blogfiles/ | Last Journal: Thursday December 04 2003, @06:38PM)
My personal best with Firefox 2 on Windows was 780MB of RAM "Memory Used" and 785 "Peak Memory" on a 1 GB laptop before I killed that browser sessions like the mad dog it was.
What About The Swap File? (Score:2)
I can run a firewall or AV program, for instance, and short of rebooting, there's just no way to reclaim it. Hence the memory leaks. ie - it's a glitch in Windows itself that so far I haven't been able to find a way around. Even memory manager programs won't free or touch this. So you get into silly situations where you have 1 gig virtual and 200 megs physical despite having 1 gig of ram.
Experiencing RAM/CPU Problems? Try Again. (Score:3, Informative)
(http://mozilla.org/)
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
Seamonkey (Score:1)
(http://www.first-circle.net/)
I've been running the thing for days now w/o a restart, and I currently have 11 tabs open and have had about half of them open for at least 24hrs and the other half for maybe 3-4 hrs. Under Linux (Ubuntu 7.10 x64) I see:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ PPID SWAP COMMAND
14334 eric 15 0 220m 113m 24m S 0 5.6 26:47.68 14330 106m seamonkey-bin
In contrast, an average session with FF2 quickly eats up 700m-900m.
Seamonkey imported all my FF bookmarks, no problems, and I have the important (to me) extensions running - NoScript, Adblock+, Forecastfox, Chatzilla, plus a retro Orbit theme, and I'm a happy browser.
Why? (Score:1)
Re:Wow (Score:3, Insightful)
(http://www.quickfox.net/)
Re:This is irrelevant (Score:4, Insightful)
Re:Compared to usefulness? Compared to total RAM? (Score:2)
Re:That's before it goes mad... (Score:1)
Re:This is irrelevant (Score:2)
Re:This is irrelevant (Score:1)
(http://alanbcohen.com/ | Last Journal: Thursday July 01 2004, @12:03PM)
I run into memory problems easily on my work machine, WinXP w/1gb ram. And getting this much was difficult! A typical work session will have:
- Firefox 2 with 3-5 windows into different email and PeopleSoft instances
- WinSQL logged on to 1-2 database instances
- Excel with nVision (PeopleSoft) add-ins, commonly 2-3 relatively small sheets open
- xplorer2 lite (file manager)
- Palm Desktop (PIM, Scheduler)
My personal WinXP/PCLOS dual boot is hardware maxed out at 2gb ram. I'm looking forward to the lower memory requirements of FF3.
Re:This is irrelevant (Score:2)
(http://www.p10link.net/plugwash/)
I call bullshit.
desktop versions of 32 bit windows do not support more than 4GB of physical address space meaning ram usable to the OS is limited to some figure below that (exactly how much depends on the exact hardware configuration). Even if you are one of the minority that uses an OS that supports more the chipset may not. For laptops the situation is even worse, even if the chipset and OS support 4GB of ram 2GB sodimms are not cheap and I'm not aware of any laptops that support more than two modules.
On a system with 2GB of ram (which is the most many users can easilly and economically install) 200MB is 10% of your ram, that is not negligable.
Re:This is irrelevant (Score:1)
(posted with a measly 2gb)