]> git.kaiwu.me - haproxy.git/commit
MINOR: traces: always mark trace_source as thread-aligned
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Feb 2026 15:19:48 +0000 (16:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Feb 2026 15:22:59 +0000 (16:22 +0100)
commit868dd3e88b82dd6569ad44787914f42c61015c02
tree82b81cfa3ed92d1dabadd937580c62886559abe9
parentc2b54462929845274cad7251ddc8c909187ce0c4
MINOR: traces: always mark trace_source as thread-aligned

Some perf profiles occasionally show that reading the trace source's
state can take some time, which is not expected at all. It just happens
that the trace_source is not cache-aligned so depending on linkage, it
may share a cache line with a more active variable, thereby inducing a
slow down to all threads trying to read the variable.

Let's always mark it aligned to avoid this. For now the problem was not
observed again.
include/haproxy/trace-t.h