Windows memory management and firefox, what???

Discussion in 'Operating Systems' started by sram, Jul 10, 2019 at 11:31 PM.

  1. sram

    sram [H]ard|Gawd

    Messages:
    1,297
    Joined:
    Jul 30, 2007
    This is more of a rebuke than a question but I have to get it out of my chest. So I have this modern laptop ( Dell XPS 13, 2019 model) with 16 GB of RAM, which is plenty for today's standards, and you would think you will only run out of memory if and only if you run all the programs of the world. But, No....

    You go fire your Vmware workstation and run two virtual machines on it (Sometimes I run three or more, but it is two machines most of the time for my use cases), and start working while having some firefox windows open. I tend to open new windows that open new tabs in firefox, but nothing extreme. You keep working and you notice your laptop becoming little sluggish, you go into task manager and see your RAM usage spiking up ! In here, one would think it is the virtual machines eating up the RAM because they each take a chunk of your physical RAM to work. But nope, that's not the case at all. What's eating up the RAM is none other than our lovely browser firefox. That's at least according to task manager! In fact, Vmware usage of RAM is much less than firefox. You go close most of firefox windows and keep only two and firefox memory usage will drop from like 80% to 78% ! What's up really here with windows memory management??? Yes, I know that firefox is a memory hog, but to this extent? How can a browser showing me some text written in HTML take more memory than a virtualization software running instances of more that one OS each set to take 2GB of the RAM???

    I guess I will go run firefox from within one of virtual machines and see what happens?

    I'm not an expert, but seriously what is going on?
     
  2. Mazzspeed

    Mazzspeed [H]ard|Gawd

    Messages:
    1,486
    Joined:
    Dec 27, 2017
    Actually, Chrome is the memory hog, Firefox is quite lean on memory.

    You do realize that having a million tabs open uses copious amounts of memory?
     
    GotNoRice likes this.
  3. Brian_B

    Brian_B 2[H]4U

    Messages:
    2,720
    Joined:
    Mar 23, 2012
    Because your browser isn't just showing some text in a window. Almost every web page has an obscene amount of javascript, graphics, external calls, and animation running.

    For each tab.
     
    AltTabbins and Mazzspeed like this.
  4. AltTabbins

    AltTabbins [H]ard as it Gets

    Messages:
    18,823
    Joined:
    Jul 29, 2005
    I've noticed a significant improvement in web browsing performance since installing a Pi Hole on my network.
     
    Brian_B likes this.
  5. sram

    sram [H]ard|Gawd

    Messages:
    1,297
    Joined:
    Jul 30, 2007
    It just doesn't click in my brain because I remember in the late nineties when I used to browse the internet like crazy with only 128 MB of RAM. At the time 128 MB was really something. I think it was 1998 if I'm not mistaken. And it isn't like all my windows are graphics, it is mostly google queries. Assuming 8 GB is the average nowadays, I'm double that and my memory usage will still quickly spike if I open few firefox windows. I wish I can give this laptop 64 GB like my main machine...
     
    Last edited: Jul 11, 2019 at 6:27 PM
  6. sram

    sram [H]ard|Gawd

    Messages:
    1,297
    Joined:
    Jul 30, 2007
    Yeah I hear that chrome has memory segmentation between tabs. Each tab is actually another instance of the program and memory isn't shared, which is good security wise but bad for memory usage. I don't use chrome anyways. Any browser based on firefox that is decent and light weight? I remember using light moon or tale moon or something before. It was good but I left it when it started doing something wrong.
     
    AltTabbins likes this.
  7. Brian_B

    Brian_B 2[H]4U

    Messages:
    2,720
    Joined:
    Mar 23, 2012
    Modern browsers are closer to a hypervisor with sandboxed runtime environments than they are Mosiac/Netscape.
     
    Lunar likes this.
  8. Mazzspeed

    Mazzspeed [H]ard|Gawd

    Messages:
    1,486
    Joined:
    Dec 27, 2017
    Dude...The average web page is significantly more complicated than it was back in the late 90s.

    Firefox does the same now as far as I'm aware.
     
  9. SvenBent

    SvenBent 2[H]4U

    Messages:
    2,888
    Joined:
    Sep 13, 2008
    In the late 90's websites were different.


    try adding noscript to your browser