Firefox disk/RAM trickery (can't find a software section)
I also tested that page till my FF was using ~3Gb of ram. Switched tab and usage dropped to around 600Mb switched back and RAM usage instantly went back to ~3Gb without any lag to the opened tab. For testing purpose at the same time I was monitoring disk I/O and I can say that FF doesn't write anything to disc to reduce RAM usage. My only explanation is that FF uses some internal data compression to reduce RAM usage.
Thanks! your post made me look a bit further into both taskmanager the firefox about:config file. The first thing I noticed is that whe you switch to an image heavy tab, not only the ram climbs before switching, but your CPU usage as well. This would indeed indicate some sort of calculation being done. Yet, when you switch back to a light tab, your CPU has less work, so I didn't think firefox was actually compressing data (would be waaaay slower than how it was happening now).
After going through everything having to do with chache, memory, disk and the likes, I stumbled upon a few settings to do with rendering of images. If you search for 'image.mem', you get a list with all the stuff related to memory usage by images. If you set image.mem.discardable to false, firefox will keep image renders in ram even if you are not looking at the tab. This fixed the problem.
So it turns out that firefox keeps all actual data in ram, but not the rendered pages, thus re-rendering every tab once you switch to it. Now that I have that turned of, my tab transitions are instant and firefox uses 2.4GB with 18 tabs+PTLLT. Without the PTLLLT tab I'm down to less than 400 MB :p In other words: nothing.
Happy now. Thanks again!
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now