Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper-io-eval
Commits
c64360d1
Commit
c64360d1
authored
May 30, 2022
by
Florian Fischer
Browse files
add script to export the results as dataref
parent
ce03d9b7
Pipeline
#82994
passed with stage
in 1 minute and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
export-ma-results-as-dataref.sh
0 → 100755
View file @
c64360d1
#!/bin/sh
set
-e
RES_DIR
=
"
${
1
:-
results
/ma
}
"
THROUGHPUT_DIR
=
"
${
RES_DIR
}
"
/throughput
LATENCY_DIR
=
"
${
RES_DIR
}
"
/latency
LATENCY_RUN
=
"2"
LATENCIES
=
"latencies.
${
LATENCY_RUN
}
.csv"
./parse_results.py
"
${
THROUGHPUT_DIR
}
"
--desc-stats
median
--dataref
SERVER_STATS
=
"total-scheduled-fibers-to-local total-scheduled-fibers-to-mpsc-queue
\
sleep-percentage total-next-fiber-hint-io total-next-fiber-stolen
\
total-next-io-fiber-stolen completer-reaped-completions"
./parse_server_stats.py
"
${
THROUGHPUT_DIR
}
"
--variables
${
SERVER_STATS
}
--desc-stats
mean
\
|
sed
's|drefset[^/]*/|&throughput/|g'
./plot_tail_latency.py
--summarize
--dataref
"
${
LATENCY_DIR
}
"
/
*
/
$LATENCIES
for
d
in
"
${
LATENCY_DIR
}
"
/
*
;
do
[[
!
-d
"
${
d
}
"
]]
&&
continue
impl
=
"
$(
basename
"
${
d
}
"
)
"
tail
-2
"
${
d
}
"
/
${
LATENCY_RUN
}
.
*
perf_energy.txt |
while
read
-r
line
;
do
val
=
$(
echo
"
$line
"
|
cut
-d
','
-f
1
)
key
=
$(
echo
"
$line
"
|
cut
-d
','
-f
3
)
echo
"
\d
refset[unit=
\u
nit{
\j
oule}]{
${
impl
}
/latency/
${
key
}
}{
${
val
}
}"
done
server_out
=
"
${
d
}
/
${
LATENCY_RUN
}
.out"
for
key
in
sleep-percentage hint-io next
{
,-io
}
-fiber-stolen
;
do
val
=
"
$(
grep
${
key
}
"
${
server_out
}
"
|
cut
-d
' '
-f
2
)
"
if
[[
-n
"
${
val
}
"
]]
;
then
echo
"
\d
refset{
${
impl
}
/latency/
${
key
}
}{
${
val
}
}"
fi
done
done
Write
Preview
Supports
Markdown
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