]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: server: start to use aligned allocs in server quic-interop
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 15:43:51 +0000 (17:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 17:55:30 +0000 (19:55 +0200)
commit1bb975464815eea709eeaa75942b4536a2ed202d
tree1c08af39fcc808715c06837fc47895517bd26057
parentc2687f587e95927831b22ae6d8d7a618d2731b5c
OPTIM: server: start to use aligned allocs in server

This is currently for per-thread arrays like idle conns etc. We're
now cache-aligning the per-thread arrays so as to put an end to false
sharing. A comparative test between no alignment and alignment on a
simple config with round robin between 4 servers showed an average
rate of 1.75M/s vs 1.72M/s before for 100M requests. The gain seems
to be more commonly less than 1% however. This should mostly help
make measurements more reproducible across multiple runs.
src/server.c