5 ms·
Remarkable: "No we don't free chunks right away (except with the new SHRINK GC call). They survive 3 GCs because of allocation heavy workloads. Freeing and allo
by fomojola 15y ago
Remarkable: "No we don't free chunks right away (except with the new SHRINK GC call). They survive 3 GCs because of allocation heavy workloads. Freeing and allocating right away hurts benchmark performance (bug 541140)."
So they're basically saying one of the reasons a copy of Firefox with no open tabs is currently consuming 1GB of my computer's memory is because they didn't want to suck on benchmarks. Is there a flag I can set to tell the damn browser "I AM A REAL USER AND NOT A BENCHMARK, PLEASE DON'T SIT ON 1GB OF MEMORY, FREE IT IMMEDIATELY"?
- nnethercote 15y agoIn FF6 (available right now on the Aurora channel and in the next few days on the Beta channel) and later versions you can go to about:memory and click on the "minimize memory usage" button at the bottom. Maybe do it a couple of times for luck. We're working on improving things. See https://bugzilla.mozilla.org/show_bug.cgi?id=656120 https://bugzilla.mozilla.org/show_bug.cgi?id=656120 for another big improvement that will go into FF7.
- jrockway 15y agoI have 6G of core and 4G of swap. If using more memory makes browsing faster, I'm all for it. Memory is cheap. CPU time is expensive. For reference: 24G of DDR3 costs about $220 these days.
- rwg 15y agoAll of the physical RAM in the world doesn't mean a damned thing if you're a Win32 process limited to 2 GiB of user address space. Heap fragmentation is a very real problem there.
- JoshTriplett 15y agoSo don't run win32. :) We've had 64-bit processors for a while now, run a 64-bit OS and you have all the address space you might want.
- mixmastamyk 15y agoDoesnt matter how much youve got if usage continues to grow unchecked.
- perlgeek 15y agoOn machines where I have at least 4G of ram, I configure them to not use any swap space at all. If a process needs (or pretends to need) that much memory, the swapping will just kill the performance, and the machine gets unresponsive. I rather have the OOM killer do its job, have a few processes dying and be able to continue using the machine.
- Confusion 15y agoI think you're jumping the gun. He may be talking about benchmarks that represent the user experience. In which case he's guilty at most for using 'benchmark performance' instead of 'user experience'.
- rat 15y agoMy guess is that it isn't just because of benchmarks running a gc takes time, running it all at once can be faster then running it multiple times. Getting the right balance can be hard.
- anygregor 15y agoWell that's definitely not only for benchmarks. Whenever you have animations that use JS you will benefit from this approach.