I use a simple tmpfs and work well:<div><font face="'courier new', monospace"><br></font></div><div><div><font face="'courier new', monospace"># Varnish</font></div><div><font face="'courier new', monospace">tmpfs /usr/local/var/varnish tmpfs rw,size=256M 0 0</font></div>
<br><div class="gmail_quote">2012/5/14 Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br><br><div class="gmail_quote"><div class="im">On Mon, May 14, 2012 at 9:15 AM, 姚伟斌 <span dir="ltr"><<a href="mailto:nbubingo@gmail.com" target="_blank">nbubingo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, folks,<br>
<br>
I have a question. Does the varnish often sync the shared memory file<br>
named "_.vsm" with the disk? I saw many disk IOs with varnish:<br></blockquote><div><br></div></div><div>No. But Linux does sync the shmlog to disk as Linux hasn't properly implemented the flag that keeps stuff off the disk. You can try to either move the shmlog to a memory based filesystem or tune /proc/sys/vm/*dirty* and friends. Modern Linux distros seem to prefer syncing stuff to disk very aggresivly. </div>
<span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><img><div>Per Buer, <br>Phone: <a href="tel:%2B47%2021%2098%2092%2061" value="+4721989261" target="_blank">+47 21 98 92 61</a> / Mobile: <a href="tel:%2B47%20958%2039%20117" value="+4795839117" target="_blank">+47 958 39 117</a> / 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></div><br>
</font></span><br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div>