]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: server: move queueslength in server struct
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Jan 2026 10:38:22 +0000 (10:38 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Jan 2026 16:07:27 +0000 (16:07 +0000)
commit3ca2a83fc0564b16d3586a6361d7fd77b83733db
tree4483a8350229ac157c278e4050c4222923061e48
parentcb3fd012cd4c96cb635a5e82162bebc91e49b646
OPTIM: server: move queueslength in server struct

This field is shared by all threads and must be in the shared area
instead, because where it's placed, it slows down access to other
fields of the struct by false sharing. Just moving this field gives
a steady 2% gain on the request rate (1.93 to 1.96 Mrps) on a 64-core
EPYC.
include/haproxy/server-t.h