Skip to content

Commit

Permalink
Merge PR #1469 (apps.mellanox.connectx: benchmark matrix) into max-next
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Apr 7, 2022
2 parents 2ff0924 + 67850d1 commit e7fd141
Show file tree
Hide file tree
Showing 8 changed files with 856 additions and 16 deletions.
18 changes: 18 additions & 0 deletions src/apps/mellanox/benchmark-macs-vlans.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

echo i,macs,vlans,txrate,txdrop,txerror,rxrate,rxdrop,rxerror
for i in `seq 1 3`; do
for macs in `seq 4 4 24`; do
for vlans in `seq 0 4 24`; do
out=$(./snabb snsh apps/mellanox/benchmark.snabb -a 81:00.0 -b 81:00.1 -A 6-11 -B 12-17 \
-m source-fwd -w 6 -q 4 -e $macs -v $vlans)
txrate=$(echo "$out" | grep "Tx Rate is" | cut -d " " -f 4)
txdrop=$(echo "$out" | grep "Tx Drop Rate is" | cut -d " " -f 5)
txerror=$(echo "$out" | grep "Tx Error Rate is" | cut -d " " -f 5)
rxrate=$(echo "$out" | grep "Rx Rate is" | cut -d " " -f 4)
rxdrop=$(echo "$out" | grep "Rx Drop Rate is" | cut -d " " -f 5)
rxerror=$(echo "$out" | grep "Rx Error Rate is" | cut -d " " -f 5)
echo "$i,$macs,$vlans,$txrate,$txdrop,$txerror,$rxrate,$rxdrop,$rxerror"
done
done
done
59 changes: 59 additions & 0 deletions src/apps/mellanox/benchmark-tx-fwd-queues-sizes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash

sizes_fine="64
66
70
74
78
84
90
96
104
114
126
140
156
174
196
222
254
292
338
392
456
534
628
740
874
1034
1226
1456"

sizes_coarse="64
128
256
512
1024"

echo i,workers,queues,pktsize,txrate,txdrop,txerror,rxrate,rxdrop,rxerror,fwrate,fwdrop,fwerror
for i in `seq 1 3`; do
for w in `seq 1 6`; do
for q in `seq 1 4`; do
for s in $sizes_coarse; do
out=$(./snabb snsh apps/mellanox/benchmark.snabb -a 81:00.0 -b 81:00.1 -A 6-11 -B 12-17 \
-m source-fwd -w $w -q $q -s $s -n 100e6)
txrate=$(echo "$out" | grep "Tx Rate is" | cut -d " " -f 4)
txdrop=$(echo "$out" | grep "Tx Drop Rate is" | cut -d " " -f 5)
txerror=$(echo "$out" | grep "Tx Error Rate is" | cut -d " " -f 5)
rxrate=$(echo "$out" | grep "Rx Rate is" | cut -d " " -f 4)
rxdrop=$(echo "$out" | grep "Rx Drop Rate is" | cut -d " " -f 5)
rxerror=$(echo "$out" | grep "Rx Error Rate is" | cut -d " " -f 5)
fwrate=$(echo "$out" | grep "Fw Rate is" | cut -d " " -f 4)
fwdrop=$(echo "$out" | grep "Fw Drop Rate is" | cut -d " " -f 5)
fwerror=$(echo "$out" | grep "Fw Error Rate is" | cut -d " " -f 5)
echo "$i,$w,$q,$s,$txrate,$txdrop,$txerror,$rxrate,$rxdrop,$rxerror,$fwrate,$fwdrop,$fwerror"
#echo $out
done
done
done
done
13 changes: 13 additions & 0 deletions src/apps/mellanox/benchmark-tx-only-numa.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

echo i,core_A,core_B,score,unit
for i in `seq 5`; do
for A in `seq 12 23`; do
for B in `seq 12 23`; do
out=$(./snabb snsh apps/mellanox/benchmark.snabb -a 81:00.0 -b 81:00.1 -A $A -B $B)
score=$(echo "$out" | grep "Tx Rate" | cut -d " " -f 4)
unit=$(echo "$out" | grep "Tx Rate" | cut -d " " -f 5)
echo "$i,$A,$B,$score,$unit"
done
done
done
53 changes: 53 additions & 0 deletions src/apps/mellanox/benchmark-tx-only-queues-sizes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env bash

sizes_fine="64
66
70
74
78
84
90
96
104
114
126
140
156
174
196
222
254
292
338
392
456
534
628
740
874
1034
1226
1456"

sizes_coarse="64
128
256
512
1024"

echo i,workers,queues,pktsize,rate,drop,error
for i in `seq 1 3`; do
for w in `seq 1 5`; do
for q in `seq 1 4`; do
for s in $sizes_coarse; do
out=$(./snabb snsh apps/mellanox/benchmark.snabb -a b3:00.0 -b b3:00.1 -A 2-6 -B 7-11 \
-m source -w $w -q $q -s $s -n 100e6)
rate=$(echo "$out" | grep "Tx Rate is" | cut -d " " -f 4)
drop=$(echo "$out" | grep "Tx Drop Rate is" | cut -d " " -f 5)
error=$(echo "$out" | grep "Tx Error Rate is" | cut -d " " -f 5)
echo "$i,$w,$q,$s,$rate,$drop,$error"
#echo $out
done
done
done
done
56 changes: 56 additions & 0 deletions src/apps/mellanox/benchmark-tx-rx-queues-sizes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/usr/bin/env bash

sizes_fine="64
66
70
74
78
84
90
96
104
114
126
140
156
174
196
222
254
292
338
392
456
534
628
740
874
1034
1226
1456"

sizes_coarse="64
128
256
512
1024"

echo i,workers,queues,pktsize,txrate,txdrop,txerror,rxrate,rxdrop,rxerror
for i in `seq 1 3`; do
for w in `seq 1 5`; do
for q in `seq 1 4`; do
for s in $sizes_coarse; do
out=$(./snabb snsh apps/mellanox/benchmark.snabb -a b3:00.0 -b b3:00.1 -A 2-6 -B 7-11 \
-m source-sink -w $w -q $q -s $s -n 100e6)
txrate=$(echo "$out" | grep "Tx Rate is" | cut -d " " -f 4)
txdrop=$(echo "$out" | grep "Tx Drop Rate is" | cut -d " " -f 5)
txerror=$(echo "$out" | grep "Tx Error Rate is" | cut -d " " -f 5)
rxrate=$(echo "$out" | grep "Rx Rate is" | cut -d " " -f 4)
rxdrop=$(echo "$out" | grep "Rx Drop Rate is" | cut -d " " -f 5)
rxerror=$(echo "$out" | grep "Rx Error Rate is" | cut -d " " -f 5)
echo "$i,$w,$q,$s,$txrate,$txdrop,$txerror,$rxrate,$rxdrop,$rxerror"
#echo $out
done
done
done
done
Loading

0 comments on commit e7fd141

Please sign in to comment.