numam-dpdk/buildtools
Peng Zhang 9d4efc5cc6 buildtools: fix NUMA nodes count
The method to fetch, sort and read the last entry of a list to figure
out the total number of NUMA nodes in the system fails with 10 or more
nodes. The reason being the usage of string compare while sorting, hence
node 'node10' will be sorted before 'node2'.

Solve this by sorting the list based on integer comparison of the
numerical part of the node name.

Before this change on a system with 16 NUMA nodes,

    EAL: Detected CPU lcores: 128
    EAL: Detected NUMA nodes: 10
    EAL: Static memory layout is selected, amount of reserved memory can
	 be adjusted with -m or --socket-mem
    EAL: Detected static linkage of DPDK
    EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
    EAL: Selected IOVA mode 'VA'
    EAL: VFIO support initialized

With this change on the same system,

    EAL: Detected CPU lcores: 128
    EAL: Detected NUMA nodes: 16
    EAL: Static memory layout is selected, amount of reserved memory can
	 be adjusted with -m or --socket-mem
    EAL: Detected static linkage of DPDK
    EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
    EAL: Selected IOVA mode 'VA'
    EAL: VFIO support initialized

Fixes: 8ef09fdc50 ("build: add optional NUMA and CPU counts detection")
Cc: stable@dpdk.org

Signed-off-by: Peng Zhang <peng.zhang@corigine.com>
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
2022-10-11 02:13:52 +02:00
..
chkincs buildtools/chkincs: check missing C++ guards 2022-02-22 15:26:15 +01:00
pkg-config
subproject build: add definitions for use as Meson subproject 2022-06-07 20:49:20 +02:00
binutils-avx512-check.py buildtools: fix AVX512 check for Python 3.5 2022-01-12 18:06:52 +01:00
call-sphinx-build.py doc: replace deprecated distutils version parsing 2022-01-11 14:33:09 +01:00
check-symbols.sh
coff.py
gen-pmdinfo-cfile.py buildtools: fix build with Meson 0.60 2021-11-03 14:16:29 +01:00
get-cpu-count.py build: add optional NUMA and CPU counts detection 2021-09-16 09:43:28 +02:00
get-numa-count.py buildtools: fix NUMA nodes count 2022-10-11 02:13:52 +02:00
list-dir-globs.py
map_to_win.py
map-list-symbol.sh
meson.build build: fix build on FreeBSD with Meson 0.61.1 2022-03-08 16:37:22 +01:00
options-ibverbs-static.sh
pmdinfogen.py
symlink-drivers-solibs.py
symlink-drivers-solibs.sh