Varnish memory usage and allocation

By.

min read

My profile

Share this:

[code:1:e35c6fb066]varnishstat -1 | grep SMA
[/code:1:e35c6fb066]
Note: stats are from a rebooted service, cache is very cold

[code:1:e35c6fb066]SMA.s0.c_req 475 0.64 Allocator requests
SMA.s0.c_fail 0 0.00 Allocator failures
SMA.s0.c_bytes 28141648 37926.75 Bytes allocated
SMA.s0.c_freed 26274622 35410.54 Bytes freed
SMA.s0.g_alloc 475 . Allocations outstanding
SMA.s0.g_bytes 1867026 . Bytes outstanding
SMA.s0.g_space 1256424174 . Bytes available
SMA.Transient.c_req 111 0.15 Allocator requests
SMA.Transient.c_fail 0 0.00 Allocator failures
SMA.Transient.c_bytes 6785812 9145.30 Bytes allocated
SMA.Transient.c_freed 6785812 9145.30 Bytes freed
SMA.Transient.g_alloc 0 . Allocations outstanding
SMA.Transient.g_bytes 0 . Bytes outstanding
SMA.Transient.g_space 0 . Bytes available[/code:1:e35c6fb066]

[b:e35c6fb066]Bytes allocated for varnish usage:[/b:e35c6fb066]
SMA.s0.g_space 1256424174 . Bytes available
= +-1200MB

[b:e35c6fb066]Bytes [u:e35c6fb066]actually in use[/u:e35c6fb066] by varnish:[/b:e35c6fb066]
SMA.s0.c_bytes 28141648 37926.75 Bytes allocated
= +- 28MB

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *