Skip to contentSkip to conversation

devtools: fix null test for NUMA systems

PATCH Applied David Marchand 2 participants 2 messages Apr 13, 2022 – Jun 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtools: fix null test for NUMA systems

On NUMA systems, default cores (0 and 1) might be on different memory nodes. Double the amount of memory.

---
 devtools/test-null.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
devtools/test-null.sh +2 -1
index 4ba57a6829..6cd34f64f1 100755
@@ -27,6 +27,7 @@ else
 fi
 
 (sleep 1 && echo stop) |
-$testpmd -c $coremask --no-huge -m 20 \
+# testpmd only needs 20M, make it x2 (default number of cores) for NUMA systems
+$testpmd -c $coremask --no-huge -m 40 \
 	$libs -a 0:0.0 --vdev net_null1 --vdev net_null2 $eal_options -- \
 	--no-mlockall --total-num-mbufs=2048 $testpmd_options -ia
Signature · 1 line
2.23.0