]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: move the failed allocation counter over a few buckets
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Jul 2023 14:38:09 +0000 (16:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Aug 2023 17:04:34 +0000 (19:04 +0200)
commit8a0b5f783b201a1194eb5e2901912cec9c9fe091
tree92ab46b1f8415590789f80f7b08220c5e36926e4
parentda6999f83901ed176d3da14d75bc782353a4faa3
MINOR: pools: move the failed allocation counter over a few buckets

The failed allocation counter cannot depend on a pointer, but since it's
a perpetually increasing counter and not a gauge, we don't care where
it's incremented. Thus instead we're hashing on the TID. There's no
contention there anyway, but it's better not to waste the room in
the pool's heads and to move that with the other counters.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c