cat <<EOF
set title "2048 GW rules (one per id, mask 0x7FF), no modifications"
set grid xtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [s]"
+set xlabel "Experiment time [s]"
set ylabel "Latency [ms]"
plot [:] [$range] \\
EOF
set logscale y
set grid xtics ytics mytics lw 1, lw 0.5
set key left
-set xlabel "Time [s]"
+set xlabel "Experiment time [s]"
set ylabel "Latency [ms]"
-plot [:] [0.06:4] \
+plot [:] [0.01:4] \
"len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \
"len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \
"len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \
set title "Single GW rule for all messages, no modifications"
set grid xtics ytics mytics lw 1, lw 0.5
set key left
-set xlabel "Time [s]"
+set xlabel "Experiment time [s]"
set ylabel "Latency [ms]"
plot [:] [$range] \
"len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \
plot_cmds() {
if [[ "$1" = detail ]]; then
- range=0.0:0.25
+ range=0.0:0.3
echo "set logscale y"
else
range=0.01:100
if [ $traffic = "flood" ]; then max=35; fi
cat <<EOF
-set title "No GW, two interfaces in PC"
+set title "No GW, two interfaces in PC (Latency = t_{kernel RX} - t_{before send} - t_{TX length})"
set logscale y
set grid
set xlabel "Time [ms]"
plot_cmds() {
if [[ "$1" = detail ]]; then
- range=0.06:0.3
+ range=0.0:0.3
else
- range=0.06:800
+ range=0.01:800
echo "set logscale y"
fi
if [ -s user2-msgs.txt ]; then
cat <<EOF
set title "Single GW rule for all messages, no modifications"
set grid xtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [s]"
+set xlabel "Experiment time [s]"
set ylabel "Latency [ms]"
plot [:] [$range] \
"user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \
plot_cmds() {
if [[ "$1" = detail ]]; then
[[ $traffic = eth ]] && return
- range=0.05:0.5
+ range=0.0:0.5
echo "set logscale y"
echo "set mxtics 5"
else
- range=0.05:1000
+ range=0.01:1000
echo "set logscale xy"
fi
cat <<EOF
set title "Kernel vs. userspace GW, no modifications"
+set termoption dashed
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
plot [$range] [1:$COUNT] \
- "user2-hist.txt" with lp lt 1 title "Userspace GW, 2 byte messages", \
- "user8-hist.txt" with lp lt 2 title "Userspace GW, 8 byte messages", \
- "kern2-hist.txt" with lp lt 1 title "Kernel GW, 2 byte messages", \
- "kern8-hist.txt" with lp lt 2 title "Kernel GW, 8 byte messages"
+ "user2-hist.txt" with lp lc 1 lt 1 title "Userspace GW, 2 byte messages", \
+ "user8-hist.txt" with lp lc 1 lt 2 title "Userspace GW, 8 byte messages", \
+ "kern2-hist.txt" with lp lc 2 lt 1 title "Kernel GW, 2 byte messages", \
+ "kern8-hist.txt" with lp lc 2 lt 2 title "Kernel GW, 8 byte messages"
EOF
}
plot_cmds() {
if [[ "$1" = detail ]]; then
- range=0.1:0.4
+ range=0:0.4
echo "set logscale y"
echo "set mxtics "
else
plot_cmds() {
if [[ "$1" = detail ]]; then
- range=0.1:0.4
+ range=0:0.4
echo "set logscale y"
echo "set mxtics 5"
else
- range=0.1:1000
+ range=0.01:1000
echo "set logscale xy"
fi
cat <<EOF