DPDK 20.08 meson build testpmd not detecting all NUMA nodes
Hello DPDK devs,
I've meson built (using just meson build && ninja -C build) dpdk-20.08 (downloaded from the site) on a Taishan arm server and dpdk-testpmd is incorrectly detecting NUMA nodes on the system:
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
lscpu report 4 NUMA nodes:
NUMA node0 CPU(s): 0-15 NUMA node1 CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s): 48-63
When built with make T=arm64-armv8a-linuxapp-gcc testpmd is detecting NUMA nodes correctly:
EAL: Detected 64 lcore(s)
EAL: Detected 4 NUMA nodes
Any idea what's the difference between the builds? I've looked at NUMA config options but those seem ok to me:
grep NUMA arm64-armv8a-linuxapp-gcc/.config build/rte_build_config.h arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_MAX_NUMA_NODES=8 arm64-armv8a-linuxapp-gcc/.config:# a "type" is a combination of page size and NUMA node. total number of memseg arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_LIBRTE_VHOST_NUMA=y build/rte_build_config.h:#define RTE_EAL_NUMA_AWARE_HUGEPAGES 1 build/rte_build_config.h:#define RTE_HAS_LIBNUMA 1
build/rte_build_config.h:#define RTE_LIBRTE_VHOST_NUMA 1
build/rte_build_config.h:#define RTE_MAX_NUMA_NODES 4
Any pointers are welcome.
Thanks,
Juraj
Quoted 27 lines · Juraj Linkeš
Hello DPDK devs,
I've meson built (using just meson build && ninja -C build) dpdk-20.08 (downloaded from the site) on a Taishan arm server and dpdk-testpmd is incorrectly detecting NUMA nodes on the system:
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodeslscpu report 4 NUMA nodes:
NUMA node0 CPU(s): 0-15 NUMA node1 CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s): 48-63When built with make T=arm64-armv8a-linuxapp-gcc testpmd is detecting NUMA nodes correctly:
EAL: Detected 64 lcore(s)
EAL: Detected 4 NUMA nodesAny idea what's the difference between the builds? I've looked at NUMA config options but those seem ok to me:
grep NUMA arm64-armv8a-linuxapp-gcc/.configbuild/rte_build_config.harm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_MAX_NUMA_NODES=8 arm64-armv8a-linuxapp-gcc/.config:# a "type" is a combination of page size and NUMA node. total number of memseg arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_LIBRTE_VHOST_NUMA=y build/rte_build_config.h:#defineRTE_EAL_NUMA_AWARE_HUGEPAGES1 build/rte_build_config.h:#defineRTE_HAS_LIBNUMA1
build/rte_build_config.h:#defineRTE_LIBRTE_VHOST_NUMA1
build/rte_build_config.h:#defineRTE_MAX_NUMA_NODES4
Quoted 2 lines
Any pointers are welcome.
What is the max lcores value in your build config? Do you know what settings are being chosen for your platform in config/arm/meson.build?
Regards,
/Bruce
Quoted 28 lines · Bruce Richardson
Quoted 27 lines · Juraj Linkeš
Hello DPDK devs,
I've meson built (using just meson build && ninja -C build) dpdk-20.08 (downloaded from the site) on a Taishan arm server and dpdk-testpmd is incorrectly detecting NUMA nodes on the system:
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodeslscpu report 4 NUMA nodes:
NUMA node0 CPU(s): 0-15 NUMA node1 CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s): 48-63When built with make T=arm64-armv8a-linuxapp-gcc testpmd is detecting NUMA nodes correctly:
EAL: Detected 64 lcore(s)
EAL: Detected 4 NUMA nodesAny idea what's the difference between the builds? I've looked at NUMA config options but those seem ok to me:
grep NUMA arm64-armv8a-linuxapp-gcc/.configbuild/rte_build_config.harm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_MAX_NUMA_NODES=8 arm64-armv8a-linuxapp-gcc/.config:# a "type" is a combination of page size and NUMA node. total number of memseg arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_LIBRTE_VHOST_NUMA=y build/rte_build_config.h:#defineRTE_EAL_NUMA_AWARE_HUGEPAGES1 build/rte_build_config.h:#defineRTE_HAS_LIBNUMA1
build/rte_build_config.h:#defineRTE_LIBRTE_VHOST_NUMA1
build/rte_build_config.h:#defineRTE_MAX_NUMA_NODES4
Quoted 5 lines
Quoted 2 lines
Any pointers are welcome.
What is the max lcores value in your build config? Do you know what settings are being chosen for your platform in config/arm/meson.build?
By way of follow-up, the reason to look at the cores is that the number of numa nodes is detected simply by iterating through all the cores discovered and finding out what NUMA node they are on. If only 16 cores are allowed, then only one NUMA node will be found because all cores discovered will report that as their NUMA location.
/Bruce
Quoted 51 lines
-----Original Message-----
From: Bruce Richardson <[email protected]>
Sent: Friday, August 28, 2020 12:30 PM
To: Juraj Linkeš <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] DPDK 20.08 meson build testpmd not detecting all NUMA nodesQuoted 4 lines · Bruce Richardson
Quoted 3 lines · Juraj Linkeš
Hello DPDK devs,
I've meson built (using just meson build && ninja -C build) dpdk-20.08
(downloaded from the site) on a Taishan arm server and dpdk-testpmd is incorrectly detecting NUMA nodes on the system:
Quoted 10 lines
Quoted 10 lines
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodeslscpu report 4 NUMA nodes:
NUMA node0 CPU(s): 0-15 NUMA node1 CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s): 48-63When built with make T=arm64-armv8a-linuxapp-gcc testpmd is detecting
NUMA nodes correctly:
Quoted 4 lines
Quoted 4 lines
EAL: Detected 64 lcore(s)
EAL: Detected 4 NUMA nodesAny idea what's the difference between the builds? I've looked at NUMA
config options but those seem ok to me:
Quoted 5 lines
Quoted 5 lines
grep NUMA arm64-armv8a-linuxapp-gcc/.config
build/rte_build_config.harm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_MAX_NUMA_NODES=8 arm64-armv8a-linuxapp-gcc/.config:# a "type" is a combination of page size and NUMA node. total number of memseg arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGE
Quoted 1 line
Quoted 1 line
S=y arm64-armv8a-linuxapp-
gcc/.config:CONFIG_RTE_LIBRTE_VHOST_NUMA=y
Quoted 10 lines
Quoted 7 lines
build/rte_build_config.h:#define
RTE_EAL_NUMA_AWARE_HUGEPAGES1 build/rte_build_config.h:#defineRTE_HAS_LIBNUMA1 build/rte_build_config.h:#defineRTE_LIBRTE_VHOST_NUMA1 build/rte_build_config.h:#defineRTE_MAX_NUMA_NODES4Any pointers are welcome.
What is the max lcores value in your build config? Do you know what settings are being chosen for your platform in config/arm/meson.build?
Quoted 7 lines
By way of follow-up, the reason to look at the cores is that the number of numa nodes is detected simply by iterating through all the cores discovered and finding out what NUMA node they are on. If only 16 cores are allowed, then only one NUMA node will be found because all cores discovered will report that as their NUMA location.
/Bruce
Thanks Bruce, RTE_MAX_LCORE is being set only to 16 (line 39 in config/arm/meson.build), so that's the cause. Why is this used in native builds? Shouldn't this be discovered?
I any case, setting it statically for implementer 0x41 seems wrong, as there's a big variety different processors under it: https://github.com/bp0/armids/blob/master/arm.ids
Juraj
Quoted 57 lines · Juraj Linkeš
Quoted 49 lines
-----Original Message----- From: Bruce Richardson <[email protected]> Sent: Friday, August 28, 2020 12:30 PM To:
Juraj Linkeš <[email protected]> Cc: [email protected] Subject: Re:
[dpdk-dev] DPDK 20.08 meson build testpmd not detecting all NUMA nodesQuoted 5 lines · Bruce Richardson
Quoted 4 lines · Juraj Linkeš
Hello DPDK devs,
I've meson built (using just meson build && ninja -C build) dpdk-20.08
(downloaded from the site) on a Taishan arm server and dpdk-testpmd is incorrectly detecting NUMA nodes on the system:
Quoted 8 lines
Quoted 8 lines
EAL: Detected 16 lcore(s) EAL: Detected 1 NUMA nodes
lscpu report 4 NUMA nodes: NUMA node0 CPU(s): 0-15 NUMA node1
CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s):
48-63When built with make T=arm64-armv8a-linuxapp-gcc testpmd is detecting
NUMA nodes correctly:
Quoted 4 lines
Quoted 4 lines
EAL: Detected 64 lcore(s) EAL: Detected 4 NUMA nodes
Any idea what's the difference between the builds? I've looked at NUMA
config options but those seem ok to me:
Quoted 6 lines
Quoted 6 lines
grep NUMA arm64-armv8a-linuxapp-gcc/.config
build/rte_build_config.harm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_MAX_NUMA_NODES=8 arm64-armv8a-linuxapp-gcc/.config:# a "type" is a combination of page size and NUMA node. total number of memseg arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGE
Quoted 1 line
Quoted 1 line
S=y arm64-armv8a-linuxapp-
gcc/.config:CONFIG_RTE_LIBRTE_VHOST_NUMA=y
Quoted 11 lines
Quoted 7 lines
build/rte_build_config.h:#define
RTE_EAL_NUMA_AWARE_HUGEPAGES1 build/rte_build_config.h:#defineRTE_HAS_LIBNUMA1 build/rte_build_config.h:#defineRTE_LIBRTE_VHOST_NUMA1 build/rte_build_config.h:#defineRTE_MAX_NUMA_NODES4Any pointers are welcome.
What is the max lcores value in your build config? Do you know what settings are being chosen for your platform in config/arm/meson.build?
Quoted 7 lines
By way of follow-up, the reason to look at the cores is that the number of numa nodes is detected simply by iterating through all the cores discovered and finding out what NUMA node they are on. If only 16 cores are allowed, then only one NUMA node will be found because all cores discovered will report that as their NUMA location.
/Bruce
Quoted 8 lines
Thanks Bruce,
RTE_MAX_LCOREis being set only to 16 (line 39 in config/arm/meson.build), so that's the cause. Why is this used in native builds? Shouldn't this be discovered?I any case, setting it statically for implementer
0x41seems wrong, as there's a big variety different processors under it:
https://github.com/bp0/armids/blob/master/arm.ids
Sorry, no idea about this, since I don't generally work on/with the arm/meson.build file. Looking at git, that particular value seems to come from commit d97108a33231 ("config: change defaults of armv8"), so perhaps check with the author and reviewer of that patch. [Adding them on CC]
Regards,
/Bruce
Hi Juraj,
Quoted 45 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Bruce Richardson
Sent: Friday, August 28, 2020 9:10 PM
To: Juraj Linkeš <[email protected]>
Cc: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>
Subject: Re: [dpdk-dev] DPDK 20.08 meson build testpmd not detecting all NUMA nodesQuoted 12 lines · Juraj Linkeš
Quoted 12 lines
-----Original Message----- From: Bruce Richardson <[email protected]> Sent: Friday, August 28, 2020 12:30 PM To:
Juraj Linkeš <[email protected]> Cc: [email protected] Subject: Re:
[dpdk-dev] DPDK 20.08 meson build testpmd not detecting all NUMA nodesQuoted 3 lines · Bruce Richardson
Quoted 2 lines · Juraj Linkeš
Hello DPDK devs,
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
I've meson built (using just meson build && ninja -C build) dpdk-20.08
(downloaded from the site) on a Taishan arm server and dpdk-testpmd is incorrectly detecting NUMA nodes on the system:
Quoted 3 lines
Quoted 3 lines
EAL: Detected 16 lcore(s) EAL: Detected 1 NUMA nodes
lscpu report 4 NUMA nodes: NUMA node0 CPU(s): 0-15 NUMA
node1
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s):
48-63When built with make T=arm64-armv8a-linuxapp-gcc testpmd is detecting
NUMA nodes correctly:
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
EAL: Detected 64 lcore(s) EAL: Detected 4 NUMA nodes
Any idea what's the difference between the builds? I've looked at NUMA
config options but those seem ok to me:
Quoted 3 lines
Quoted 3 lines
grep NUMA arm64-armv8a-linuxapp-gcc/.config
build/rte_build_config.h
arm64-armv8a-linuxapp-gcc/.config:CONFIG_RTE_MAX_NUMA_NODES=8
Quoted 29 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
arm64-armv8a-linuxapp-gcc/.config:# a "type" is a combination of page size and NUMA node. total number of memseg arm64-armv8a-linuxapp-
gcc/.config:CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGE
Quoted 1 line
Quoted 1 line
S=y arm64-armv8a-linuxapp-
gcc/.config:CONFIG_RTE_LIBRTE_VHOST_NUMA=y
Quoted 1 line
Quoted 1 line
build/rte_build_config.h:#define
RTE_EAL_NUMA_AWARE_HUGEPAGES1Quoted 21 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
build/rte_build_config.h:#define
RTE_HAS_LIBNUMA1 build/rte_build_config.h:#defineRTE_LIBRTE_VHOST_NUMA1 build/rte_build_config.h:#defineRTE_MAX_NUMA_NODES4Any pointers are welcome.
What is the max lcores value in your build config? Do you know what settings are being chosen for your platform in config/arm/meson.build?
Quoted 7 lines
By way of follow-up, the reason to look at the cores is that the number of numa nodes is detected simply by iterating through all the cores discovered and finding out what NUMA node they are on. If only 16 cores are allowed, then only one NUMA node will be found because all cores discovered will report that as their NUMA location.
/Bruce
Thanks Bruce,
RTE_MAX_LCOREis being set only to 16 (line 39 in config/arm/meson.build), so that's the cause. Why is this used in native builds? Shouldn't this be discovered?
There is a patch set from Dharmik that detects lcore count for native builds:
http://patches.dpdk.org/project/dpdk/list/?series=11784
It will be good if you can try and test it.
Thanks.
/Ruifeng
Quoted 12 lines
Quoted 5 lines
I any case, setting it statically for implementer
0x41seems wrong, as there's a big variety different processors under it:
https://github.com/bp0/armids/blob/master/arm.idsSorry, no idea about this, since I don't generally work on/with the arm/meson.build file. Looking at git, that particular value seems to come from commit
d97108a33231("config: change defaults of armv8"), so perhaps check with the author and reviewer of that patch. [Adding them on CC]Regards,
/Bruce