]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pools: release cached objects in batches
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 16:53:02 +0000 (17:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 18:35:26 +0000 (19:35 +0100)
commit1513c5479ab382a984c5fd9c7ea76dcfc48ab29b
tree50cd734ed8f8ed990f4313fbd7604fd0f46c643e
parent43937e920f4c9fcda9f148a71a1a064deaf42e3c
MEDIUM: pools: release cached objects in batches

With this patch pool_evict_last_items builds clusters of up to
CONFIG_HAP_POOL_CLUSTER_SIZE entries so that accesses to the shared
pools are reduced by CONFIG_HAP_POOL_CLUSTER_SIZE and the inter-
thread contention is reduced by as much..
src/pool.c