With fixed ranges it is possible to compare related graphs.
plot_cmds() {
cat <<EOF
set title "2048 GW jobs (one per id, mask C00007FF), no modifications"
-set logscale y
-set grid
+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:2] [1:$COUNT] \\
+plot [0.05:50] [1:$COUNT] \\
EOF
lt=1
for i in $ids; do
plot_cmds() {
cat <<EOF
set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
-set logscale y
-set grid
+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:$COUNT] \\
+plot [0.1:100] [1:$COUNT] \\
EOF
lt=1
for i in $ids; do
plot_cmds() {
cat <<EOF
set title "Single GW job for all messages with modifications, 8 byte messages"
-set logscale y
-set grid
+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] [1:$COUNT] \
+plot [0.05:100] [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() {
cat <<'EOF'
set title "Single GW job for all messages, no modifications, high (soft)irq task priority"
-set grid
+set logscale y
+set grid xtics ytics mytics lw 1, lw 0.5
set key left
set xlabel "Time [s]"
set ylabel "Latency [ms]"
-plot [:] [:0.5] \
+plot [:] [0.06:4] \
"len2-msgs.txt" using 2:(1000*$14) with points title "2 byte messages", \
"len4-msgs.txt" using 2:(1000*$14) with points title "4 byte messages", \
"len6-msgs.txt" using 2:(1000*$14) with points title "6 byte messages", \
plot_cmds() {
cat <<EOF
set title "Single GW job for all messages, no modifications, high (soft)irq task priority"
-set logscale y
-set grid
+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] [1:$COUNT] \
+plot [0.05:100] [1:$COUNT] \
"len2-hist.txt" with lp lt 1 title "2 byte messages", \
"len4-hist.txt" with lp lt 2 title "4 byte messages", \
"len6-hist.txt" with lp lt 3 title "6 byte messages", \
. lib.sh
main() {
- ln -s ../nop-highprio/*.txt .
+ ln -s ../nop/*.txt .
}
plot_cmds() {
cat <<'EOF'
set title "Single GW job for all messages, no modifications"
-set grid
+set logscale y
+set grid xtics ytics mytics lw 1, lw 0.5
+set key left
set xlabel "Time [s]"
set ylabel "Latency [ms]"
-plot [:] [:0.5] \
+plot [:] [0.06:4] \
"len2-msgs.txt" using 2:(1000*$14) with points title "2 byte messages", \
"len4-msgs.txt" using 2:(1000*$14) with points title "4 byte messages", \
"len6-msgs.txt" using 2:(1000*$14) with points title "6 byte messages", \
plot_cmds() {
cat <<EOF
set title "Single GW job for all messages, no modifications"
-set logscale y
-set grid
+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] [1:$COUNT] \
+plot [0.05:100] [1:$COUNT] \
"len2-hist.txt" with lp lt 1 title "2 byte messages", \
"len4-hist.txt" with lp lt 2 title "4 byte messages", \
"len6-hist.txt" with lp lt 3 title "6 byte messages", \
}
plot_cmds() {
+ max=0.5
+ if [ $traffic = "flood" ]; then max=35; fi
+
cat <<EOF
set title "No GW, two interfaces in PC"
set logscale y
set grid
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0:] [1:$COUNT] \
+plot [0.01:$max] [1:$COUNT] \
"len2-hist.txt" with lp lt 1 title "2 byte messages", \
"len4-hist.txt" with lp lt 2 title "4 byte messages", \
"len6-hist.txt" with lp lt 3 title "6 byte messages", \
plot_cmds() {
cat <<EOF
set title "Kernel vs. userspace GW, no modifications"
-set logscale y
-set grid
+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:$COUNT] \
+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", \
"user2-hist.txt" with lp lt 1 title "Userspace GW, 2 byte messages", \
plot_cmds() {
cat <<EOF
set title "Chained GW jobs on a signle VCAN interface"
-set logscale y
-set grid
+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:10] [1:$COUNT] \\
+plot [0.1:1000] [1:$COUNT] \\
EOF
lt=2
for i in $numjobs; do
plot_cmds() {
cat <<EOF
set title "Chained GW jobs on multiple VCAN interfaces"
-set logscale y
-set grid
+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] [1:$COUNT] \\
+plot [0.1:1000] [1:$COUNT] \\
EOF
lt=1
for i in $numjobs; do