Varnish using more RAM than allocated
Lee Trout
lee at leetrout.com
Fri Jun 22 22:42:41 CEST 2012
I generally don't worry about the high virtual memory usage. (and perhaps
that will bite me some day ^_^)
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.
https://www.varnish-cache.org/trac/wiki/Performance &
https://www.varnish-cache.org/docs/3.0/reference/varnishd.html#transient-storage
You could also dig in with pmap ;)
On Fri, Jun 22, 2012 at 2:45 PM, Crowder, Travis
<Travis.Crowder at penton.com>wrote:
> 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.****
>
> ** **
>
> For example, I have a box that is allocated 6G of RAM, but it is using
> about 12G virtual memory.****
>
> ** **
>
> >top****
>
> 9101 nobody 20 0 11.7g 6.8g 81m S 6.0 88.5 1270:21 varnishd****
>
> ** **
>
> Varnish is invoked via:****
>
> /usr/local/sbin/varnishd -f /usr/local/etc/varnish/default.vcl -s
> malloc,6G -T xxx.xxx.xxx.xxx:2000 -a :80****
>
> ** **
>
> Does anyone know what I am talking about?****
>
> ** **
>
> Thanks,****
>
> Travis****
>
> ** **
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120622/ba08901c/attachment.html>
More information about the varnish-misc
mailing list