Boris Zbarsky | 11 May 2011 07:27
Picon
Favicon

Re: Firefox fat on Javascript?

On 5/10/11 11:59 PM, mfwitten <at> gmail.com wrote:
> Guys, what is going on here?

So to sum up:

1)  Your main browsing account takes 143MB of RAM.  That seems ok, 
depending on what you have loaded, what sort of build this is, etc.

2)  Your browser with gmail loaded uses 248MB.  That may be right 
depending on what you've done with gmail in the past.  Note that gmail 
has a known memory leak wherein the memory it takes will increase while 
the page is open.  This leak is due to the gmail scripts holding on to a 
bunch of objects and keeping them reachable so they can't be GCed.  It 
manifests in all browsers.  Google is working on rolling out a fix for this.

3) Your browser with Vimperator.  This could maybe use looking into; the 
last time I ran a debug build in this configuration it asserted like 
crazy due to all the invariants Vimperator was violating, so I wouldn't 
be too surprised if there are issues here.

> However, I think it's safe to say that what is essentially an untouched
> GUI frontend to Gmail should not register as taking up 248 MiB of my
> physical memory!

Why not?

> and neither should a couple of windows with some static
> text and pictures in them just because of a few interface tweaks
> (`Vimperator').

(Continue reading)

mfwitten | 12 May 2011 17:52
Picon

Re: Firefox fat on Javascript?

On Wed, 11 May 2011 01:27:01 -0400, Boris Zbarsky wrote:

> On 5/10/11 11:59 PM, mfwitten <at> gmail.com wrote:
>> [It seems reasonable for a browser to require at least 143 MiB of
>> physical memory.]

Maybe it is, but my intuition says otherwise; I doubt we will come
to a satisfactory conclusion in this discussion, so we'll leave it
at that.

>> Surely the Laws of the Universe do not require 2/3 of my physical memory to
>> run 3 different profiles of a goddamn web browser. Even Profile 0 seems a
>> little rotund; I mean, FFS, that little guy alone uses enough memory to hold
>> 16 fullscreen, 32-bit RGBA (that is, including alpha) dumps of my 1920x1200
>> resolution screen. WTF is Firefox doing?
>
> about:memory (especially with Nicholas Nethercote's recent changes) 
> should be able to tell you some of that.

The data from about:memory for each firefox instance follows; for reference,
here are the descriptions of the 3 instances (each of which runs a different
profile):

  Profile                     Usage
  -------                     -----
     0       Reading news (aggregators and otherwise),
             watching YouTube and other Flash video,
             making `First!' posts on slashdot, reading
             technical documentation, searching for
             everything via Google, editing Wikipedia, 
(Continue reading)


Gmane