]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/ethflood64k-w2.sh
Gzip ramdisk - booting is faster
[can-benchmark.git] / tests / ethflood64k-w2.sh
index ad7173d4189d646ab0a40a8274c174b4f4f7458e..3ddcea98bc2aec830e2f848e7c77a2d8df69fc80 100755 (executable)
@@ -5,19 +5,19 @@
 t() {
     for i in norm boost; do
        for budget in 300 1 1000; do
 t() {
     for i in norm boost; do
        for budget in 300 1 1000; do
-           echo $budget > /proc/sys/net/core/netdev_budget
-           ssh root@${SSH_CONNECTION%% *} 'ping -fs 64000 ${SSH_CONNECTION%% *}' &
-           PID_PING=$!
-           echo 0 1 > $DRIVER-$i-$budget-1000.dat
            if [ $budget -eq 300 -o $DRIVER == "socketcan" ]; then
                if [ $i != "boost" ] || boost_irq_prio 90; then
            if [ $budget -eq 300 -o $DRIVER == "socketcan" ]; then
                if [ $i != "boost" ] || boost_irq_prio 90; then
+                   echo $budget > /proc/sys/net/core/netdev_budget
+                   ssh root@${SSH_CONNECTION%% *} 'ping -fs 64000 ${SSH_CONNECTION%% *}' &
+                   PID_PING=$!
+                   echo 0 1 > $DRIVER-$i-$budget-1000.dat
                    PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
                    vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i-$budget -t 1 -d $CAN0 -w 2 -c $COUNT
                    kill $PID_S
                    PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
                    vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i-$budget -t 1 -d $CAN0 -w 2 -c $COUNT
                    kill $PID_S
+                   kill $PID_PING
+                   sleep 1 # Wait for remote buffers to become empty
                fi
            fi
                fi
            fi
-           kill $PID_PING
-           sleep 1 # Wait for remote buffers to become empty
        done
     done
 }
        done
     done
 }
@@ -25,7 +25,7 @@ t() {
 
 
 p() { cat <<EOF
 
 
 p() { cat <<EOF
-set title "Round-trip time with ethernet load (ping -fs 64000) 2ms wait between sends"
+set title "Round-trip time with ethernet load (ping -fs 64000) 2ms delay"
 set logscale y
 set grid
 set xlabel "Time [ms]"
 set logscale y
 set grid
 set xlabel "Time [ms]"