]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: ncpu: add a simple utility to help with NUMA development
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Jan 2025 07:48:16 +0000 (08:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Jan 2025 10:26:05 +0000 (11:26 +0100)
commit25c08562cbec3fe7c4514db3baaf085475e79395
tree89e189c0576740ce849791545bf0c4cae7210a06
parentbd06502b22cd12d8101b21f01d9f0320717b3501
DEV: ncpu: add a simple utility to help with NUMA development

Collecting captures of /sys isn't sufficient for NUMA development because
haproxy detects the number of CPUs at boot time and will not be able to
inspect more than this number. Let's just have a small utility to report
a fake number of CPUs, that will be loaded using LD_PRELOAD. It checks
the NCPU variable if it exists and will present this number of CPUs, or
if it does not exist, will expose the maximum supported number.
dev/ncpu/Makefile [new file with mode: 0644]
dev/ncpu/ncpu.c [new file with mode: 0644]