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
e0d85df2
Commit
e0d85df2
authored
May 18, 2022
by
Florian Fischer
Browse files
add support for min/max/probability server commands
Generate and evaluate '0us-10ms-0.5' emper flavors.
parent
dd436a32
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/emper.py
View file @
e0d85df2
...
...
@@ -383,12 +383,17 @@ def generate_computation_flavors(flavors: Flavors,
for
computation_desc
in
computation_descs
:
cmd_suffix
=
''
parts
=
computation_desc
.
split
(
'-'
)
for
part
in
parts
:
for
part
in
parts
[:
2
]
:
match
=
re
.
match
(
COMPUTATION_RE
,
part
)
assert
match
computation
,
unit
=
match
.
groups
()
cmd_suffix
+=
f
'
{
int
(
computation
)
*
S2NS
[
unit
]
}
'
# add min max probability
if
len
(
parts
)
==
3
:
probability
=
float
(
parts
[
2
])
cmd_suffix
+=
f
'
{
probability
}
'
comp_flavor_dict
=
flavor_dict
.
copy
()
# strip first newline since the prepare_flavors() will add it back
comp_flavor_dict
[
'server_cmd_suffix'
]
=
cmd_suffix
[
1
:]
...
...
@@ -397,7 +402,7 @@ def generate_computation_flavors(flavors: Flavors,
return
comp_flavors
COMPUTATION_DESCRIPTIONS
=
[
'200us'
,
'0us-1ms'
]
COMPUTATION_DESCRIPTIONS
=
[
'200us'
,
'0us-1
0
ms
-0.5
'
]
FLAVORS
.
update
(
generate_computation_flavors
(
FLAVORS
,
COMPUTATION_DESCRIPTIONS
))
...
...
eval-muhq-ma.sh
View file @
e0d85df2
...
...
@@ -115,13 +115,13 @@ eval_latency() {
mkdir
-p
"
${
OUT
}
"
/latency
./eval.py
"
${
COMMON_ARGS_LATENCY
[@]
}
"
-f
{
no-sleep,vanilla
}
-
{
200us,0us-1ms
}
\
./eval.py
"
${
COMMON_ARGS_LATENCY
[@]
}
"
-f
{
no-sleep,vanilla
}
-
{
200us,0us-1
0
ms
-0.5
}
\
--
emper go-200us tokio-200us
./eval.py
"
${
COMMON_ARGS_LATENCY
[@]
}
"
-f
\
{
pipe,waitfd
}{
,-no-comp
}
-
{
200us,0us-1ms
}
\
io-stealing-
{
pipe,waitfd
}
-no-comp-
{
200us,0us-1ms
}
\
io-notification-
{
waitfree,waitfd
}
-no-comp-
{
200us,0us-1ms
}
\
{
pipe,waitfd
}{
,-no-comp
}
-
{
200us,0us-1
0
ms
-0.5
}
\
io-stealing-
{
pipe,waitfd
}
-no-comp-
{
200us,0us-1
0
ms
-0.5
}
\
io-notification-
{
waitfree,waitfd
}
-no-comp-
{
200us,0us-1
0
ms
-0.5
}
\
--
emper
}
...
...
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