Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
88a956d1
Commit
88a956d1
authored
Jul 03, 2020
by
Antoine Kaufmann
Browse files
checkpoint on results scripts for hotnets
parent
415a9db3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
2 deletions
+98
-2
results/Makefile
results/Makefile
+10
-2
results/common-functions.sh
results/common-functions.sh
+46
-0
results/corundum.sh
results/corundum.sh
+29
-0
results/simtime_graph.sh
results/simtime_graph.sh
+13
-0
No files found.
results/Makefile
View file @
88a956d1
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
>
$@
results/common-functions.sh
View file @
88a956d1
...
@@ -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
}
...
...
results/corundum.sh
0 → 100644
View file @
88a956d1
#!/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
results/simtime_graph.sh
0 → 100644
View file @
88a956d1
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment