On Tue, Apr 19, 2011 at 9:34 AM, Yang Zhang <span dir="ltr"><<a href="mailto:yanghatespam@gmail.com">yanghatespam@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Tue, Apr 19, 2011 at 12:16 AM, Traian Bratucu<br>
<div class="im"><<a href="mailto:traian.bratucu@eea.europa.eu">traian.bratucu@eea.europa.eu</a>> wrote:<br>
</div><div class="im">> 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 (<a href="http://www.varnish-cache.org/docs/2.1/reference/varnishd.html" target="_blank">http://www.varnish-cache.org/docs/2.1/reference/varnishd.html</a> - Storage Types).<br>


> I am not a varnish developer, just using varnish. Perhaps one of the developers may explain more.<br>
<br>
</div>This was precisely my limited understanding as well.  I'm still<br>
curious whether -s file could be hacked to be persistent and what<br>
exactly -s persistence is.<br></blockquote><div><br></div><div>-sfile cannot be hacked into persistence. Varnish has no idea whatsoever what the file contains. It just writes to memory and the kernel takes care of the rest. It's the best way to allocate truly virtual memory. You can probably get a thorough explanation in a C book or something.</div>

<div><br></div><div>-spersistence is experimental and I have intensionally left the documentation blank on purpose. -spersistence hasn't got any working LRU code yet. I expect -spersistence ready in the autumn. </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br></div></blockquote></div><br>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><br>

Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div><br>