]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/ethload300MHz.sh
Added test to check influence of -w
[can-benchmark.git] / tests / ethload300MHz.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     for i in norm boost; do
7         ssh root@${SSH_CONNECTION%% *} 'find -L /usr/src/linux -type f -exec cat "{}" ";"' > /dev/null &
8         PID_LOAD=$!
9         [ $i == "boost" ] && boost_irq_prio 90
10         cpufreq-set -f 300MHz
11         PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
12         vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 2 -c 10000
13         cpufreq-set -f 2400MHz
14         kill $PID_S
15         kill $PID_LOAD
16     done
17 }
18
19
20
21 PLOT_CMD='
22 set title "Round-trip time with receive ethenet load (`uname -r`, CPU\\@300 MHz)"
23 set logscale y
24 set grid
25 set xlabel "Time [{/Symbol m}s]"
26 set ylabel "Latency profile [messages]"
27 plot [0:] "socketcan-norm-1000.dat" with lp title "Socketcan",\
28           "lincan-norm-1000.dat" with lp title "Lincan",\
29           "socketcan-boost-1000.dat" with lp title "Socketcan boosted IRQ prio",\
30           "lincan-boost-1000.dat" with lp title "Lincan boosted IRQ prio"
31 '
32