]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pools: start to batch eviction from local caches
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 16:24:55 +0000 (17:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 18:35:26 +0000 (19:35 +0100)
commit43937e920f4c9fcda9f148a71a1a064deaf42e3c
tree9d2b9f80d9f431e2f8c8008c0b56941dd79669bd
parenta0b5831eedfc8f1bd1757c02140b68e9d7d43bb0
MEDIUM: pools: start to batch eviction from local caches

Since previous patch we can forcefully evict multiple objects from the
local cache, even when evicting basd on the LRU entries. Let's define
a compile-time configurable setting to batch releasing of objects. For
now we set this value to 8 items per round.

This is marked medium because eviction from the LRU will slightly change
in order to group the last items that are freed within a single cache
instead of accurately scanning only the oldest ones exactly in their
order of appearance. But this is required in order to evolve towards
batched removals.
include/haproxy/defaults.h
src/pool.c