|
@@ -48,7 +48,7 @@ fi
|
|
run() {
|
|
run() {
|
|
now=`date`
|
|
now=`date`
|
|
echo "$now: Running $1 $2 $3 $4 $5 ..."
|
|
echo "$now: Running $1 $2 $3 $4 $5 ..."
|
|
- logfile="${1}_${3}_${4}_${5}.out"
|
|
+ logfile="${1}_${3}_${4}_${5}.out${LOGSUFFIX}"
|
|
./set-networking $3 $4
|
|
./set-networking $3 $4
|
|
echo "Network setup: $3 $4" >> $logfile
|
|
echo "Network setup: $3 $4" >> $logfile
|
|
./run-experiment $1 $2 $5 >> $logfile
|
|
./run-experiment $1 $2 $5 >> $logfile
|
|
@@ -66,7 +66,7 @@ parse() {
|
|
if [ "$whichexps" == "test" ]; then
|
|
if [ "$whichexps" == "test" ]; then
|
|
echo "Running test experiment..."
|
|
echo "Running test experiment..."
|
|
run read 16 1us 100gbit 2
|
|
run read 16 1us 100gbit 2
|
|
- parse read_1us_100gbit_2.out
|
|
+ parse read_1us_100gbit_2.out${LOGSUFFIX}
|
|
exit
|
|
exit
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -137,6 +137,10 @@ fi
|
|
now=`date`
|
|
now=`date`
|
|
echo "$now: Experiments complete"
|
|
echo "$now: Experiments complete"
|
|
|
|
|
|
|
|
+# If you specified a custom log suffix, you're going to be parsing the
|
|
|
|
+# outputs differently.
|
|
|
|
+if [ "$LOGSUFFIX" == "" ]; then
|
|
|
|
+
|
|
parse *.out > floram.dat
|
|
parse *.out > floram.dat
|
|
|
|
|
|
echo
|
|
echo
|
|
@@ -166,3 +170,5 @@ egrep 'Floram read .* 1us 100gbit .* s$' floram.dat | sort -k3 -n
|
|
echo
|
|
echo
|
|
echo "# Figure 9(c)"
|
|
echo "# Figure 9(c)"
|
|
egrep 'Floram read .* 1us 100gbit .* KiB$' floram.dat | sort -k3 -n
|
|
egrep 'Floram read .* 1us 100gbit .* KiB$' floram.dat | sort -k3 -n
|
|
|
|
+
|
|
|
|
+fi
|