Skip to content
Snippets Groups Projects
Commit 2877589c authored by Peter Cai's avatar Peter Cai
Browse files

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
...@@ -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
...@@ -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
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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment