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
2877589c
Commit
2877589c
authored
2 years ago
by
Peter Cai
Browse files
Options
Downloads
Patches
Plain Diff
Add tunings to normalize IRQs and polling settings before experiments
parent
d4905ec6
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
run.sh
+3
-0
3 additions, 0 deletions
run.sh
tunings/base.sh
+11
-0
11 additions, 0 deletions
tunings/base.sh
tunings/normalize_queues.sh
+3
-0
3 additions, 0 deletions
tunings/normalize_queues.sh
with
17 additions
and
0 deletions
run.sh
+
3
−
0
View file @
2877589c
...
@@ -10,6 +10,7 @@ fi
...
@@ -10,6 +10,7 @@ fi
export
EXP_ROOT
=
"
$PWD
"
export
EXP_ROOT
=
"
$PWD
"
source
./configs/base.sh
source
./configs/base.sh
source
./configs/nic.sh
if
[
-e
"./configs/
$(
uname
-r
)
.sh"
]
;
then
if
[
-e
"./configs/
$(
uname
-r
)
.sh"
]
;
then
echo
"Loading kernel-specific config for
$(
uname
-r
)
"
echo
"Loading kernel-specific config for
$(
uname
-r
)
"
...
@@ -55,6 +56,8 @@ DATA_OUT="$EXP_ROOT/data/$EXPERIMENT_NAME"
...
@@ -55,6 +56,8 @@ DATA_OUT="$EXP_ROOT/data/$EXPERIMENT_NAME"
rm
-rf
"
$DATA_OUT
"
rm
-rf
"
$DATA_OUT
"
mkdir
-p
"
$DATA_OUT
"
mkdir
-p
"
$DATA_OUT
"
source
./tunings/normalize_queues.sh
run_exp
run_exp
post_start
post_start
This diff is collapsed.
Click to expand it.
tunings/base.sh
+
11
−
0
View file @
2877589c
...
@@ -14,3 +14,14 @@ echo 0 > /proc/sys/kernel/nmi_watchdog # perf cache tracing
...
@@ -14,3 +14,14 @@ echo 0 > /proc/sys/kernel/nmi_watchdog # perf cache tracing
# CPU frequency
# CPU frequency
$X86_ENERGY_PERF_POLICY
--turbo-enable
0
$X86_ENERGY_PERF_POLICY
--turbo-enable
0
$CPUPOWER
frequency-set
-f
2.7GHz
||
true
# This can throw out errors but it's generally harmless
$CPUPOWER
frequency-set
-f
2.7GHz
||
true
# This can throw out errors but it's generally harmless
# Default non-polling NIC settings
# ethtool may fail without fatal errors (e.g. when it made no changes)
ethtool
-G
$NET_IF
rx 1024
||
true
ethtool
-C
$NET_IF
rx-usecs 16 rx-frames 44 adaptive-rx on
||
true
ethtool
-C
$NET_IF
tx-usecs 16 tx-frames 16 adaptive-tx off
||
true
sysctl net.core.busy_poll
=
0
sysctl net.core.busy_read
=
0
sysctl net.core.dev_weight
=
64
sysctl net.core.netdev_budget
=
300
sysctl net.core.netdev_budget_usecs
=
8000
This diff is collapsed.
Click to expand it.
tunings/normalize_queues.sh
0 → 100644
+
3
−
0
View file @
2877589c
ethtool
-L
$NET_IF
rx
$THREADS
tx
$THREADS
||
true
$EXP_ROOT
/irq.sh
set
0
$((
THREADS
-
1
))
$EXP_ROOT
/irq.sh
set
rx 0
$((
THREADS
-
1
))
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