]> git.kaiwu.me - haproxy.git/commit
MINOR: cpu-topo: add CPU topology detection for linux
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Jul 2023 13:41:51 +0000 (15:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit7cb274439bb40b432f3a2abac650e811b5631299
tree17f5bb03a79386caa52e31866f7ecb384b2af27d
parent12f3a2bbb75869426ce150614acd0dd46d299369
MINOR: cpu-topo: add CPU topology detection for linux

This uses the publicly available information from /sys to figure the cache
and package arrangements between logical CPUs and fill ha_cpu_topo[], as
well as their SMT capabilities and relative capacity for those which expose
this. The functions clearly have to be OS-specific.
include/haproxy/cpu_topo.h
src/cpu_topo.c
src/haproxy.c