Slashdot Mirror


Real-World Firefox 3 Memory Usage Leads the Field

An anonymous reader writes "The author developed a program to snapshot memory usage per process every 3 seconds on Windows. Using this he recorded 3 hours of memory usage for five different browsers under real-world usage scenarios: Safari 3.1, Firefox 3, Flock 1.2 (a browser based on Firefox 2), Opera 9.5, and Internet Explorer 8. A million data points indicate that Firefox 3 has a surprising advantage over the other browsers tested. These are real-world tests and not contrived benchmarks."

78 of 406 comments (clear)

  1. Wonder what Firefox 2 looked like ... by xmas2003 · · Score: 5, Interesting

    Interesting test - pretty amazing how FF3 basically flatlines at around 120 MBytes for over 2 hours of usage ... would have been interesting if the same methodology could be used with FF2 to see how much of an improvement FF3 is over that and how well the leaks were fixed.

    --
    Hulk SMASH Celiac Disease
    1. Re:Wonder what Firefox 2 looked like ... by Bandman · · Score: 5, Funny

      Cue Iraqi spokesman

      There are no memory leaks. All memory usage is as we intend it to be. Any reports of leaks are lies by people who do not understand our page caching system. The infidels will never take Baghdad.

    2. Re:Wonder what Firefox 2 looked like ... by Mascot · · Score: 4, Informative

      The article states FF3 is an improvement over FF2, without offering data points for FF2. However, it also mentions Flock is based on FF2, so I'm guessing they've assumed the Flock data is representative for FF2.

    3. Re:Wonder what Firefox 2 looked like ... by Enderandrew · · Score: 2, Insightful

      It would have been interesting to include the Flock 2.0 beta, which is based on Firefox 3, and IE 7. I don't think many people are using IE8 yet.

      I'd also throw in a minimalist browser like KrazyBrowser for fun.

      --
      http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
    4. Re:Wonder what Firefox 2 looked like ... by reg · · Score: 4, Interesting

      That won't do those without 120 MB of memory to spare much good. Setting a cap on memory usage isn't a good solution, IMHO -- using well-designed memory handling that proactively frees memory seems to me to be a far better solution than a cap and garbage collection model.

      (-1, Uninformed)

      Firefox has no global cap on memory. It will dynamically configure it's caches (to some extent) based on the available RAM. It would be a stupid design to leave lots of RAM free, and reload stuff over the net. It also proactively frees memory, in most cases, although it sometimes delays a little, because it knows that you might turn around and reuse all of that memory you just stopped using. The GC is just for JavaScript (required by design) and for DOM nodes which end up being circularly referenced (which is unavoidable).

      Finally, 120MB is not a lot of RAM. Notice that the other browsers are using similar amounts of RAM.

      Regards
      -Jeremy

    5. Re:Wonder what Firefox 2 looked like ... by speedtux · · Score: 2, Insightful

      Setting a cap on memory usage isn't a good solution, IMHO -- using well-designed memory handling that proactively frees memory seems to me to be a far better solution than a cap and garbage collection model.

      Well, it may seem to you, but it isn't.

      What you call a "cap" is an in-memory cache. If you "proactively free memory", you get rid of stuff in the cache, and then, well, it's not cached anymore.

    6. Re:Wonder what Firefox 2 looked like ... by icegreentea · · Score: 3, Funny

      Looking at the RAM usage from TFA, 120 megabytes is acceptable. Web browsers apparently use a lot of RAM (when you load a lot of sites).

    7. Re:Wonder what Firefox 2 looked like ... by neokushan · · Score: 5, Interesting

      Perhaps in days gone by it would have been shocking for browsers to use so much memory, but the memory being used is directly related to the content on the sites it browse.
      We recently seen studies indicating that the average website has tripled in size in the last couple of years alone, imagine how much bigger websites have got in the last 10-15 years?
      More images, higher resolution/dpi ones at that, flash, plus there's all the scripting engines and other plugins that have accumulated as well.
      While I comlpetely agree that software bloat shouldn't be accepted (Nero, I'm looking at you) and if anything, programs should become MORE efficient with age (in an ideal world), I think browsers could be one exception since the content they're handling has got so much bigger.
      So really, the best way to indicate progress here is to pit the fully featured browsers against each other and see who comes out on top. Probably still wont be firefox, but I bet the big three still use a lot of RAM compared to what was the norm a few years ago.

      --
      +1 IDisagreeSoHeMustBeATrollOrAnAstroturferOrAShill
    8. Re:Wonder what Firefox 2 looked like ... by Alibaba10100 · · Score: 2, Informative

      Based on my experience, the flock data is not representative of firefox 2. After running firefox and using tabs for a few hours, it would often be using around 300mb of my memory, while the data shows flock maxing out at 200mb.

  2. What time of day did he do his tests? by Anonymous Coward · · Score: 5, Funny

    I find that for certain hours of the day (namely in the evening) My memory usage skyrockets. It probably has to do with the increased number of images I am loading :D

  3. But what memory metric was taken? by Anonymous Coward · · Score: 5, Interesting

    IIRC the memory displayed in process manager isn't necessarily the memory requested/used by the program, but merely what Windows has allocated, partially based on the applications requirements and partially based on what Windows _thinks_ the program needs.

    As such there's room for applications to look like they're using more memory than they are which can lead to misleading stats. If this test has only taken into account the memory windows has allocated it doesn't necessarily act as a measure of how efficient the program is at least, just how good it is at playing Window's memory management system.

    1. Re:But what memory metric was taken? by Evanisincontrol · · Score: 4, Interesting

      Ok, I see your point. Let's pretend Browser X is using dirty tricks with Windows's memory management system to shrink down how much memory is allocated to it. Browser Y is not doing that and appears to be less efficient.

      Well and good, but it's irrelevant. The remains that Browser X is taking less memory from Windows's pool of resources. It doesn't matter how Browser X is doing it or how efficient Browser X being with the memory internally, it is a solid truth that Browser X is using occupying fewer system resources than Browser Y.

      It's really a moot point, because it's unlikely that the developers of Browser X knew any "cheats" that would let them use substantially less memory than every other browser out there.

    2. Re:But what memory metric was taken? by cgenman · · Score: 2, Interesting

      Or, of course, Browser Y takes more memory and caches more of what you're using, whereas Browser X hits your network more often. Browser Y might feel more responsive to your input. Browser Y might also be very efficient at freeing resources as the system needs, so that the actual system footprint is negligible, but unused resources are utilized efficiently.

      Of course all of that is speculation. Comparing browser based upon RAM footprint when they're all trying to cache the entire internet seems ridiculous. You might get somewhere if you removed all caching and pre-maxed out the real RAM, such that any and all activities hit the disk. But even then you'd be putting up a metric bereft of real-world performance ramifications.

  4. HTTP 503'd (aka /.ed) by scatters · · Score: 5, Funny

    Service Not Available.

    At the time of posting this, there were like, 10 comments in the thread. Assuming that only 10% of all /.ers RTFA, that means that the site can support only 1 simultaneous user.

    --
    A One that isn't cold, is scarcely a One at all.
    1. Re:HTTP 503'd (aka /.ed) by arth1 · · Score: 2

      You're incorrectly assuming at least two things:

      1: That all readers are posters.
      2: That there is a correlation between looking at a page and number of connections. Very few clients use a single HTTP 1.1 persistent connection, and even fewer one that will stay open after all elements have been fetched. Lots of clients use multiple connections, and lots of clients use non-persistent connections, closing each of them down as soon as they're finished fetching a single object. The latter is especially common when behind a proxy server.

    2. Re:HTTP 503'd (aka /.ed) by electricbern · · Score: 2, Funny

      It's IIS, it probably ran out of licenses.

      --
      alias possession='chmod 666 satan && ls /dev > il && tail daemon.log'
    3. Re:HTTP 503'd (aka /.ed) by Kalriath · · Score: 2, Funny

      Microsoft's way ahead of you there - in an effort to avoid you mistaking "insufficient licenses" for a server error, that's 403.15.

      That's right, .15. Because with Microsoft, the spec just isn't detailed enough.

      --
      For a site about things like basic rights, Slashdot users sure do like to censor "dissent".
  5. Service Unavailable by MessageDrivenBean · · Score: 3, Funny

    Already /.-ed? Or do I have to use any of the mentioned browsers... :-)

    --
    Quisque verborum suorum optimus interpres...
  6. Bah. by Anonymous Coward · · Score: 5, Funny

    If they didn't compare with Dillo/lynx, it's meaningless. Also, already slashdotted.

  7. Terrible reference by toleraen · · Score: 5, Insightful

    Between:

    These aren't stress tests, and I probably never went over 4 windows in each browser, with at most 3 tabs in each window.(Emphasis mine)
    and
    .the individual numbers should not be compared to each other...

    ...how is this supposed to be taken seriously? "Contrived benchmarks" at least provide consistent and reliable results. They may not provide a completely accurate picture of real world browsing, but it's a hell of a lot better than this anecdotal "test".

    1. Re:Terrible reference by CyberLife · · Score: 4, Insightful

      This was my first question too. Real-world testing is all well and good, but how controlled was it? What assurances do we have that his results really paint the picture he claims and not something else?

      Note: The site is down so I haven't read the article yet. I'm guessing it fails to address this concern?

    2. Re:Terrible reference by dreamchaser · · Score: 2, Insightful

      Should have gone to the exact same pages and clicked the exact same links in each browser. Without doing that this is totally meaningless. That being said, I'll be happy if FF 3 doesn't leak as much memory as FF 2 or IE X.

  8. Wait by Mensa+Babe · · Score: 4, Informative

    Don't get overexcited just yet. Let me quote some of the most important parts of the article that were completely overlooked in the summary for some reason:

    "These results are from opening Memory Watcher and then using the browser between 9,000 and 11,000 seconds (close to 3 hours). Each browser is tested in a separate session, and there are brief periods of inactivity throughout the time period. [...] The above profiles are not a direct comparison in any way, but they offer a visualization of trending in the memory behavior of the layout engines and interfaces. [...]These aren't stress tests, and I probably never went over 4 windows in each browser, with at most 3 tabs in each window. [...] An automation script will never give the same insight into performance over time as will this sort of profile." [emphasis added]

    In other words, it is evident that there was no guarantee whatsoever that every browser would display exactly the same sequence of web pages. It is easy to jump to conclusions that if Firefox has used the least memory then it must "[have] a surprising advantage over the other browsers." But is it a logical course of reasoning? Or only a post hoc ergo propter hoc fallacy combined with wishful thinking? The truth is that the amount of memory used during an hour of downloading web pages is strongly correlated with the speed of downloading and displaying said web pages. Is it the case that Firefox couldn't download, format and display pages as quickly as Internet Explorer because of the native Windows internal API hooks that help Explorer work faster than any independent browser could possible aspire to? That is quite possible. Unfortunately the results of that experiment are inconclusive and the methodology was unreliable.

    --
    Karma: Positive (probably because of superiour intellect)
    1. Re:Wait by mapkinase · · Score: 2, Interesting

      "Or only a post hoc ergo propter hoc fallacy combined with wishful thinking?"

      There is no "post hoc ergo propter hoc" here. There is only "hoc", because people are measuring exactly what they need: memory usage. "surprising advantage over the other browsers" is not "hoc", because it is not an event, it is just logical conclusion of two things: Firefox using less memory than other browsers and using less memory is advantage.

      The experiment observed did show less memory used and the conclusion is very logical.

      --
      I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
  9. If slashdotted by Anonymous Coward · · Score: 5, Informative

    Final memory usage in MB
    Safari 636.9
    Firefox 3 111.8
    Flock (Firefox 2) 191.9
    Opera 9.5 190.6
    Internet Explorer 194.4

    1. Re:If slashdotted by Koiu+Lpoi · · Score: 4, Interesting

      Ffffffuck, is that a typo on Safari? That's stupendously huge! Is that because they have to load up some kind of ridiculous layer to make this mac-alike app run on windows? I know that iTunes uses a ton of ram too, but not six hundred megs huge.

  10. How did they measure memory consumption? by Idaho · · Score: 5, Insightful

    As the server is (already!?) down, I didn't yet have a chance to RTFA. So perhaps it is in the article somewhere, but I couldn't help wondering: how did they actually measure memory usage?

    I'm asking because, these days, that pretty much amounts to rocket science.

    Different operating systems report memory usage differently, even between different versions of the same OS (yes, I'm looking at you, Vista vs. XP). If they used "top" or its equivalent, it matters a lot whether they looked at real usage, virtual memory size (can be huge but that doesn't say anything) or what-have-you. Some OS's cheat quite a bit in what memory is reported as being "free" or "available", as well. Then we get to questions like "does it include the size of shared libraries", if not, is that fair if the libraries are really only used by that one application? Etc. etc.

    So I'm not saying memory using doesn't matter (it very much does), it's just hard to measure it exactly. And, any attempts at doing so, should be documented precisely.

    --
    Every expression is true, for a given value of 'true'
    1. Re:How did they measure memory consumption? by jd · · Score: 3, Insightful

      I don't know about these guys, but since most of these will be dynamically linked files, I'd probably be looking for ways to trap the malloc library calls, in much the same way as most of the debug malloc implementations do for various Unixes. If you track the maximum usage and the unfreed total, you can determine the memory consumption and memory leakage without relying on any system-specific interpretation of what memory is.

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    2. Re:How did they measure memory consumption? by Tweenk · · Score: 4, Informative

      The OS was Vista, and the program was written in .Net to use the function PrivateMemorySize64. MSDN says it returns "the amount of memory which cannot be shared with other processes". It also says it's the same as the "Private Bytes" value in taskmon. Probably it means that it's the amount of memory the process received from mallocs (or rather GlobalAllocs/LocalAllocs/HeapAllocs), and which can't be assigned to some other process.

      It's worth noticing that the guy bothered with a GUI and an interactive filtering option for such a simple program. I wonder whether he ever heard of CLI, because it looks like a perfect fit for this kind of program.

      By the way, why not post CoralCDN links (append .nyud.net to hostname) instead of direct links when the site in question is small and likely to be Slashdotted?

      --
      Those who would give up liberty to obtain working drivers, deserve neither liberty nor working drivers.
  11. Re:Lools IIS can't hold its own by nmb3000 · · Score: 3, Insightful

    Lools IIS can't hold its own

    Haha! That's funny and insightful!

    Oh, wait.
    The term "slashdotted" has become ubiquitous with smashing a webserver due to high traffic.
    Most webservers are *nix based (though admittedly IIS is gaining ground).
    Hm. Nevermind.

    --
    "What do you despise? By this are you truly known." --Princess Irulan, Manual of Muad'Dib
    /)
  12. Seems it's slashdotted. Here is the text. by Anonymous Coward · · Score: 2, Informative

    I can't be arsed to do this properly. There are a lot of graphs and stuff. But here are the text bits. Pure copy and paste. No formatting. Live with it.

    Web browser performance is an often talked-about and flaunted thing, but many claims are not really backed up by solid evidence. I wrote software that collected millions of data points over 14 hours of actual browsing time, and this article reveals my findings.

    Problem

    Many people load hundreds of web pages, sometimes at the same time, often over periods of 3+ hours. Users complain about the memory usage of Firefox, Safari, or Internet Explorer, and we need a way to identify which browsers are better at managing memory than others. Traditional benchmarks do not look at all the things you might do with a program, and we need real-world numbers over a period of hours.

    Solution

    I developed a Windows Forms application in .NET called Memory Watcher that "watches" the system memory numbers. It uses a timer to poll the processes every 3 seconds. It then records every number and also prints them out in a grid on the screen. This allows us to keep track of each program's memory usage over time and with real-world usage.
    Memory Profiles

    These results are from opening Memory Watcher and then using the browser between 9,000 and 11,000 seconds (close to 3 hours). Each browser is tested in a separate session, and there are brief periods of inactivity throughout the time period. The vertical axis is the memory used in MB, and the horizontal axis contains the memory "checkpoints" my program took (one every 3 seconds).

    (Graphs and more graphs)

    Benchmark Details

    The above profiles are not a direct comparison in any way, but they offer a visualization of trending in the memory behavior of the layout engines and interfaces. This is not a diagnosis or bug report. Let me show some important metrics of the above results.
    Browser name Exact version Time active (s)
    Hours Comments
    Safari 3.1.2 10,470 s
    2.91 hours Normal browsing
    Firefox 3.0 9,681 s
    2.69 hours Normal browsing
    No extensions
    Flock 1.2.2 10,146 s
    2.82 hours Flock is based on Firefox 2.0
    No extensions other than the default
    Opera 9.5 9,855 s
    2.74 hours No extensions
    Only browser was used
    IE 8.0 10,236 s
    2.84 hours Used 7.0 rendering mode
    No extensions

    The system is Windows Vista SP1, and the computer has 3.0+ GB of RAM. No plugins are disabled, but the Acrobat Reader and Java plugins were (presumably) not used. Flock is based on Firefox 2.0 but its memory usage is probably worse because it uses built-in extensions.

    * Just regular stuff
    * These aren't stress tests, and I probably never went over 4 windows in each browser, with at most 3 tabs in each window. I didn't look at many pages that are extremely heavy on images, and no "browser benchmark" style pages. Gmail was used on each browser.
    * Not just pages
    It is hard for a regular benchmark to "simulate" a user actually clicking on things. Interactions with the user can greatly influence memory or performance. Having a responsive browser is probably more important than just having a "fast" one at showing pages.
    * Plugins included
    My profiles include Flash and possibly other plugins. A browser might have memory issues with a plugin and that could cause a significant problem with the user experience. (Most Windows Vista crashes have been due to graphics cards, not Vista itself, for example.)
    * Real-life usage
    An automation script will never give the same insight into performance over time as will this sort of profile. As developers, we want to make programs that work wel

  13. Re:Yah, but how reliable? by Anonymous Coward · · Score: 2, Insightful

    Yeah, there are 2 of you. It's your fucking flash plugin d00ds.......

    (why would anybody install that piece of crap is beyond me)

    My Firefox never crashes, I repeat never. (Ubuntu 8.04) I use it for hours and hours every single day.

  14. Great news FF - though Opera is speedy by SgtAaron · · Score: 4, Interesting

    I've been blessed with using a Duron 950Mhz with a gig of RAM, lately. Quite speedy. Heh. But I've used worse, as many can no doubt also say. Oh, and an GeForce4, and of course the X Window System. :-)

    I've always used Firefox, and Netscape before that, on my linux desktops. I must say that I tried Opera lately, for the first time, and found its rendering to be very spry. The difference was most noticable for me when loading very large web pages, or very detailed with lots of tables and such. The latter was our nagios service detail page, which the rendering in Opera was quite noticeable in its quickness.

    So I get to be torn now, maybe, speed vs lean...
    I do like speed. Opera's memory use doesn't seem to be so excessively bad as to negate the optimizations they seem to have coded into the rendering.

    Aaron

  15. Memory?...what about speed? by Last_Available_Usern · · Score: 5, Insightful

    While it's admirable that it's the leanest of the bunch, if I have 2GB of memory and over half of that is unused at the moment, do I really care if my browser uses 25MB instead of 40MB? I would think the speed with which the browser (and subsequent windows) opened, as well as how quickly it loaded plug-ins and other embedded media, would be of more importance.

    1. Re:Memory?...what about speed? by AbRASiON · · Score: 4, Interesting

      I couldn't agree more, I want an incredibly incredibly snappy browser, I don't care how much resources it requires.

      I have a theory and I'm convinced of this theory that cache in browsers simply has been broken, since the beggining
      I've used netscape, ie, ffox, netcaptor and god knows what else and no matter how big I set the cache or how regularly I hit sites, they still seem slow to load images and content.

      Perhaps it's the complexity of the pages has scaled up, I spose that is possible.
      I've gone from browsing on a Pentium 166mmx with 32mb over the years up to a quad core 3.2ghz machine with 4gb of ram and moved from 128k dsl / 512k dsl / 1.5mbit dsl / 8mbit dsl and 18mbit dsl.

      I am impatient, make no mistake but surely if we're just throwing images and text around, these damned things should be snappier?
      FFox 3 is definitely a move in the right direction, it's noticably faster than FFox 2 but I still find moving back / forward, clicking links and interaction in general should still be faster :/

  16. Re:Careful... by Paul+Neubauer · · Score: 4, Insightful

    Not really. Many Opera users are finding 9.50 to not be as good as claimed or hoped and finding it to be a memory hog. I am not alone in looking at 9.50, finding the the 9.51 snapshot to be less buggy, and sticking with 9.27 for normal non-browser testing browsing.

    Now, maybe when Opera 9.52 or so is out, there might be some valid concern.

    --
    I don't subscribe to RMS's GNUtopian vision.
  17. This doesn't mesh with my experience by Curien · · Score: 4, Informative

    My wife and I share a computer. She uses mostly uses Firefox, I mostly use Opera. This is on a 64-bit Ubuntu Hardy.

    I have noticed no difference in her memory usage since we upgraded to FF3. I used to regularly have to kill her browser every once in a while (maybe once or twice a week) because it was eating up all the RAM. Since we upgraded to FF3, I can see no difference in memory usage.

    For example, right now FF is using 300MB resident, Opera is using 100MB. Flashblock is installed on both browsers. Granted, that's not a terribly good test considering we've been browsing to different sites, but I've found that those numbers are fairly stable. FF usually levels off in the 300-500MB range, and Opera in the 100-150 range.

    YMMV.

    --
    It's always a long day... 86400 doesn't fit into a short.
    1. Re:This doesn't mesh with my experience by diegocgteleline.es · · Score: 4, Informative

      64-bit firefox eats a LOT more of memory. The windows versions are 32-bit only.

  18. Re:you do know what "contrived" means right? by toleraen · · Score: 4, Informative

    Tests need to be repeatable, and when they are repeated they need to provide consistent results. If you can't provide consistent results on each subsequent test, you need to provide solid rational on why the results were outside your margin of error. Saying "Oh, I might have had one or two youtube videos up at the time" is not solid rational.

    Scripts that visit the exact same pages, for the exact same time, do the exact same things across all browsers provide consistent, quantifiable results. Since everyone's browsing behavior is different no script will ever provide "accurate" results for real world usage. But then again, those scripts could be closer to my real world usage than this guys anecdotal test. Get it?

  19. Re:Yah, but how reliable? by rrkap · · Score: 4, Informative

    I haven't had Firefox 3 crash for me yet (although I've only been using it since Download Day). I have noticed that it no longer gets hung up processing javascript the way Firefox 2 often did.

    --
    I like my beverages with warning labels!
  20. Re:Yah, but how reliable? by Tweenk · · Score: 5, Insightful

    This is most likely related to the Flash plugin. The second suspect would be the Java plugin. For me Firefox never crashed on a website without Flash and Java, but I had a few crashes due to Flash bugs.

    --
    Those who would give up liberty to obtain working drivers, deserve neither liberty nor working drivers.
  21. Irrelevant... by at_slashdot · · Score: 3, Informative

    That's pretty much irrelevant to me, I switched back to Opera because of performance issues.

    Memory != performance.

    For example, when I open a new tab in opera the CPU doesn't register almost any change, when I open a tab in Firefox it goes almost to 100% (that's in Linux, with many extensions added, and BTW, I need those extensions to duplicate Opera's features)

    --
    "It is our choices, Harry, that show what we truly are, far more than our abilities." -- Prof. Dumbledore
    1. Re:Irrelevant... by treat · · Score: 3, Insightful

      On my Fedora Core 7 system, with a 2.5ghz CPU, running "vmstat 1" causes the X server to use 5% CPU. (It is an nvidia graphics card, but I don't use their binary-only driver).

      Typing in this firefox-2 text window gives a CPU usage of about 30%.

      Opening a new tab causes 60% CPU utilization for 2 seconds.

      I think it's time to give up on Linux on the desktop.

      Vigorous mouse movement causes about 35% CPU utilization.

    2. Re:Irrelevant... by Grey+Ninja · · Score: 4, Informative

      That sounds like all your rendering is being done on the CPU to me. Windows will do the same thing if you refuse to use Nvidia's binary only Windows driver.

      That being said, I have similar problems on my laptop, where scrolling a window often will peg my CPU. In my case, I have an older Intel integrated chip, which does a lot of 3D rendering on the CPU. Since the advent of AIGLX, it makes some rendering on my laptop fairly slow. At least, I THINK that's what's going on there. It's never really bothered me enough to look into it in-depth.

  22. Re:Lools IIS can't hold its own by Zero__Kelvin · · Score: 4, Funny

    "The term "slashdotted" has become ubiquitous with smashing a webserver due to high traffic.
    Most webservers are *nix based (though admittedly IIS is gaining ground)."
    So what you are trying to say is that Slashdotting is becoming more and more popular?
    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  23. Definitely important by XanC · · Score: 4, Informative

    In the case of Firefox, memory usage has ranged from 25MB to $MEMORY_AVAILABLE. Which sucks no matter how much you have.

  24. What cap? by clarkn0va · · Score: 4, Informative

    Setting a cap on memory usage isn't a good solution, IMHO -- using well-designed memory handling that proactively frees memory seems to me to be a far better solution than a cap and garbage collection model. I haven't seen any mention of a cap, even if that's a natural conclusion based on the flat line that one can observe in the graphs.

    If you check this fairly lengthy explanation of how memory usage was improved in FF3 you'll see that it is mostly attributed to reduced fragmentation and leaks, and smarting caching, just as you are advocating.

    db

    --
    I am literally 3000 tokens away from the chaotic crossbow --Stephen
  25. Re:Careful... by Vectronic · · Score: 2, Informative

    Some, but I'm not one of them, my Opera (9.51 on XP SP3) has been running for a few days now (almost 4), with a peak of 157MB, currently at 96MB, VM of 114MB, and an I/O of almost 12GB's... opening up every site on my SpeedDial (9 sites + this one) brought me up to 122MB, VM of 140MB...

    But, I honestly don't care how much it uses, because so far it hasn't impacted (noticeably) on any other software, and always starts (launches, or maximizes) instantly, and I prefer Opera's interface. And how much memory it uses isn't enough to make me prefer one browser over another... CPU usage on the other hand, might, but most of them are pretty much the same in that regard.

    And after closing all those tabs, its down to 92MB, VM 110MB, peak the same.

  26. Re:...contrived benchmarks. by billcopc · · Score: 5, Funny

    <keynote style="Steve">
    Safari on OS XI is going to be 400% faster. It's going to look 700% rounder, and integrate seamlessly with your ego. It will make you 1500% more smug, no matter how smug you were before.

    Firefox ? Not smug.
    IE8 ? *chuckles* next slide.
    Opera ? They still have square corners, what does that tell you about their priorities ?

    It's so awesome we had to give it a new name: Snow Safari.
    (*applause*)
    </keynote>

    --
    -Billco, Fnarg.com
  27. More info would be cool by labmonkey09 · · Score: 2, Interesting

    I'd like to see this same test measured over performance (mem over load time) - that would tell us something interesting. The working set numbers are somewhat arbitrary, that is the allocation scheme they may have been "optimized" by the dev team in some way. The fact Safari isn't capping it's own usable makes me want to see why that is.

    --
    /LabMonkey09
  28. Re:Careful... by Ilgaz · · Score: 4, Funny

    ' They're trying to charge money ofr something everyone else gives away for free, and with the latest browsers they're running out of legitimate advantages to boast."

    Please change that template, it is 2008 already.

  29. Re:Does it still have the Awesomebar? It does? by MrFlannel · · Score: 2, Informative

    On the off chance you're not just trolling...

    Instructions are here:
    http://www.kennycarlile.net/2008/06/17/disable-firefox-3-awesomebar/

    Took me all of 10 seconds with google: "Firefox3 Awesomebar disable". So... I guess you'll enjoy firefox 3 with the smaller memory footprint (assuming TFM is correct).

    --
    Clones are people two.
  30. Re:you do know what "contrived" means right? by bunratty · · Score: 4, Informative
    You mean like these consistently reproducible results?

    Firefox 3 used less memory than Firefox 2, Internet Explorer, and Opera, and it also freed more memory than the other browsers when pages were closed... The results of this experiment, which others have been able to consistently reproduce using the same tools, represent a big victory for Firefox, which has previously faced widespread criticism for its high memory consumption.
    --
    What a fool believes, he sees, no wise man has the power to reason away.
  31. The application doesn't allocate memory, though by Gazzonyx · · Score: 3, Interesting

    Well, your OS allocates that memory. In the case of Windows, if you hit 40 MB once, it very well may leave that much dedicated to FF, even if it's only using 25 MB internally. So, you have dedicated, unused RAM.

    I think on Linux, how fast it will put allocated and unused RAM back to the pool will depend on the vfs_cache_pressure, but I'm not sure about that, as that reclaims inodes from cache to make room for the buffers. VM management always confused me.

    --

    If I mod you up, it doesn't necessarily mean I agree with what you've said, sorry.

  32. Re:you do know what "contrived" means right? by toleraen · · Score: 3, Insightful

    Yup, just like those. I'm not disputing the claims that FF3 uses less memory (been using it since alpha 3). I just do a lot of software testing at work, and I thought I'd bring out my inner pedant in relation to this supposed "test".

  33. Contrived benchmarks? Try AMD... by mangu · · Score: 2, Funny

    Firefox running on an AMD processor uses "2200+" Mb of memory, which actually means about 100 Mb in an Intel processor

  34. Mirror with graphics. by antdude · · Score: 2, Informative
    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  35. Firefox 2 vs Firefox 3 graph by Sits · · Score: 2, Informative

    Look at this article talking about memory usage in Firefox 3 by mozilla dev Parlov. There is a graph there that suggests Firefox 2 uses around 80Mbytes more memory than Firefox 3 over time.

  36. Re:Yah, but how reliable? by Onyma · · Score: 2, Informative

    If an aftermarket upgrade part on your car causes the engine to blow up do you blame the original manufacturer of the car? It's not feasible to expect a framework to catch every possible problem that could arise from a poor implementation of that framework. You'd like to catch most of them but there will always be someone or something that can fubar it in ways you never imagined.

    --
    Play me online? Well you know that I'll beat you. If I ever meet you I'll "/sbin/shutdown -h now" you. -Weird Al, kinda.
  37. RSS is a tricky metric for memory usage by Sits · · Score: 2, Informative

    Memory that is being shared between processes (e.g. through the use of libraries) is actually counted towards the RSS so something that is sharing a lot of pieces with another process may appear artificially high.

  38. Re:Yah, but how reliable? by Awptimus+Prime · · Score: 2, Insightful

    (why would anybody install that piece of crap is beyond me) Well, there is a lot of content on the web which requires flash, regardless of whether we wish to be elitist about what we do with the web, or not.

    I, personally, wish flash development under Linux was remotely on par with the Windows offering. This has been one of the things holding the "old folks" in my family and down the street from running something nice on their PC like Ubuntu instead of Windows. An amazing number of them have Bongo premium accounts (and the like) and after setting one person up, then having to nuke Ubuntu for Windows because 90% of their flash-based games would no longer work, made me think something more needs to be done in this area instead of just ignoring it. Sadly, it's closed source and the open source options don't suit their needs. It's unfortunate, as if this one hitch were removed, I could think of five people I could get running Linux by next week. As it stands, I'm still waiting indefinitely to save them from Vista.

    I'm not a coder, I'm an electronics/hardware/telco/admin/networking guy so I am pulling this out of my butt, but would it be worth investing in getting the Windows version of flash to run under Linux somehow?

  39. Re:keep laughing by just_another_sean · · Score: 3, Insightful

    You mean Debian. Or Debian Lenny. No need to use "GNU/Linux" at all.

    And laugh all you want, but your characterization of this as an "uptime" issue is incorrect to say the least.

    I am as disgusted by twitter as the next /. user but what's wrong with GNU/Linux? That's what Debian calls their distro.

    I don't insist that every distro add GNU to their name; that's up to them. But Debian chooses to so at least in their case could we maybe lose the "RMS is teh zealot!!" jokes?

    Debian is a great dsitro for promoting Free software and I am pretty sure they made the choice to keep GNU in the name on priniciple. I respect them for it and it's a major reason why Debian remains my distro of choice.

    --
    Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
  40. Re:that's insighful? by Anonymous Coward · · Score: 2, Insightful

    Why the fuck should we care that you hate twitter?

  41. Not on OSX by thejuggler · · Score: 2, Interesting

    They may have the Windows version memory under control, but the OSX (Leopard) version of FF 3.0 is still a PIG. Just starting up FF with 6 tabs (1 is Slashdot) and the memory usage is over 160Mb and virtual memory used is over 900Mb.

    And did they have to make the OSX skin so darn ugly?

  42. Re:Hi twitter by Crazyswedishguy · · Score: 3, Interesting

    He does raise an interesting question (and I'm in no way bashing Vista):
    how do browsers compare on Mac OSX? Does Safari compare similarly to Firefox 3 on Mac OS X?
    I wouldn't be surprised if Safari performs better on OS X than on Vista because Apple has put more time into developing the Mac version...
    Similarly, I wouldn't be surprised if Firefox is optimized for the larger Windows market. I know that back in the day, on the old PPC macs, Firefox was pretty slow, which was a good reason to use Safari.

    --
    This space up for sale.
  43. Except on Linux by DrYak · · Score: 5, Informative

    It would be a stupid design to leave lots of RAM free, and reload stuff over the net. Well, it depends on your OS.
    Linux automatically uses all free memory for disk cache, and is very efficient at it. Instead of hogging memory that could be used by other process, Firefox could exclusively rely on a disk cache and rely on Linux' native and performant disk-cache to handle the in-memory caching of those files.
    The best part of this is, if some other process needs the memory, Linux will simply free some memory from the cache, but the files will still be ready on the disk and the over application will still be performing well. Whereas if a 120Meg space is enforced a in-RAM cache, when memory becomes scarce, the system is at risk of paging out piece of the software (pages of code itself instead of pages holding cache) and thus make the whole system less responsive.

    The GC is just for JavaScript (required by design) and for DOM nodes which end up being circularly referenced (which is unavoidable). You would only need to keep the DOM nodes of the current page. Past pages are freed and don't (usually) keep DOM objects alive.

    Finally, 120MB is not a lot of RAM. Well, it depends. Notice that Linux is also very often used on kiosk with limited features and on old hardware which may not have huge amounts of resources.

    Being able to run within a small memory space is critical for linux. Otherways, there won't be any difference with Vista.

    Also a lot of problems are comming from bad Add-ons or even half-assed Browser Plugins. Flash is such a pain in the ass that can momentanily freeze the whole browser session.

    Disclaimer : I run Firefox on Linux with in-memory cache disabled and using Gnash plugins instead of Flash (runs in separate process and can have autostart disabled). Adblock+ and Noscript also help avoiding that my browser loads tons of useless shit. And until recently my main desktop was a Pentium-III with 440BX chipset (a machine on which 1GiB of RAM is a rare occurence), but I didn't get any major problem even on recent distros. (Vista on the other hand had to wait)

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Except on Linux by 4e617474 · · Score: 2, Insightful

      Being able to run within a small memory space is critical for linux. Otherways, there won't be any difference with Vista.

      No, actually, getting as much out of the RAM you've put in your machine as you're supposed to is just the icing on the cake. Having a web browser, photo editor, 3d modeler, and 3d MMORPG open at the same time was pretty cool. Pulling it off with one measly gig was frickin' sweet, but if it had taken a gig and a half, or even two gigs, I'd still be a long way from a Vista convert. (Has anyone sighted a Vista convert?)

      There are a million reasons Linux will give you a cleaner, more efficient system. You did describe some of them very well, but let's not lose our heads here. Give me a machine for free with a terabyte of RAM and as many quad cores as you can squeeze in it, and I'll still want a platform I can tweak to my liking, one that doesn't constantly come up with ways to nag me, reach in my wallet, or imply I'm a criminal, and one that's just generally built to put me in the driver's seat of my own computer.

      --
      Finally modding someone offtopic when they rant about what "Begging the Question" means: priceless.
    2. Re:Except on Linux by packman · · Score: 4, Interesting

      I can't say that what you're saying is very 'informative', sorry. While linux indeed uses free memory to cache files, browsers do not cache 'files' in memory, they cache fully preprocessed DOM-trees and pre-rendered parts of webpages. Disabling in-memory caching only hurts performance there, forcing the browser to reprocess and revalidate all your pages. The only reason your browser uses the disk is because it's faster than your network connection and saves speed between browser-sessions or when visiting a page which has been cleaned up from your browser's own memory cache. Disk I/O - even with loads of OS-level caching will always be slower than letting the application just keep stuff in memory.

      Most of your browser's in-memory cache is pre-processed data, including the last X entries accessible with your back-button - and that for each tab - are cached. This means images, DOM-tree, CSS-styles and sometimes even pre-rendered parts of the page.

      I really hope you don't believe the disk io is the limit here. Parsing, validating and rendering takes up a good part of the responsiveness - even on modern PC's with fast quad-core cpu's. It's not only the CPU's that are advancing in speed, also webstandards require more & more processing power.

      Also with todays machines with 1GB+ RAM - I don't really see the problem of memory useage. I have 4GB at home - and the moment my linux uses even only 25% of that for disk caching, it will have very old stuff in that disk-cache of which a lot would probably never be used again. I'd rather have my browser use 2Gb and feel extremely snappy, than have it use less memory just to preserve memory.

  44. Re:How long has 256 MB been standard? by flappinbooger · · Score: 3, Funny

    Or, the other user is the botnet admin who 0wnz his box.

    --
    Flappinbooger isn't my real name
  45. Re:-5 (Outdated) by Ilgaz · · Score: 3, Interesting

    On fairly modern Nokia E65 with Apple Webkit based free "Nokia browser", I did total 1 hour browsing. That is heading to Opera.com for whatever they offer for my OS (it took that much to reach the right download page) and later bought it with Opera Mobile client itself.
    Thank God Opera Mobile exists as a choice. That is their 2 years old 8.65 code I bought. It is AGES ahead of anything on that smart phone.
    If they charge for their marvellous work, a browser which uses less memory than 8 MB on my S60 device that will , hell it is $20!
    That 2 years old code picks the right css from my web pages (all w3c compliant) and shows them like I have setup a special WAP site for phones.
    Now waiting for their 9.5 achilles heel.
    What bothers me is, they get 5-7 million downloads without advertisement (9.5 Desktop), they help hundreds of millions of possible devices doesn't even have a good WAP browser to access the web, they strictly support standards, they never sold out to MS (imagine Opera quality IE only exists on Win Mobile), they even support Windows 98 and they get THAT comment as return.

  46. Re:Does it still have the Awesomebar? It does? by LargeMythicalReptile · · Score: 3, Insightful

    Parent is not informative.

    Took me all of 10 seconds with google: "Firefox3 Awesomebar disable". And yet, that page is absolutely not what the GP was asking for.

    To quote:

    Some things are more important than resource conservation, such as not screwing the user by needlessly taking away functionality and telling them "you'll get over it".

    I'd gladly have Firefox 3 with the same footprint as Firefox 2 if that's the price to pay for keeping the old address bar autocomplete functionality in the code.

    gumpish--and I, and a lot of people as far as I can tell--want the "classic" (read: FF2) location bar behavior. There is currently no way to get that in FF3. There used to be an about:config setting for it in some of the betas, but they took it out and told those people who liked the old functionality to shut up and deal.

    The about:config tweaks on the page you linked to will disable the location bar dropdown entirely (heck, it even says as much in the edit--did you even read the page you linked?).

    A sibling post suggests the oldbar extension, but that only changes the appearance of the bar and not the behavior.

    As I said, there is currently no way to get this functionality in FF3. The closest thing is this extension, but that's not perfect. Really, this bug needs to be fixed.

  47. Can you imagine... by Foerstner · · Score: 3, Insightful

    ...what it would be like if Apple came up with a benchmark for web browsers? They'd do some kind of splashy announcement. Geeks would question its relevance in the real world. Soon they'd do some new tests and proclaim that the competition now performs better on those same tests anyway. Eventually, the rabid Apple phanbois will claim that the next release will bury the competition.

    Apple. So predictable.

    --
    The US free market: two halves of a government-granted duopoly are free to set the market price.
  48. Re:How long has 256 MB been standard? by tepples · · Score: 2, Informative

    Windows XP has a "switch user" feature When you press switch user and then walk away from the PC, your copy of Firefox gets swapped out and hers gets swapped in. But then I guess Firefox should be flushing the memory cache to disk when switched out.
  49. Re:IIS You by coolsnowmen · · Score: 2, Interesting

    While it is slightly diffferent:
        I was an academic researcher working for a large engineering firm where the top level work is classified and they don't want anyone connecting the dots with what you are publishing and the work they are actually trying to do. So while I was free to publish my research, I was not allowed to attached the name of the Company to any of the papers.

  50. Wasn't part of the unix philosophy by JohnsonWax · · Score: 2, Insightful

    that unused resources are wasted resources? If Safari has enough RAM to cache everything, why shouldn't it? Now, run the same test with 512MB RAM and see if memory consumption does the same thing.

    That's really what I want to know - not how much it uses, but how willing the browser is to give it back when other processes need it. That'd be useful.

  51. Re:Hi twitter by gilgoomesh · · Score: 3, Informative

    I've been running Safari 3.1.1 all day (about 6 hours non-stop with 462 pages in history) and it's currently using 230.9MB RAM (fairly steady).

    Opening up FF3 to check, loading 52 pages then closing down one again... 129.18MB.

    Not a totally fair comparison but it's some numbers, nonetheless.

  52. Re:Does it still have the Awesomebar? It does? by MrNemesis · · Score: 2, Informative

    Damnit, can't use mod points in this thread now.

    The way I've found to restore sane address-bar behaviour was to do the following:
    Install the oldbar extension
    about:config browser.urlbar.matchOnlyTyped boolean set to true.

    Bingo! No more hyper-annoying address bar.

    --
    Moderation Total: -1 Troll, +3 Goat