]> git.droids-corp.org - dpdk.git/commitdiff
devtools: fix null test for NUMA systems
authorDavid Marchand <david.marchand@redhat.com>
Wed, 13 Apr 2022 11:19:44 +0000 (13:19 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Jun 2022 10:49:46 +0000 (12:49 +0200)
On NUMA systems, default cores (0 and 1) might be on different memory
nodes. Double the amount of memory.

Fixes: 9e6b36c34ce9 ("app/testpmd: reduce memory consumption")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
devtools/test-null.sh

index 4ba57a682977f0144c73d3deffe26fc414a94108..6cd34f64f10a621e1a494869883360f1f97aaf1f 100755 (executable)
@@ -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