<div>I generally don't worry about the high virtual memory usage. (and perhaps that will bite me some day ^_^)</div><div><br></div>There are other memory requirements such as the threads (-s is only for the object cache). Beyond that, there is also transient storage for short lived requests which defaults to an unlimited malloc. Given that, I would say the resident memory size looks about right. <a href="https://www.varnish-cache.org/trac/wiki/Performance">https://www.varnish-cache.org/trac/wiki/Performance</a> & <a href="https://www.varnish-cache.org/docs/3.0/reference/varnishd.html#transient-storage">https://www.varnish-cache.org/docs/3.0/reference/varnishd.html#transient-storage</a><div>
<br></div><div>You could also dig in with pmap ;)<br><div><div><br><div class="gmail_quote">On Fri, Jun 22, 2012 at 2:45 PM, Crowder, Travis <span dir="ltr"><<a href="mailto:Travis.Crowder@penton.com" target="_blank">Travis.Crowder@penton.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I recall seeing on the mailing list before a reason why Varnish would use more RAM than allocated due to storing something outside of the defined allocated memory.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For example, I have a box that is allocated 6G of RAM, but it is using about 12G virtual memory.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">>top<u></u><u></u></p>
<p class="MsoNormal">9101 nobody 20 0 11.7g 6.8g 81m S 6.0 88.5 1270:21 varnishd<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Varnish is invoked via:<u></u><u></u></p>
<p class="MsoNormal">/usr/local/sbin/varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,6G -T xxx.xxx.xxx.xxx:2000 -a :80<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Does anyone know what I am talking about?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Travis<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<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></div></div>