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
e31a8db5
Commit
e31a8db5
authored
2 years ago
by
Peter Cai
Browse files
Options
Downloads
Patches
Plain Diff
Re-introduce re-initialization of memcached every few runs
parent
4a06211f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
experiments/memcached.shared.sh
+19
-1
19 additions, 1 deletion
experiments/memcached.shared.sh
with
19 additions
and
1 deletion
experiments/memcached.shared.sh
+
19
−
1
View file @
e31a8db5
...
...
@@ -2,6 +2,8 @@ source "$EXP_ROOT/experiments/perf.shared.sh"
CONNS
=
160
# per agent thread
NO_RUNS
=
0
load_config
()
{
source
"
$EXP_ROOT
/configs/memcached.sh"
source
"
$EXP_ROOT
/configs/mutilate.sh"
...
...
@@ -38,10 +40,17 @@ warmup() {
}
run_mutilate
()
{
if
[
"
$NO_RUNS
"
-ge
4
]
;
then
echo
"Re-intializing Memcached server"
memcached_shutdown
memcached_startup
NO_RUNS
=
0
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
perf_stat_stop
NO_RUNS
=
$((
NO_RUNS
+
1
))
}
memcached_pre_start
()
{
...
...
@@ -59,13 +68,22 @@ memcached_pre_start() {
}
memcached_init
()
{
NO_RUNS
=
0
memcached_startup
}
memcached_startup
()
{
start_memcached
start_mutilate
warmup
}
memcached_
deinit
()
{
memcached_
shutdown
()
{
cleanup_mutilate
cleanup_memcached
}
memcached_deinit
()
{
memcached_shutdown
}
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