]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: create an array of the clusters
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 15:08:04 +0000 (16:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commitaa4776210bf1e02517835fb05aab156af8d94a97
tree9f372f1184779917f4fce515b1aac213f719ed08
parent204ac3c0b6b0af854de8c33a6b8b85b592f2f045
MINOR: cpu-topo: create an array of the clusters

The goal here is to keep an array of the known CPU clusters, because
we'll use that often to decide of the performance of a cluster and
its relevance compared to other ones. We'll store the number of CPUs
in it, the total capacity etc. For the capacity, we count one unit
per core, and 1/3 of it per extra SMT thread, since this is roughly
what has been measured on modern CPUs.

In order to ease debugging, they're also dumped with -dc.
include/haproxy/cpu_topo-t.h
src/cpu_topo.c