News for hackers. Stuff that matters.
Re:Why not mmap? by forkqueue on Thursday May 19, 2011 @02:06AM (#2563046)
mmap is how the Varnish web cache works - the cache files is mmaped in, and the kernel does the rest.

Given the awesome performance of Varnish, I am surprised more applications haven't taken this approach.

Re:Why not mmap? by aaronblohowiak on Thursday May 19, 2011 @04:21AM (#2563266)
Varnish is good because the size of a web page fits nicely with the size of memory pages... if you have very many small objects, you'll have to get a bit more clever about how you place them.
Re:Why not mmap? by syncopate on Thursday May 19, 2011 @05:22AM (#2563377)
For what it's worth, I've written several projects that entirely rely on mmap()ed memory:

Localmemcache (key-value database): http://localmemcache.rubyforge.org/

clispy (Port of PNorvig's lispy to C): https://github.com/sck/clispy