9d4efc5cc6
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:
|
||
---|---|---|
.. | ||
chkincs | ||
pkg-config | ||
subproject | ||
binutils-avx512-check.py | ||
call-sphinx-build.py | ||
check-symbols.sh | ||
coff.py | ||
gen-pmdinfo-cfile.py | ||
get-cpu-count.py | ||
get-numa-count.py | ||
list-dir-globs.py | ||
map_to_win.py | ||
map-list-symbol.sh | ||
meson.build | ||
options-ibverbs-static.sh | ||
pmdinfogen.py | ||
symlink-drivers-solibs.py | ||
symlink-drivers-solibs.sh |