]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pattern: call malloc_trim() on pat_ref_reload()
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Nov 2020 14:55:35 +0000 (15:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:08 +0000 (19:27 +0100)
commit114d698fdeb53c73734df16e68828154fbc1527e
treeacaf377c679c8e5885d29d26d12ace971262f7a3
parent88366c2926deac5ee257b6c541633b6a8b5111b3
MEDIUM: pattern: call malloc_trim() on pat_ref_reload()

This is one case where we may release large amounts of data at once. Tests
show that without this, after 10 full reloads of an ACL containing  1M IP
addresses, the memory usage grew and stabilized around 1.7 GB of RSS. With
this change, it stays around 260 MB and is stable across reloads.
src/pattern.c