]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: stick-tables: exit expiry faster when the update lock is held
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Sep 2025 09:54:15 +0000 (11:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Sep 2025 13:51:13 +0000 (15:51 +0200)
commit46463d68502345976fd76fcd1d190cfe4ecb083c
treed8d53e999ec948b8e8bd33940d598a36a2945db7
parent696793205b6f949aba63ebccdd99465ed6cb854c
OPTIM: stick-tables: exit expiry faster when the update lock is held

It helps keep the contention level low: when we hold the update lock
that we know other parts may be relying on (peers, track-sc etc),
we decrease the remaining visit counters 4 times as fast to further
reduce the contention. At this point no more warnings are seen during
intense synchronization (2x64 cores, 1.5M req/s with a track-sc each,
5M entries in use).
src/stick_table.c