Mailing List Archive

#1836: Varnish can allocate much less memory than limit
#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

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1836: Varnish can allocate much less memory than limit [ In reply to ]
#1836: Varnish can allocate much less memory than limit
---------------------+----------------------------------
Reporter: onovy | Owner:
Type: defect | Status: new
Priority: high | Milestone: Varnish 4.0 release
Component: regress | Version: 4.0.2
Severity: major | Resolution:
Keywords: |
---------------------+----------------------------------

Comment (by onovy):

this bug can be related to:
https://github.com/varnish/Varnish-Cache/pull/80

but doesn't explain why the counter (g_bytes) still saying 64G since that
one is being decremented

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1836#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1836: Varnish can allocate much less memory than limit [ In reply to ]
#1836: Varnish can allocate much less memory than limit
---------------------+----------------------------------
Reporter: onovy | Owner:
Type: defect | Status: new
Priority: high | Milestone: Varnish 4.0 release
Component: regress | Version: 4.0.2
Severity: major | Resolution:
Keywords: |
---------------------+----------------------------------

Comment (by onovy):

this seems to be related: https://www.varnish-cache.org/trac/ticket/1617

i will try lower fetch_chunksize

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1836#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1836: Varnish can allocate much less memory than limit [ In reply to ]
#1836: Varnish can allocate much less memory than limit
---------------------+----------------------------------
Reporter: onovy | Owner:
Type: defect | Status: new
Priority: high | Milestone: Varnish 4.0 release
Component: regress | Version: 4.0.2
Severity: major | Resolution:
Keywords: |
---------------------+----------------------------------

Comment (by onovy):

lower fetch_chunksize helps a low. yep, it's duplicate of #1617

you can close

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1836#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1836: Varnish can allocate much less memory than limit [ In reply to ]
#1836: Varnish can allocate much less memory than limit
---------------------+----------------------------------
Reporter: onovy | Owner:
Type: defect | Status: closed
Priority: high | Milestone: Varnish 4.0 release
Component: regress | Version: 4.0.2
Severity: major | Resolution: worksforme
Keywords: |
---------------------+----------------------------------
Changes (by lkarsten):

* status: new => closed
* resolution: => worksforme


--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1836#comment:4>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs