varnish don't set malloc size,varnish cache data only 200M size

Nils Goroll slink at schokola.de
Tue Oct 29 08:22:04 UTC 2019


Sorry, my response was wrong:

If no -s argument is given, the default is

- 100m malloc for cache objects
- unbound transient storage

If -smalloc is given, then the size is actually unbound.

Nils


On 29/10/2019 09:19, Nils Goroll wrote:
> You are right, the documentation is wrong. The default is 100m
>
> I opened https://github.com/varnishcache/varnish-cache/issues/3108 - thank you
> for reporting.
>
> The only way to get a bigger cache is to configure the maximum size.
>
> On 29/10/2019 04:43, li yiyi wrote:
>> hi, i use varnish6.2.0 to cache image, my machine memory is 16g, varnish
>> malloc do not set size and use the default。
>> i see the documentation from varnish-cache.org, the default size is
>> unlimited. my test images size about 6g,when i send http request to
>> varnish,only a little images can cache from varnish, about 200m size. most of
>> them is miss.
>> my some varnish settings as follows:
>> /usr/local/varnish/sbin/varnishd -a 0.0.0.0:80,HTTP -f
>> /usr/local/varnish/etc/default.vcl
>> when i set malloc size(8g),varnish is working ok, malloc must be seted
>> specify size?how i can do if use unlimited ? 
>>
>> thank you,regards
>> --------------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> varnish-commit mailing list
>> varnish-commit at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
>
>
>
> _______________________________________________
> 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/20191029/b174c7cd/attachment-0001.html>


More information about the varnish-misc mailing list