]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: add a new "performance" cpu-policy
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 14:09:07 +0000 (15:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:33:16 +0000 (18:33 +0100)
commitdcae2fa4a4c174f2c189f18faaa4e9851116f5e4
treeae29c90a79aae100c6cfc76a0e8e52179489442c
parent96cd420dc3c588f925bece5ef89e58e3e8d25f98
MINOR: cpu-topo: add a new "performance" cpu-policy

This cpu policy tries to evict efficient core clusters and only
focuses on performance-oriented ones. On an intel i9-14900k, we can
get 525k rps using only 8 cores this way, versus 594k when using all
24 cores. The gains from using all these codes are not significant
enough to waste them on this. Also these cores can be much slower
at doing SSL handshakes so it can make sense to evict them. Better
keep the efficiency cores for network interrupts for example.

Also, on a developer's machine it can be convenient to keep all these
cores for the local tasks and extra tools (load generators etc).
doc/configuration.txt
src/cpu_topo.c