<div dir="ltr">Hello,<div><br></div><div>Previously, caching was disabled on our proxy servers. Now we need to cache some content (files about 10 MB in size).</div><div>So we changed the squid.conf:</div><div><br></div><div><font face="monospace">#Disable caching</font></div><div><font face="monospace">#cache deny all<br>#no_cache deny all <br>#cache_mem 0<br><br>cache_dir ufs /data/squid/cache 32000 16 256 max-size=12000000</font><br></div><div><br></div><div>We have 24 workers on each proxy.</div><div><br></div><div>We saw that some requests were taken from the cache, and some were not.</div><div>The documentation says: <br></div><div>"<span style="color:rgb(30,30,30);font-family:courier;font-size:12px">In SMP configurations, cache_dir must not precede the workers option </span><span style="color:rgb(30,30,30);font-family:courier;font-size:12px">and should use configuration macros or conditionals to give each </span><span style="color:rgb(30,30,30);font-family:courier;font-size:12px">worker interested in disk caching a dedicated cache directory.</span>"</div><div><br></div><div>I found Amos' comment that "rock <span style="color:rgb(0,0,0);white-space:pre-wrap">cache type *is* SMP-aware" (</span><a href="http://lists.squid-cache.org/pipermail/squid-users/2018-October/019410.html">http://lists.squid-cache.org/pipermail/squid-users/2018-October/019410.html</a>)</div><div>So we switched to a rock cache_dir:</div><div><font face="monospace">cache_dir rock /data/squid/cache 32000 max-size=12000000</font><br></div><div><br></div><div>Now everything seems to be working fine in the test environment, but I found limitations on the RockStore (<a href="https://wiki.squid-cache.org/Features/RockStore">https://wiki.squid-cache.org/Features/RockStore</a>):<br></div><div><span style="background-color:rgb(242,242,242);color:rgb(55,55,55);font-family:"Myriad Pro",Calibri,Helvetica,Arial,sans-serif;font-size:16px">"Objects larger than 32,000 bytes cannot be cached when cache_dirs are shared among workers."</span><br></div><div><br></div><div>Does this mean that RockStore is not suitable for caching large files?<br></div><div>Should I switch back to the UFS and configure 24 cache_dirs (this will lead to a significant consumption of disk space)?</div><div><br></div><div>Kind regards,</div><div>      Ankor</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>