]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: renumber cores to avoid holes and make them contiguous
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Feb 2025 10:11:08 +0000 (11:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commit0290b807dd43340210647b6132cd6c877b15b09b
tree3b6ddc250d631e021df95cb946d88ab233907224
parentb633b9d42271fc507f5a669ae1a038f9623ecf45
MINOR: cpu-topo: renumber cores to avoid holes and make them contiguous

Due to the way core numbers are assigned and the presence of SMT on
some of them, some holes may remain in the array. Let's renumber them
to plug holes once they're known, following pkg/node/die/llc etc, so
that they're local to a (pkg,node) set. Now an i7-14700 shows cores
0 to 19, not 0 to 27.
src/cpu_topo.c