Understanding persistent storage

Traian Bratucu traian.bratucu at eea.europa.eu
Tue Apr 19 09:16:14 CEST 2011


Well, varnish documentation tends to kind of suck. The "-s file" does not mean persistent storage, but simply that the file will be mmapped, so even if you have 2Gb of RAM, you can use a mmapped file of 10Gb. There is a new "-s persistence" which is documented for now as "new, shiny, better", you can make whatever you want out of that (http://www.varnish-cache.org/docs/2.1/reference/varnishd.html - Storage Types).
I am not a varnish developer, just using varnish. Perhaps one of the developers may explain more.

Traian

-----Original Message-----
From: Yang Zhang [mailto:yanghatespam at gmail.com] 
Sent: Tuesday, April 19, 2011 9:08 AM
To: Traian Bratucu
Cc: varnish-misc at varnish-cache.org
Subject: Re: Understanding persistent storage

Thanks.  Out of curiosity, the file stevedore is documented with:
"file: mmap's a file and uses it for storage" - why can't this be made persistent?  And what's the difference from -s persistent?
--
Yang Zhang
http://yz.mit.edu/




More information about the varnish-misc mailing list