<div dir="ltr">Hi,<div>I'm getting what I think is too low of MEM_HIT ratio.. I would like squid to use all of the cache_mem, thus increasing MEM_HIT?</div><div><p style="margin:0px;font-size:12px;font-family:'Andale Mono'">Cache information for squid:</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Request Hit Ratios:<span class="" style="white-space:pre"> </span>5min: 83.2%, 60min: 81.7%</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Byte Hit Ratios:<span class="" style="white-space:pre"> </span>5min: 85.6%, 60min: 69.4%</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Request Memory Hit Ratios:<span class="" style="white-space:pre"> </span>5min: 31.0%, 60min: 33.5%</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Request Disk Hit Ratios:<span class="" style="white-space:pre"> </span>5min: 41.9%, 60min: 40.5%</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Storage Swap size:<span class="" style="white-space:pre"> </span>13824000 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Storage Mem size:<span class="" style="white-space:pre"> </span>401884 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Mean Object Size:<span class="" style="white-space:pre"> </span>61.24 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Requests given to unlinkd:<span class="" style="white-space:pre"> </span>0</p></div><div><br></div><div><br></div><div><p style="margin:0px;font-size:12px;font-family:'Andale Mono'">Memory usage for squid via mallinfo():</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Total space in arena: 583740 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Ordinary blocks: 580311 KB 51632 blks</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Small blocks: 0 KB 0 blks</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Holding blocks: 4588 KB 3 blks</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Free Small blocks: 0 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Free Ordinary blocks: 3428 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Total in use: 584899 KB 99%</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Total free: 3428 KB 1%</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Total size: 588328 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'">Memory accounted for:</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>Total accounted: 517938 KB</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>memPoolAlloc calls: 604503322</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'"><span class="" style="white-space:pre"> </span>memPoolFree calls: 602248266</p></div><div><br></div><div><br></div><div><br></div><div><span style="font-family:'Andale Mono';font-size:12px">Config:</span></div><div><span style="font-family:'Andale Mono';font-size:12px">cache_replacement_policy heap LFUDA</span><br></div><div>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono'">memory_replacement_policy heap LFUDA</p>
<p style="margin:0px;font-size:12px;font-family:'Andale Mono';min-height:14px">cache_dir aufs /var/squid/cache 15000 16 256<br></p><p style="margin:0px;font-size:12px;font-family:'Andale Mono'">cache_mem 4096 MB</p></div><div><br></div><div><br></div><div>Why is squid not using all 4096 MB allocated? it's only using 590MB according to mgr:info. </div><div>Is there something extra I need to do? To me the HIT rate is reasonable... they hit's are just not coming from memory</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div><br></div><div><br></div></div>