aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk-tests/dpdk_scripts/run_l2fwd.sh
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2017-04-03 12:34:32 +0200
committerPeter Mikus <pmikus@cisco.com>2017-04-05 04:47:50 +0000
commit44270521c22729cf6d58ea63ba6ddd1aa535b1c5 (patch)
treea44c46eeb99b1079e1e3975cba45f5dc8124f15d /dpdk-tests/dpdk_scripts/run_l2fwd.sh
parent5a04f6ddb56fefcc96452b4fe938616da309388f (diff)
Apply performance options for testpmd
- Add parameters to increase the performance of SUTs Change-Id: Ia9c5d76639bd931d8113c26e18861648de395322 Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'dpdk-tests/dpdk_scripts/run_l2fwd.sh')
-rwxr-xr-xdpdk-tests/dpdk_scripts/run_l2fwd.sh44
1 files changed, 33 insertions, 11 deletions
diff --git a/dpdk-tests/dpdk_scripts/run_l2fwd.sh b/dpdk-tests/dpdk_scripts/run_l2fwd.sh
index 80ed14a330..14c22970d7 100755
--- a/dpdk-tests/dpdk_scripts/run_l2fwd.sh
+++ b/dpdk-tests/dpdk_scripts/run_l2fwd.sh
@@ -49,18 +49,40 @@ sleep 2
cd ${ROOTDIR}/${DPDK_VERSION}/
rm -f ${TESTPMDLOG}
if [ "$jumbo_frames" = "yes" ]; then
- sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd -l ${cpu_corelist} \
- -n 4 -- --numa --nb-ports=2 --portmask=0x3 --nb-cores=${nb_cores} \
- --max-pkt-len=9000 --txqflags=0 --forward-mode=io --rxq=${queue_nums} \
- --txq=${queue_nums} --auto-start"
- sleep 10
- cat ${TESTPMDLOG}
+ sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd \
+ -l ${cpu_corelist} -n 4 -- \
+ --numa \
+ --nb-ports=2 \
+ --portmask=0x3 \
+ --nb-cores=${nb_cores} \
+ --max-pkt-len=9000 \
+ --txqflags=0 \
+ --forward-mode=io \
+ --rxq=${queue_nums} \
+ --txq=$((${nb_cores} + 1)) \
+ --burst=64 \
+ --rxd=1024 \
+ --txd=1024 \
+ --disable-link-check \
+ --auto-start"
else
- sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd -l ${cpu_corelist} \
- -n 4 -- --numa --nb-ports=2 --portmask=0x3 --nb-cores=${nb_cores} \
- --forward-mode=io --rxq=${queue_nums} --txq=${queue_nums} --auto-start"
- sleep 10
- cat ${TESTPMDLOG}
+ sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd \
+ -l ${cpu_corelist} -n 4 -- \
+ --numa \
+ --nb-ports=2 \
+ --portmask=0x3 \
+ --nb-cores=${nb_cores} \
+ --forward-mode=io \
+ --rxq=${queue_nums} \
+ --txq=$((${nb_cores} + 1)) \
+ --burst=64 \
+ --rxd=1024 \
+ --txd=1024 \
+ --disable-link-check \
+ --auto-start"
fi
+sleep 10
+less -r ${TESTPMDLOG}
+
cd ${PWDDIR}