<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<p class="default-style">I'm using squid 4.17 and noticed in cache.log this warning:<br><br>WARNING: disk-cache maximum object size is too large for mem-cache: 4096.00 KB > 512.00 KB<br><br>but if I'm not wrong those are the default values of:<br><br><br><span class="hljs-attr">NAME:</span> <span class="hljs-string">maximum_object_size<br></span><span class="hljs-attr">COMMENT:</span> <span class="hljs-string">(bytes)<br></span><span class="hljs-attr">TYPE:</span> <span class="hljs-string">b_int64_t<br></span><span class="hljs-attr">DEFAULT:</span> <span class="hljs-number">4</span> <span class="hljs-string">MB<br></span><span class="hljs-attr">LOC:</span> <span class="hljs-string">Config.Store.maxObjectSize<br></span><span class="hljs-string">DOC_START</span> <span class="hljs-string">Set</span> <span class="hljs-string">the</span> <span class="hljs-string">default</span> <span class="hljs-string">value</span> <span class="hljs-string">for</span> <span class="hljs-string">max-size</span> <span class="hljs-string">parameter</span> <span class="hljs-string">on</span> <span class="hljs-string">any</span> <span class="hljs-string">cache_dir.</span> <span class="hljs-string">The</span> <span class="hljs-string">value</span> <span class="hljs-string">is</span> <span class="hljs-string">specified</span> <span class="hljs-string">in</span> <span class="hljs-string">bytes,</span> <span class="hljs-string">and</span> <span class="hljs-string">the</span> <span class="hljs-string">default</span> <span class="hljs-string">is</span> <span class="hljs-number">4</span> <span class="hljs-string">MB.<br><br></span>and <br><br><span class="hljs-attr">NAME:</span> <span class="hljs-string">maximum_object_size_in_memory<br></span><span class="hljs-attr">COMMENT:</span> <span class="hljs-string">(bytes)<br></span><span class="hljs-attr">TYPE:</span> <span class="hljs-string">b_size_t<br></span><span class="hljs-attr">DEFAULT:</span> <span class="hljs-number">512</span> <span class="hljs-string">KB<br></span><span class="hljs-attr">LOC:</span> <span class="hljs-string">Config.Store.maxInMemObjSize<br></span><span class="hljs-string">DOC_START</span> <span class="hljs-string">Objects</span> <span class="hljs-string">greater</span> <span class="hljs-string">than</span> <span class="hljs-string">this</span> <span class="hljs-string">size</span> <span class="hljs-string">will</span> <span class="hljs-string">not</span> <span class="hljs-string">be</span> <span class="hljs-string">attempted</span> <span class="hljs-string">to</span> <span class="hljs-string">kept</span> <span class="hljs-string">in</span> <span class="hljs-string">the</span> <span class="hljs-string">memory</span> <span class="hljs-string">cache.</span> <span class="hljs-string">This</span> <span class="hljs-string">should</span> <span class="hljs-string">be</span> <span class="hljs-string">set</span> <span class="hljs-string">high</span> <span class="hljs-string">enough</span> <span class="hljs-string">to</span> <span class="hljs-string">keep</span> <span class="hljs-string">objects</span> <span class="hljs-string">accessed</span> <span class="hljs-string">frequently</span> <span class="hljs-string">in</span> <span class="hljs-string">memory</span> <span class="hljs-string">to</span> <span class="hljs-string">improve</span> <span class="hljs-string">performance</span> <span class="hljs-string">whilst low enough to keep larger objects from hoarding cache_mem.<br><br></span>so it seems that the default values are itself reported as a warning?<br><br><br></p>
</body>
</html>