]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: provide a function to sort clusters by average capacity
authorWilly Tarreau <w@1wt.eu>
Tue, 13 May 2025 14:00:23 +0000 (16:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 May 2025 14:48:30 +0000 (16:48 +0200)
commit5ab2c815f1b109df0554a890127ef7e5d4a421f7
treec651bbc371a357fd5a4ae51e91f9aa70956debfc
parent01df98adad15d41565756b0df752dc74ae8f7e3c
MINOR: cpu-topo: provide a function to sort clusters by average capacity

The current per-capacity sorting function acts on a whole cluster, but
in some setups having many small cores and few big ones, it becomes
easy to observe an inversion of metrics where the many small cores show
a globally higher total capacity than the few big ones. This does not
necessarily fit all use cases. Let's add new a function to sort clusters
by their per-cpu average capacity to cover more use cases.
src/cpu_topo.c