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 build: change indentation in infrastructure files 2021-04-21 14:04:09 +02:00
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 build: check symbol maps in developer mode 2021-05-19 12:51:41 +02:00
coff.py buildtools: support COFF in pmdinfogen 2021-01-25 23:23:48 +01:00
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 buildtools: fix all drivers disabled on Windows 2021-04-17 12:49:23 +02:00
map_to_win.py build: remove Windows export symbol list 2021-04-08 17:57:33 +02:00
map-list-symbol.sh buildtools: fix build with busybox 2021-03-23 08:39:11 +01:00
meson.build build: fix build on FreeBSD with Meson 0.61.1 2022-03-08 16:37:22 +01:00
options-ibverbs-static.sh buildtools: get static mlx dependencies for meson 2020-02-14 12:42:13 +01:00
pmdinfogen.py buildtools: allow string constant padding 2021-06-17 18:44:30 +02:00
symlink-drivers-solibs.py build: support drivers symlink on Windows 2021-07-09 17:22:42 +02:00
symlink-drivers-solibs.sh build: fix ninja install on FreeBSD 2019-05-02 23:07:04 +02:00