]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: assign an L3 cache if more than 2 L2 instances
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Feb 2025 18:22:34 +0000 (19:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commitb633b9d42271fc507f5a669ae1a038f9623ecf45
treea9622504fae8d77d27fa24331fbd186232788d74
parentd169758fa9fe3f4ac4db884b0b56cf94fe53b69d
MINOR: cpu-topo: assign an L3 cache if more than 2 L2 instances

On some machines, L3 is not always reported (e.g. on some lx2 or some
armada8040). But some also don't have L3 (core 2 quad). However, no L3
when there are more than 2 L2 is quite unheard of, and while we don't
really care about firing 2 thread groups for 2 L2, we'd rather avoid
doing this if there are 8! In this case we'll declare an L3 instance
to fix the situation. This allows small machines to continue to start
with two groups while not derivating on large ones.
src/cpu_topo.c