<div dir="ltr">I just got serious about using ZFS on FreeBSD over the last few weeks. I got to thinking, why incur the overhead of a filesystem to the Varnish cache file? I figured I'd try an experiment on my desktop, and created a ZFS volume for the cache file. Then I set varnishd_storage (/etc/rc.conf) to "file,/dev/zvol/tank/varnish-cache,8G". But when I tried to start Varnish, I got the error: "/dev/zvol/tank/varnish-cache" is neither file nor directory. Searching, I found some easy code about it in <a href="https://www.varnish-cache.org/trac/browser/bin/varnishd/storage/stevedore_utils.c">storage/stevedore_utils.c</a>, and naturally the error check makes sense.<div>

<br></div><div>What do you guys think? Am I wasting my time, or is it worth the effort to avoid some filesystem overhead for cache IO? I thought that perhaps allowing the storage to be a raw block device might also be useful for some people (maybe my future self) who want to put it on a dedicated SSD.<div>

<br></div><div style>Thoughts?</div><div style><br></div><div>- Leif<br><div><div><br></div>-- <br>







<p>As implied by email protocols, the information in this message is not confidential.  Any middle-man or recipient may inspect, modify, copy, forward, reply to, delete, or filter email for any purpose unless said parties are otherwise obligated.  As the sender, I acknowledge that I have a lower expectation of the control and privacy of this message than I would a post-card.  Further, nothing in this message is legally binding without cryptographic evidence of its integrity.</p>


<p><a href="http://bilbo.hobbiton.org/wiki/Eat_My_Sig" target="_blank">http://bilbo.hobbiton.org/wiki/Eat_My_Sig</a></p>
</div></div></div></div>