-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #1469 (apps.mellanox.connectx: benchmark matrix) into max-next
- Loading branch information
Showing
8 changed files
with
856 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.