]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: increase MAX_BASE_POOLS to 64
authorWilly Tarreau <w@1wt.eu>
Tue, 30 Jun 2020 12:29:02 +0000 (14:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Jun 2020 12:29:02 +0000 (14:29 +0200)
commitdaf8aa62a8d0210f81db5c93235da19d5ed22ab3
tree57299ff7a128be5e10d614b79720abc4a636de2c
parent60814ffe8188ddd91fcdd6981a570e0d3107f60b
MINOR: pools: increase MAX_BASE_POOLS to 64

When not sharing pools (i.e. when building with -DDEBUG_DONT_SHARE_POOLS)
we have about 47 pools right now, while MAX_BASE_POOLS is only 32, meaning
that only the first 32 ones will benefit from a per-thread cache entry.
This totally kills performance when pools are not shared (roughly -20%).

Let's double the limit to gain some margin, and make it possible to set
it as a build option.

It might be useful to backport this to stable versions as they're likely
to be affected as well.
include/haproxy/pool-t.h