[Varnish] #1836: Varnish can allocate much less memory than limit
Varnish
varnish-bugs at varnish-cache.org
Thu Jan 7 19:25:15 CET 2016
#1836: Varnish can allocate much less memory than limit
---------------------------------+---------------------
Reporter: onovy | Type: defect
Status: new | Priority: high
Milestone: Varnish 4.0 release | Component: regress
Version: 4.0.2 | Severity: major
Keywords: |
---------------------------------+---------------------
Hi,
i have Varnish 4.0.2 from official Debian Jessie (not your repo).
cmd: /usr/sbin/varnishd -P /run/varnishd.pid -a localhost:6081 -T
localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s
malloc,64G
so malloc with 64 GB limit.
According to varnishstat:
{{{
SMA.s0.g_bytes 68719421626 . Bytes
outstanding
SMA.s0.g_space 55110 . Bytes
available
}}}
all memory (64 G) is allocated. But that is not true:
{{{
# free -m
total used free shared buffers cached
Mem: 96774 31615 65159 1 0 10205
-/+ buffers/cache: 21408 75366
Swap: 6143 0 6143
}}}
Varnish allocate only 19 G:
{{{
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
9229 nobody 20 0 0.098t 0.018t 85376 S 4.3 19.8 145:51.35
varnishd
}}}
Object counts (MAIN.n_object*)[[BR]]
[[Image(http://s14.postimg.org/bgovmgd4x/staz_eny_soubor.png)]]
LRU (MAIN.n_lru_*)[[BR]]
[[Image(http://s13.postimg.org/9tw4olqev/staz_eny_soubor_1.png)]]
Thanks for help
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1836>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list