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
120c9e7d
Commit
120c9e7d
authored
2 years ago
by
Peter Cai
Browse files
Options
Downloads
Patches
Plain Diff
Add experiments for 5.4 to autorun
parent
6a689b46
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
autorun.sh
+13
-4
13 additions, 4 deletions
autorun.sh
with
13 additions
and
4 deletions
autorun.sh
+
13
−
4
View file @
120c9e7d
...
...
@@ -15,18 +15,20 @@ run_exp() {
fi
}
MIN_THREADS
=
1
# What is considered "single-threaded". The only exception for this is Caladan, which needs 2 threads minimum
# Common functions for memcached experiments
# Note that for some cases we can only run part of them;
# in that case we use run_exp directly instead of these helpers
run_memcached_qps_scan
()
{
[
"
$SKIP_QPS_SCAN
"
==
"true"
]
&&
echo
"Memcached QPS scan skipped"
&&
return
[
"
$SKIP_SINGLE_THREAD
"
==
"true"
]
||
run_exp
-e
memcached_qps_scan
-t
1
$@
run_exp
-e
memcached_qps_scan
-t
8
$@
[
"
$SKIP_SINGLE_THREAD
"
==
"true"
]
||
run_exp
-e
memcached_qps_scan
-t
$MIN_THREADS
$@
[
"
$SKIP_MULTI_THREAD
"
==
"true"
]
||
run_exp
-e
memcached_qps_scan
-t
8
$@
}
run_memcached_conn_scan
()
{
[
"
$SKIP_SINGLE_THREAD
"
==
"true"
]
||
run_exp
-e
memcached_conn_scan
-t
1
$@
run_exp
-e
memcached_conn_scan
-t
8
$@
[
"
$SKIP_SINGLE_THREAD
"
==
"true"
]
||
run_exp
-e
memcached_conn_scan
-t
$MIN_THREADS
$@
[
"
$SKIP_MULTI_THREAD
"
==
"true"
]
||
run_exp
-e
memcached_conn_scan
-t
8
$@
}
[
"
$UID
"
-ne
0
]
&&
exit
1
...
...
@@ -46,6 +48,13 @@ case "$(uname -r)" in
SKIP_SINGLE_THREAD
=
true
run_memcached_conn_scan
--extra-tuning
irq_packing
SKIP_SINGLE_THREAD
=
true
run_memcached_qps_scan
--extra-tuning
irq_packing
;;
5.4.0-136-generic
)
SKIP_MULTI_THREAD
=
true
run_memcached_conn_scan
--fstack
SKIP_MULTI_THREAD
=
true
run_memcached_qps_scan
--fstack
MIN_THREADS
=
2 run_memcached_conn_scan
--caladan
MIN_THREADS
=
2 run_memcached_qps_scan
--caladan
;;
*
)
echo
"Unsupported kernel"
;;
...
...
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