storage.memory.free_space and storage.memory.used_space

Hugues Alary hugues at betabrand.com
Fri May 3 00:05:16 UTC 2019


Hi,

I am using varnish-6.0.0 revision a068361dff0d25a0d85cf82a6e5fdaf315e06a7d
and the malloc storage.

My vcl_deliver looks like this:

sub vcl_deliver {
    set resp.http.X-Varnish-Storage = {"Free: "} +
storage.memory.free_space + " Used: " + storage.memory.used_space + "
Happy? : " + storage.memory.happy;
}

I am confused because upon making a request to my varnish server,
storage.memory.free_space
is always equal to storage.memory.used_space * -1.

E.g if storage.memory.used_space is 150000.000 then
storage.memory.free_space is -150000.000.

Moreover, storage.memory.happy is always false.

This has been the case for the longest time. I'm pretty sure I had this
issue with Varnish 4, and maybe even earlier versions.

Am I doing something wrong? Or is this a bug?

Sincerely,
-Hugues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20190502/454927e6/attachment-0001.html>


More information about the varnish-misc mailing list