This article should be required reading for anyone building programs with massive memory consumption!
To give some context, this describes how Varnish combines mmapping with a nice memory partitioning scheme to get free caching from the OS, instead of fighting the OS' tendency to cache and managing it yourself.
Comments
More context on why Varnish is superior to Squid: http://varnish-cache.org/wiki/ArchitectNotes
This article should be required reading for anyone building programs with massive memory consumption!
To give some context, this describes how Varnish combines mmapping with a nice memory partitioning scheme to get free caching from the OS, instead of fighting the OS' tendency to cache and managing it yourself.
Varnish = reverse proxy Squid = forwarding proxy
Squid can also be used as a reverse proxy, so it is a reasonable competitor to Varnish. (As is Apache mod_proxy.)