]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: ignore single-core clusters
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Jan 2025 16:25:38 +0000 (17:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commit385360fe8144462a12d4c69c49ca8d2c1232c282
tree390a88fe8d39022627995bbddc5135b3fe2e8a1c
parenta4471ea56df45bf3ea0050d035b00fc232969a38
MINOR: cpu-topo: ignore single-core clusters

Some platforms (several armv7, intel 14900 etc) report one distinct
cluster per core. This is problematic as it cannot let clusters be
used to distinguish real groups of cores, and cannot be used to build
thread groups.

Let's just compare the cluster cpus to the siblings, and ignore it if
they exactly match. We must also take care of not falling back to
core_cpus_list, which can enumerate cores that already have their
cluster assigned (e.g. intel 14900 has 4 4-Ecore clusters in addition
to the 8 Pcores).
src/cpu_topo.c