<div dir="ltr">We have a varnish 3 server that was performing fine that we just increased malloc size to as we started pulling a lot more data through it.<div><br></div><div>Malloc is 6 gigs.</div><div>We gave the entire machine 7.5 gigs</div>
<div><br></div><div>And we started using a couple gigs of swap being used which lead to load average rapidly climbing.</div><div><br></div><div>Does Varnish need additional memory beyond what is allocated via malloc?</div>
<div style>For all our other services that are running on this version of cent/os, 1.5 gigs for OS has been fine.</div><div style><br></div><div style>Specific version of varnish is:</div><div style><br></div><div style>(varnish-3.0.3 revision 9e6a70f)<br>
</div><div style><br></div><div style>sysconfig/varnish is:</div><div style><br></div><div style><div># -*- mode: conf-unix -*-</div><div>#</div><div># Configuration file for varnish</div><div>#</div><div># This file is managed by puppet.</div>
<div># Local changes will be reverted.</div><div>#</div><div># /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this</div><div># shell script fragment.</div><div>#</div><div><br></div><div># Maximum number of open files (for ulimit -n)</div>
<div>NFILES=131072</div><div><br></div><div># Locked shared memory (for ulimit -l)</div><div># Default log size is 82MB + header</div><div>MEMLOCK=82000</div><div><br></div><div># Maximum size of corefile (for ulimit -c). Default in Fedora is 0</div>
<div># DAEMON_COREFILE_LIMIT="unlimited"</div><div><br></div><div># Listen on port 6081, administration on localhost:6082, and forward to</div><div># one content server selected by the vcl file, based on the request.  Use a</div>
<div># fixed-size cache file.</div><div>#</div><div># Without "ban_lurker_sleep," nothing banned from the cache ever gets evicted.</div><div>#</div><div>DAEMON_OPTS="-a :6081 \</div><div>             -T :6082 \</div>
<div>             -f /etc/varnish/default.vcl \</div><div>             -u varnish -g varnish \</div><div>             -p thread_pool_min=500 \</div><div>             -p thread_pool_max=5000 \</div><div>             -s malloc,6G \</div>
<div>             -p thread_pools=2 \</div><div>             -p thread_pool_add_delay=1 \</div><div>             -p ban_lurker_sleep=60s"</div><div><br></div><div style>If varnish/default.vcl is needed, please let me know.</div>
<div style><br></div><div style>Running on a vmware vm with 2 cores.</div><div style><br></div></div><div><div><br></div>-- <br><div dir="ltr"><div><br></div>Ce n'est pas une signature<br></div>
</div></div>