beresp.do_stream and memory usage

Daniel dhose0 at
Fri Oct 17 12:33:49 CEST 2014


On 2014-10-16 10:16, Poul-Henning Kamp wrote:
> I guess your backend doesn't send a Content-Length: header, so Varnish
> will allocate storage in "fetch_chunksize" lumps.
> When streaming is enabled, we cannot (at present) trim surplus storage
> back, so you end up with 128K of storage by default.
> When you disable streaming, we can trim the storage.
> Depending on your average object size, you could try to reduce
> fetch_chunksize to something like 16K maybe.

Yes, that's correct, the backend is not sending a Content-Length: 
header. Good to know, now I understand why Varnish has been using so 
much memory.



More information about the varnish-misc mailing list