X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/d48a4f69b198ff8b3bd026ec63a5ec0905c97c08..167bee35e3ffc6500bb52bbb91d3b423d2863abf:/tests/ethload.sh diff --git a/tests/ethload.sh b/tests/ethload.sh index 8aecd34..61e7ce8 100755 --- a/tests/ethload.sh +++ b/tests/ethload.sh @@ -4,29 +4,40 @@ t() { for i in norm boost; do - ssh root@${SSH_CONNECTION%% *} 'find -L /usr/src/linux -type f -exec cat "{}" ";"' > /dev/null & - PID_LOAD=$! - echo 0 1 > $DRIVER-$i-1000.dat - if [ $i != "boost" ] || boost_irq_prio 90; then - PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1` - vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 0 -c $COUNT - kill $PID_S - fi - kill $PID_LOAD + for budget in 300 1 1000; do + echo $budget > /proc/sys/net/core/netdev_budget + ssh root@${SSH_CONNECTION%% *} 'find -L /usr/src/linux -type f -exec cat "{}" ";"' > /dev/null & + PID_LOAD=$! + echo 0 1 > $DRIVER-$i-$budget-1000.dat + if [ $budget -eq 300 -o $DRIVER == "socketcan" ]; then + if [ $i != "boost" ] || boost_irq_prio 90; then + 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 0 -c $COUNT + kill $PID_S + fi + fi + kill $PID_LOAD + sleep 1 # Wait for remote buffers to become empty + done done } -PLOT_CMD=' -set title "Round-trip time with receive ethernet load" +p() { cat <