Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christopher Ferreira
erods-bench
Commits
fc6f9875
Commit
fc6f9875
authored
Jul 27, 2017
by
aumgn
Browse files
[exp] Remove lb_bias parameter
parent
9ddce1b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/mc-2/exp
View file @
fc6f9875
...
...
@@ -26,7 +26,7 @@ msg() {
usage
()
{
cat
<<
HD
Usage:
$script
[-v] <programs> <pinning> <nodes> <use_perf> <autogroup>
<lb_bias>
<repeat>
Usage:
$script
[-v] <programs> <pinning> <nodes> <use_perf> <autogroup> <repeat>
-v toggle verbose mode
<programs> list of programs to run
...
...
@@ -34,7 +34,6 @@ Usage: $script [-v] <programs> <pinning> <nodes> <use_perf> <autogroup> <lb_bias
<nodes> list of numbers of nodes
<use_perf> whether ('y') or not ('n') perf should be used
<autogroup> whether ('y') or not ('n') autogroup should be enabled
<lb_bias> whether ('y') or not ('n') load_balancing should be biased with exponential smoothing
<repeat> the number of time to run the application for each parameter combinations
Run volrend on 64 cores with and without pinning one time each:
...
...
@@ -44,9 +43,8 @@ with pinning and without pinning,
on 2,3,4,5,6,7,8 nodes
with and without perf,
with and without autogroup,
with and without lb_bias,
five times each:
>>
$0
"volrend word_count" "cores none" "
\$
(seq 2 8)" "y n" "y n"
"y n"
5
>>
$0
"volrend word_count" "cores none" "
\$
(seq 2 8)" "y n" "y n" 5
HD
}
...
...
@@ -151,7 +149,6 @@ dump_args() {
echo
"NODES =
$nodes_list
"
>>
$args_file
echo
"USE_PERF =
$use_perfs
"
>>
$args_file
echo
"AUTOGROUP =
$autogroups
"
>>
$args_file
echo
"LB_BIAS =
$lb_biases
"
>>
$args_file
echo
"REPEAT =
$repeat
"
>>
$args_file
}
...
...
@@ -172,7 +169,6 @@ run_iterations() {
local
nodes
=
$1
;
shift
local
use_perf
=
$1
;
shift
local
autogroup
=
$1
;
shift
local
lb_bias
=
$1
;
shift
local
threads
=
$((
$nodes
*
8
))
if
[[
$pinning
==
'cores'
]]
;
then
...
...
@@ -199,18 +195,9 @@ run_iterations() {
exit
35
fi
if
[[
$lb_bias
==
"y"
]]
;
then
echo
'LB_BIAS'
|
sudo tee
/sys/kernel/debug/sched_features
>
/dev/null
elif
[[
$lb_bias
==
"n"
]]
;
then
echo
'NO_LB_BIAS'
|
sudo tee
/sys/kernel/debug/sched_features
>
/dev/null
else
echo
"Unknown lb_bias
$lb_bias
(y/n)"
exit
35
fi
printf
'[%14s][%6s][%2d][%s][%s] '
$program
$pinning
$nodes
$use_perf
$autogroup
printf
'[%14s][%6s][%2d][%s][%s][%s] '
$program
$pinning
$nodes
$use_perf
$autogroup
$lb_bias
local
exp_dir
=
$TMP_RESULTS_DIR
/outputs/
$program
-
$pinning
-
$nodes
-
$use_perf
-
$autogroup
-
$lb_bias
local
exp_dir
=
$TMP_RESULTS_DIR
/outputs/
$program
-
$pinning
-
$nodes
-
$use_perf
-
$autogroup
for
iteration
in
$(
seq
1
$repeat
)
;
do
local
iteration_dir
=
$exp_dir
/
$iteration
...
...
@@ -254,9 +241,7 @@ run_all() {
for
nodes
in
$nodes_list
;
do
for
use_perf
in
$use_perfs
;
do
for
autogroup
in
$autogroups
;
do
for
lb_bias
in
$lb_biases
;
do
run_iterations
$program
$pinning
$nodes
$use_perf
$autogroup
$lb_bias
done
run_iterations
$program
$pinning
$nodes
$use_perf
$autogroup
done
done
done
...
...
@@ -316,7 +301,6 @@ pinnings=$1; shift
nodes_list
=
$1
;
shift
use_perfs
=
$1
;
shift
autogroups
=
$1
;
shift
lb_biases
=
$1
;
shift
repeat
=
$1
;
shift
prepare_bench
...
...
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