]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cpu-topo: change "efficiency" to consider per-core capacity
authorWilly Tarreau <w@1wt.eu>
Tue, 13 May 2025 14:18:25 +0000 (16:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 May 2025 14:48:30 +0000 (16:48 +0200)
commit70b0dd6b0fafa95f8bebd440406f62611fea118c
treee10f41599a8f50aacf348add5fb7cd956482bbbc
parent6c88e27cf4327ea95ab59fb4d478a21296987d36
MEDIUM: cpu-topo: change "efficiency" to consider per-core capacity

This is similar to the previous change to the "performance" policy but
it applies to the "efficiency" one. Here we're changing the sorting
method to sort CPU clusters by average per-CPU capacity, and we evict
clusters whose per-CPU capacity is above 125% of the previous one.
Per-core capacity allows to detect discrepancies between CPU cores,
and to continue to focus on efficient ones as a priority.
doc/configuration.txt
src/cpu_topo.c