]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: pools: reduce local pool cache size to 512kB
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 18:38:54 +0000 (19:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 18:52:15 +0000 (19:52 +0100)
commitf5e94b2f47b45c7aebbe390b02abd1ff7b810981
tree6c4d1194d16e9e93d43aa4a6b70a03ee49fddecf
parent1513c5479ab382a984c5fd9c7ea76dcfc48ab29b
OPTIM: pools: reduce local pool cache size to 512kB

Now that we support batched allocations/releases, it appears that we can
reach the same performance on H2 with shared pools and 256kB thread-local
cache as without shared pools, a fast allocator and 1MB thread-local cache.
With 512kB we're up to 10% faster on highly multiplexed H2 than without the
shared cache. This was tested on a 16-core ARM machine. Thus it's time to
slightly reduce the per-thread memory cost, which may also improve the
performance on machines with smaller L2 caches. It essentially reverts
commit f587003fe ("MINOR: pools: double the local pool cache size to 1 MB").
include/haproxy/defaults.h