]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: ignore excess of too small clusters
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 14:18:58 +0000 (15:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:33:12 +0000 (18:33 +0100)
commit72633666065c045ef67135fae611ae150dbc37e5
tree824cfc4031335a3da59ab483ad958b95bc13ff46
parentaa4776210bf1e02517835fb05aab156af8d94a97
MINOR: cpu-topo: ignore excess of too small clusters

On some Arm systems (typically A76/N1) where CPUs can be associated in
pairs, clusters are reported while they have no incidence on I/O etc.
Yet it's possible to have tens of clusters of 2 CPUs each, which is
counter productive since it does not even allow to start enough threads.

Let's detect this situation as soon as there are at least 4 clusters
having each 2 CPUs or less, which is already very suspcious. In this
case, all these clusters will be reset as meaningless. In the worst
case if needed they'll be re-assigned based on L2/L3.
src/cpu_topo.c