]> git.kaiwu.me - haproxy.git/commit
MINOR: cpu-topo: add a function to sort by cluster+capacity
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Feb 2025 18:44:37 +0000 (19:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commit4a6eaf6c5e080fb187714749e897340d7b08cfc0
treebd7281ee5a915a23159f4f9595396186fbc32358
parent0290b807dd43340210647b6132cd6c877b15b09b
MINOR: cpu-topo: add a function to sort by cluster+capacity

The purpose here is to detect heterogenous clusters which are not
properly reported, based on the exposed information about the cores
capacity. The algorithm here consists in sorting CPUs by capacity
within a cluster, and considering as equal all those which have 5%
or less difference in capacity with the previous one. This allows
large clusters of more than 5% total between extremities, while
keeping apart those where the limit is more pronounced. This is
quite common in embedded environments with big.little systems, as
well as on some laptops.
include/haproxy/cpu_topo.h
src/cpu_topo.c