Short topics in memory management
Posted Mar 7, 2007 13:35 UTC (Wed) by dion
In reply to: Short topics in memory management
Parent article: Short topics in memory management
I think you might be right.
Firefox probably thinks we are living in 1970 when there wasn't anything called virtual memory, so it allocates gobs of RAM for caches and does explicit file io.
A much better way would be to have just one cache in one huge memory mapped file, that way there is never any explicit io and the kernel is free to write stuff out to disk whenever it needs to.
It would make a persistent cache a bit tricky, you could never do anything with the cached files using normal tools and crashing would be interesting, though.
Someone working on firefox should take a peek at Varnish, which is incredibly fast because it lets the kernel do all the hard memory/io work.
to post comments)