Commit 88a956d1 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

checkpoint on results scripts for hotnets

parent 415a9db3
all: build/results.tex all: build/results.tex build/simtime_graph.dat
clean: clean:
rm -rf build rm -rf build
build/results.tex: build/loc_corundum_bm build/loc_corundum_verilator \ build/results.tex: build/loc_corundum_bm build/loc_corundum_verilator \
build/nopaxos_eval build/vr_eval build/nopaxos_eval build/vr_eval build/corundum_eval
@echo '%' This is generated with make in the results directory \ @echo '%' This is generated with make in the results directory \
of the ehsim repo >$@ of the ehsim repo >$@
cat $^ >>$@ cat $^ >>$@
...@@ -25,3 +25,11 @@ build/nopaxos_eval: nopaxos_eval.sh common-functions.sh ...@@ -25,3 +25,11 @@ build/nopaxos_eval: nopaxos_eval.sh common-functions.sh
build/vr_eval: vr_eval.sh common-functions.sh build/vr_eval: vr_eval.sh common-functions.sh
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
bash vr_eval.sh >$@ bash vr_eval.sh >$@
build/corundum_eval: corundum.sh common-functions.sh
@mkdir -p $(dir $@)
bash corundum.sh >$@
build/simtime_graph.dat: simtime_graph.sh common-functions
@mkdir -p $(dir $@)
bash simtime_graph.sh >$@
...@@ -31,3 +31,49 @@ nopaxos_avglatencies() { ...@@ -31,3 +31,49 @@ nopaxos_avglatencies() {
grep "Average latency is" $f | sed 's/.*latency is \([0-9]*\) ns.*/\1/' grep "Average latency is" $f | sed 's/.*latency is \([0-9]*\) ns.*/\1/'
done done
} }
iperf_tputs() {
for d in ../experiments/out/$1/*/
do
[ ! -d $d ] && continue
tputs="0"
for f in $d/qemu.*.log $d/gem5.*.log
do
[ ! -f $f ] && continue
[[ "`basename $f`" = *.a.log ]] && continue
tp="`grep -e '^\[SUM\]' $f | sed \
-e 's:.*Bytes\s*\([0-9\.]*\)\s*Kbits/sec:\1:' \
-e 's:.*Bytes\s*\([0-9\.]*\)\s*Mbits/sec:\1 * 1000:' \
-e 's:.*Bytes\s*\([0-9\.]*\)\s*Gbits/sec:\1 * 1000000:' | \
sed -e s/ //`"
[ "$tp" = "" ] && continue
tputs="$tputs + `echo \"scale=2; $tp\" | bc`"
done
echo "scale=2; $tputs" | bc
done
}
iperf_server_tputs() {
for d in ../experiments/out/$1/*/
do
[ ! -d $d ] && continue
tputs="0"
for f in $d/qemu.a.log $d/gem5.a.log
do
[ ! -f $f ] && continue
tp="`grep 'bits/sec' $f | sed \
-e 's:.*Bytes\s*\([0-9\.]*\)\s*Kbits/sec.*:\1:' \
-e 's:.*Bytes\s*\([0-9\.]*\)\s*Mbits/sec.*:\1 * 1000:' \
-e 's:.*Bytes\s*\([0-9\.]*\)\s*Gbits/sec.*:\1 * 1000000:' | \
sed -e s/ //`"
[ "$tp" = "" ] && continue
tputs="$tputs + `echo \"scale=2; $tp\" | bc`"
done
echo "scale=2; $tputs" | bc
done
}
......
#!/bin/bash
source common-functions.sh
for exp in QemuBm QemuVerilator GemVerilator
do
for n in 1 8
do
case $n in
1) word=One ;;
8) word=Eight ;;
*) echo "bad n $n" 1>&2 ; exit 1 ;;
esac
case $exp in
QemuBm) dn=qemu-corundum-bm-switched-$n ;;
QemuVerilator) dn=qemu-corundum-verilator-switched-$n ;;
GemVerilator) dn=gem5-timing-corundum-verilator-switched-$n-nocp ;;
*) echo "bad experiment $exp" 1>&2 ; exit 1 ;;
esac
avg_tput="`iperf_tputs $dn | average`"
avg_dur="`exp_durations $dn | average`"
echo "\\newcommand{\\DataCorundum${exp}${word}AvgTput}{$avg_tput}"
echo "\\newcommand{\\DataCorundum${exp}${word}AvgDur}{$avg_dur}"
done
done
#!/bin/bash
source common-functions.sh
for n in 0 10 30 50 80 100 150
do
dn=gem5-timing-corundum-verilator-pair-udp-${n}m
avg_tput="`iperf_server_tputs $dn | average`"
avg_dur="`exp_durations $dn | average`"
echo "$avg_tput $avg_dur"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment