vmod_vsthrottle memory usage
guillaume at varnish-software.com
Wed Apr 11 12:02:13 UTC 2018
Very simple, we crash and bring the whole thing down:
IIRC, on Linux, malloc always returns with an allocation, or OOM-kills you
On Wed, Apr 11, 2018 at 12:47 PM, Cosimo Streppone <cosimo at streppone.it>
> I'm looking at the vsthrottle vmod. Have a proof of concept VCL up and
> and it seems to work very nicely (with varnish 4.1.9). Thanks for this
> I'm wondering what vsthrottle's behaviour is when there's no memory
> specifically when tb_alloc() fails.
> From what I can understand from the code:
> b = tb_alloc(digest, limit, period, now);
> AZ(VRB_INSERT(tbtree, &v->buckets, b));
> and tb_alloc() also checks for a non-zero malloc result (AN()).
> I understand we're talking about a remote possibility, and I see vsthrottle
> reclaims unused memory. However, when no memory is available for the
> will varnish leave a trace in syslog, exit and restart by way of the
>  https://github.com/varnish/varnish-modules/blob/master/
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc