Skip to content

Commit

Permalink
devtools: fix null test for NUMA systems
Browse files Browse the repository at this point in the history
[ upstream commit 924de7b ]

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

Fixes: 9e6b36c ("app/testpmd: reduce memory consumption")

Signed-off-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
david-marchand authored and kevintraynor committed Jun 8, 2022
1 parent 0470e12 commit 4338498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devtools/test-null.sh
Expand Up @@ -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

0 comments on commit 4338498

Please sign in to comment.