]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: fall back to nominal_perf and scaling_max_freq for the capacity
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Jan 2025 17:55:48 +0000 (18:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commitd11241b7ba936ff823016cd2e6096822af58a46f
tree13ca185ea9ee1d0afb5b74becbf4f409cbfb9de7
parent322c28cc1908345a011817191a552663c3c936bd
MINOR: cpu-topo: fall back to nominal_perf and scaling_max_freq for the capacity

When cpu_capacity is not present, let's try to check acpi_cppc's
nominal_perf which is similar and commonly found on servers, then
scaling_max_freq (though that last one may vary a bit between CPUs
depending on die quality). That variation is not a problem since
we can absorb a ~5% variation without issue.

It was verified on an i9-14900 featuring 5.7-P, 6.0-P and 4.4-E GHz
that P-cores were not reordered and that E cores were placed last.
It was also OK on a W3-2345 with 4.3 to 4.5GHz.
src/cpu_topo.c