Hacker News new | ask | show | jobs
by bakhlawa 5332 days ago
Have the memory issues been resolved? Under Windows 7, it isn't uncommon to find an idle Firefox browser with a few low-activity tabs using up more than 1.5GB of memory. It's gotten to a stage where I have to restart the browser every couple of days...reminds me of when I had to this with my Windows PC! I've recently moved over the Chrome and while I miss Firefox, the browser is far less of a memory hog.
1 comments

Why does it bother you that an application is using so much RAM? Do you only have 2 GB or something like that? I'd prefer that applications used my RAM since unused RAM is just wasted electricity.

I find it strange that people still think of RAM as a precious resource that needs to be conserved and under-utilised. I'd rather have it used than have to fetch something from disk or the network.

> I'd prefer that applications used my RAM since unused RAM is just wasted electricity.

I... but... er...

This is probably the most ridiculous thing I've ever seen on this site.

You could write a two line C program that allocates all the memory on your system and then sits in a loop doing nothing, but then you'd be wasting even more electricity because your hdd would be reading/writing to your swap space. :|

> I'd rather have it used than have to fetch something from disk or the network.

Modern operating systems do use your free memory for cache. Linux will regularly chill at 90%+ memory usage (the majority being cache that can be freed instantly when other apps need it) and Windows has SuperFetch which does basically the same thing as I understand.

Yes, you could write such a program.

Yes modern OSes do use non-Application RAM for caching, mostly files and other small buffers. While Firefox is probably doing a lot of caching for web content, something that modern OSes don't yet do. Hence I have no qualms about it using over a gig of RAM.

I guess my comment was read more angrily than I meant it to sound. What I mean is let applications use as much RAM as they need and be done with it.

Some of us actually use our RAM for other things...
If I have 6GB of RAM and feel like e.g. editing a bunch of very large photos or videos without closing my browser, it's annoying to have that browser using 25% of RAM.
Is it actually using 25% of physical RAM, or just (25% of 6GB) of Virtual Address space (well actually 4GB address space for 32 bit applications/browsers).

Then again do you actually notice a slow down when you try to edit those photos? Have you run benchmarks to see if it's really a problem with RAM usage or if it's some Flash or other plugin that's gobbling up your CPU, hence the slow down.

Does that really matter so much, since if you actually need to use that Physical ram for your editing task the OS should page out physical memory from the browser and other unused applications and make it available for your needs.

It was a hypothetical scenario based on a combination of past experiences. Right now Firefox shows 464M resident (RES column in top) with five tabs open (wait, it's growing, now it's 480M, 486...). After a couple of hours it will be close to 1GB resident.

I've been working on large images in Gimp and Hugin/panotools in the past, and reached a point where swap was being used. The system immediately slowed to an unusable crawl with only a few % of swap in use. Considering that rotating hard drives have a random access throughput of a few MB/s, it's not surprising. These days a swap partition's only use is hibernating. Swap is effectively useless.

One webapp I'm working on triggered a bug in older versions of Chrome that caused it to grow rapidly in size, quickly consuming all of memory. Fortunately that was fixed.

So basically, I'd like to have another GB of image data in RAM before hitting swap (or whatever it is I'm working on), while still having my browser responsive.

I've had Firefox (versions 3 onwards) running for weeks at a time and only ever had it using between 400-500MB of RAM.

Another thing to check would be what kind of ad ons you had installed, since I would imagine that they could have quite a significant impact on memory usage and performance.