]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Rename one experiment
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 20 Jan 2014 10:56:01 +0000 (11:56 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 20 Jan 2014 10:56:01 +0000 (11:56 +0100)
ugw/data/bench-all.sh
ugw/data/plot-thr.gp
ugw/data/preprocess.m

index a718d89981d166b3c7838bd9c881c3713b4b7ef9..6138288ddbf3970fa92eda581479272cefe1ab4c 100755 (executable)
@@ -33,7 +33,7 @@ while [ "${1#-}" != "$1" ]; do
     shift
 done
 
     shift
 done
 
-methods=${@:-rtems kernel read-write readnb-write readnb-mmap mmap-write mmap-mmap mmapbusy-write mmapbusy-mmap readbusy-write}
+methods=${@:-rtems kernel read-write readnb-write readnb-mmap mmap-write mmap-mmap mmapbusy-write mmapbusy-mmap readbusy-write readbusynoirq-write}
 
 set -x
 for method in $methods; do
 
 set -x
 for method in $methods; do
@@ -49,7 +49,7 @@ for method in $methods; do
        mmapbusy-write) ../ppc/boot -a "ugw=|-r mmapbusy|" --exiton "UGW started";;
        mmapbusy-mmap)  ../ppc/boot -a "ugw=|-r mmapbusy -t mmap|" --exiton "UGW started";;
        readbusy-write) ../ppc/boot -a "ugw=|-b 300|" --exiton "UGW started";;
        mmapbusy-write) ../ppc/boot -a "ugw=|-r mmapbusy|" --exiton "UGW started";;
        mmapbusy-mmap)  ../ppc/boot -a "ugw=|-r mmapbusy -t mmap|" --exiton "UGW started";;
        readbusy-write) ../ppc/boot -a "ugw=|-b 300|" --exiton "UGW started";;
-       readbusy-noirq) ../ppc/boot -a "ugw=|-b 300|" --kernel uImage.noirq --exiton "UGW started";;
+       readbusynoirq-write) ../ppc/boot -a "ugw=|-b 300|" --kernel uImage.noirq --exiton "UGW started";;
        *)
            echo >&2 "Unknown method '$method'";
            exit 1;
        *)
            echo >&2 "Unknown method '$method'";
            exit 1;
@@ -59,7 +59,7 @@ for method in $methods; do
        arg=${args[$i]}
        dir=${dirs[$i]}
        set -x
        arg=${args[$i]}
        dir=${dirs[$i]}
        set -x
-       ssh glab "latester -d can0 -d can1 -d can2 -c 3200 -q -n $method $arg"
+       ssh glab "sudo ip l set eth0 down; sudo ~/bin/latester -d can0 -d can1 -d can2 -c 5000 -q -n $method $arg; sudo ip l set eth0 up"
        mkdir -p $dir
        scp glab:"$method-*.txt" $dir
        (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .)
        mkdir -p $dir
        scp glab:"$method-*.txt" $dir
        (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .)
index b3a4bd4efdebd742e20aa905749061a8c944fe9f..a157c1621923dc7def0c91b35a2e833abf656e1a 100755 (executable)
@@ -1,4 +1,7 @@
 #!/usr/bin/env gnuplot
 #!/usr/bin/env gnuplot
+
+! ./throughput-dep.sh
+
 reset
 set xlabel "Frame period [µs]"
 set ylabel "Latency [µs] + packet loss"
 reset
 set xlabel "Frame period [µs]"
 set ylabel "Latency [µs] + packet loss"
@@ -9,7 +12,7 @@ set ytics (1e1,2e1,5e1,1e2,2e2,5e2,1e3,2e3,5e3,1e4,2e4,5e4,1e5,2e5,5e5)
 set logscale y
 set key reverse Left invert outside
 set grid
 set logscale y
 set key reverse Left invert outside
 set grid
-loss_scale=10
+loss_scale=3
 plot [:160] \
      'kernel.dat' using 1:2:($3*loss_scale) title 'kernel', \
      'mmap-mmap.dat' using 1:2:($3*loss_scale) title 'mmap-mmap', \
 plot [:160] \
      'kernel.dat' using 1:2:($3*loss_scale) title 'kernel', \
      'mmap-mmap.dat' using 1:2:($3*loss_scale) title 'mmap-mmap', \
@@ -18,7 +21,7 @@ plot [:160] \
      'mmapbusy-write.dat' using 1:2:($3*loss_scale) title 'mmapbusy-write', \
      'readnb-mmap.dat' using 1:2:($3*loss_scale) title 'readnb-mmap', \
      'read-mmap.dat' using 1:2:($3*loss_scale) title 'read-mmap', \
      'mmapbusy-write.dat' using 1:2:($3*loss_scale) title 'mmapbusy-write', \
      'readnb-mmap.dat' using 1:2:($3*loss_scale) title 'readnb-mmap', \
      'read-mmap.dat' using 1:2:($3*loss_scale) title 'read-mmap', \
-     'readbusy-noirq.dat' using 1:2:($3*loss_scale) title 'readbusy-noirq', \
+     'readbusynoirq-write.dat' using 1:2:($3*loss_scale) title 'readbusynoirq-write', \
      'read-write.dat' using 1:2:($3*loss_scale) title 'read-write', \
      'readbusy-write.dat' using 1:2:($3*loss_scale) title 'readbusy-write', \
      'readnb-write.dat' using 1:2:($3*loss_scale) title 'readnb-write'
      'read-write.dat' using 1:2:($3*loss_scale) title 'read-write', \
      'readbusy-write.dat' using 1:2:($3*loss_scale) title 'readbusy-write', \
      'readnb-write.dat' using 1:2:($3*loss_scale) title 'readnb-write'
index ef729fd7e420989a6b0948b62656094254c82c58..b9a557f0188d0b832922a33af4d8a6d84e835fa8 100755 (executable)
@@ -9,7 +9,7 @@ datafiles = {
             "mmapbusy-write.dat"
             "readnb-write.dat"
             "readbusy-write.dat"
             "mmapbusy-write.dat"
             "readnb-write.dat"
             "readbusy-write.dat"
-            "readbusy-noirq.dat"
+            "readbusynoirq-write.dat"
             "readnb-mmap.dat"
             "read-mmap.dat"
             "read-write.dat"
             "readnb-mmap.dat"
             "read-mmap.dat"
             "read-write.dat"