Understanding persistent storage

Yang Zhang yanghatespam at gmail.com
Tue Apr 19 09:34:12 CEST 2011

On Tue, Apr 19, 2011 at 12:16 AM, Traian Bratucu
<traian.bratucu at eea.europa.eu> wrote:
> 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.

This was precisely my limited understanding as well.  I'm still
curious whether -s file could be hacked to be persistent and what
exactly -s persistence is.

> 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/
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Yang Zhang

More information about the varnish-misc mailing list