fi
min=$(head -n 1 id-0-msgs.txt | awk '{ print $2 }')
cat <<EOF
-set title "Single GW job for all messages, no modifications"
+set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
set grid xtics ytics mytics lw 1, lw 0.5
set xlabel "Time [s]"
set ylabel "Latency [ms]"
additionalImgs = glob.glob("graph?*.png")
if additionalImgs: print >>html, "<h3>Additional graphs</h3>"
for i in additionalImgs:
+ print >>html, "<h4>%s</h4>" % i[5:-4]
print >>html, self.fullImgLink(i)
os.chdir(cwd)
rm -rf *.pdf *.png
for i in "" $ADDITIONAL_PLOTS; do
plot_cmds $i | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n{\/*0.75 (GW kernel $kvers, Traffic $traffic, Load $load)}\"/" > plot.gp
- if [[ ! -s plot.gp ]]; then return; fi
+ if [[ ! -s plot.gp ]]; then continue; fi
if [ -z "$OPT_NO_X11" ]; then
echo "set terminal x11 enhanced; $(< plot.gp)" | gnuplot -persist
fi
# echo 'set terminal pngcairo color enhanced size 150,105 font ",1";' \
# "$(< plot.gp)" | gnuplot > thumb/${testname}$i.png
done
-
}
echo_plot() {
latester $LATESTER_OPTS -n modcscrc8
}
+ADDITIONAL_PLOTS=detail
+
plot_cmds() {
+ if [[ "$1" = detail ]]; then
+ range=0.14:0.2
+ echo "set logscale y"
+ echo "set key left bottom reverse Left"
+ else
+ range=0.05:100
+ echo "set logscale xy"
+ fi
cat <<EOF
set title "Single GW job for all messages with modifications, 8 byte messages"
-set logscale xy
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0.05:100] [1:$COUNT] \
+plot [$range] [1:$COUNT] \
"nop-hist.txt" with lp lt 1 title "No modifications", \
"mod-hist.txt" with lp lt 2 title "Two modifications", \
"mod2-hist.txt" with lp lt 3 title "Four modifications", \
plot_cmds() {
if [[ "$1" = detail ]]; then
- range=0.06:0.3
+ range=0.06:0.4
echo "set logscale y"
else
range=0.05:100
latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n kern8
}
+ADDITIONAL_PLOTS=detail
+
plot_cmds() {
+ if [[ "$1" = detail ]]; then
+ [[ $traffic = eth ]] && return
+ range=0.05:0.5
+ echo "set logscale y"
+ echo "set mxtics 5"
+ else
+ range=0.05:1000
+ echo "set logscale xy"
+ fi
cat <<EOF
set title "Kernel vs. userspace GW, no modifications"
-set logscale xy
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0.05:1000] [1:$COUNT] \
- "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", \
+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"
+ "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"
EOF
}
sshgw ip link del dev vcan0
}
+ADDITIONAL_PLOTS=detail
+
plot_cmds() {
+ if [[ "$1" = detail ]]; then
+ range=0.1:0.4
+ echo "set logscale y"
+ echo "set mxtics "
+ else
+ range=0.1:1000
+ echo "set logscale xy"
+ fi
cat <<EOF
set title "Chained GW jobs on a signle VCAN interface"
-set logscale xy
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0.1:1000] [1:$COUNT] \\
+plot [$range] [1:$COUNT] \\
EOF
lt=2
for i in $numjobs; do
done
}
+ADDITIONAL_PLOTS=detail
+
plot_cmds() {
+ if [[ "$1" = detail ]]; then
+ range=0.1:0.4
+ echo "set logscale y"
+ echo "set mxtics 5"
+ else
+ range=0.1:1000
+ echo "set logscale xy"
+ fi
cat <<EOF
set title "Chained GW jobs on multiple VCAN interfaces"
-set logscale xy
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0.1:1000] [1:$COUNT] \\
+plot [$range] [1:$COUNT] \\
EOF
lt=1
for i in $numjobs; do