Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netstack-exp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Cai
netstack-exp
Commits
d316f6eb
Commit
d316f6eb
authored
2 years ago
by
Peter Cai
Browse files
Options
Downloads
Patches
Plain Diff
Add support for running auxilliary experiments for error bars and avg
parent
8014ddbd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
experiments/memcached.shared.sh
+1
-1
1 addition, 1 deletion
experiments/memcached.shared.sh
experiments/perf.shared.sh
+1
-1
1 addition, 1 deletion
experiments/perf.shared.sh
run.sh
+19
-2
19 additions, 2 deletions
run.sh
with
21 additions
and
4 deletions
experiments/memcached.shared.sh
+
1
−
1
View file @
d316f6eb
...
...
@@ -51,7 +51,7 @@ run_mutilate() {
fi
echo
"Running mutilate with
$CONNS
connections per agent (core) and QPS =
$QPS
"
perf_stat_start
"
$1
"
sudo
-u
$SSH_USER
$MUTILATE
--noload
-c
$CONNS
$MUTCLIENTS
-t30
-u
0
-q
$QPS
|
tee
$DATA_OUT
/
$1
.txt
sudo
-u
$SSH_USER
$MUTILATE
--noload
-c
$CONNS
$MUTCLIENTS
-t30
-u
0
-q
$QPS
|
tee
$DATA_OUT
/
$1
$EXP_AUX_SUFFIX
.txt
perf_stat_stop
NO_RUNS
=
$((
NO_RUNS
+
1
))
}
...
...
This diff is collapsed.
Click to expand it.
experiments/perf.shared.sh
+
1
−
1
View file @
d316f6eb
perf_stat_start
()
{
$PERF
stat
-C
0-
$((
THREADS
-
1
))
-e
LLC-load-misses:u,LLC-load-misses:k,mem_load_uops_retired.llc_miss,mem_uops_retired.all_loads,cycles,cycles:u,cycles:k,instructions,instructions:u,instructions:k,stalled-cycles-frontend,stalled-cycles-backend
-o
"
$DATA_OUT
/stat_
$1
.txt"
&
$PERF
stat
-C
0-
$((
THREADS
-
1
))
-e
LLC-load-misses:u,LLC-load-misses:k,mem_load_uops_retired.llc_miss,mem_uops_retired.all_loads,cycles,cycles:u,cycles:k,instructions,instructions:u,instructions:k,stalled-cycles-frontend,stalled-cycles-backend
-o
"
$DATA_OUT
/stat_
$1
$EXP_AUX_SUFFIX
.txt"
&
PERF_STAT_PID
=
$!
}
...
...
This diff is collapsed.
Click to expand it.
run.sh
+
19
−
2
View file @
d316f6eb
...
...
@@ -46,6 +46,15 @@ while [[ $# -gt 0 ]]; do
USERSTACK
=
true
shift
;;
-f
|
--force
)
FORCE_REMOVE
=
true
shift
;;
--aux
)
EXP_AUX_SUFFIX
=
"_aux
$2
"
shift
shift
;;
*
)
echo
"Unknown option
$1
"
exit
1
...
...
@@ -122,8 +131,16 @@ fi
DATA_OUT
=
"
$EXP_ROOT
/data/
$EXPERIMENT_NAME
"
rm
-rf
"
$DATA_OUT
"
mkdir
-p
"
$DATA_OUT
"
if
[
-d
"
$DATA_OUT
"
]
&&
[
-z
"
$EXP_AUX_SUFFIX
"
]
;
then
if
[
"
$FORCE_REMOVE
"
==
"true"
]
;
then
rm
-rf
"
$DATA_OUT
"
else
echo
"Experiment directory
$DATA_OUT
already exists. Remove it manually or use --force. To run auxillary experiments for multiple sets of data, use --aux <num>"
exit
1
fi
else
mkdir
-p
"
$DATA_OUT
"
fi
run_exp
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment