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

Add support for experiments with kernel polling

parent 522b6833
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ cleanup_mutilate() {
cleanup_memcached() {
echo "Killing memcached process"
kill $MEMCACHED_PID
kill -INT $MEMCACHED_PID
}
start_memcached() {
......
......@@ -23,7 +23,12 @@ pre_start() {
}
run_exp() {
start_memcached
MEMCACHED_ARGS=""
if [ "$NAPI_LOCALITY" == "true" ]; then
MEMCACHED_ARGS="-N $THREADS"
fi
start_memcached $MEMCACHED_ARGS
start_mutilate
warmup
......
......@@ -26,6 +26,11 @@ while [[ $# -gt 0 ]]; do
shift
shift
;;
--extra-tuning)
EXTRA_TUNING="$2"
shift
shift
;;
*)
break
;;
......@@ -47,6 +52,9 @@ source "./experiments/$EXPERIMENT.sh"
pre_start
EXPERIMENT_NAME="$EXPERIMENT.$(uname -r)"
if [ ! -z "$EXTRA_TUNING" ]; then
EXPERIMENT_NAME="$EXPERIMENT_NAME.$EXTRA_TUNING"
fi
if [ ! -z "$EXPERIMENT_NAME_EXT" ]; then
EXPERIMENT_NAME="$EXPERIMENT_NAME.$EXPERIMENT_NAME_EXT"
fi
......@@ -57,6 +65,7 @@ rm -rf "$DATA_OUT"
mkdir -p "$DATA_OUT"
source ./tunings/normalize_queues.sh
[ ! -z "$EXTRA_TUNING" ] && source ./tunings/"$EXTRA_TUNING".sh
run_exp
......
if [ ! "$(uname -r)" == "5.15.79-peter" ]; then
echo "kernel polling only supported on patched kernel"
exit 1
fi
sysctl net.core.busy_poll=128
# NAPI locality is needed for multi-threaded experiments
NAPI_LOCALITY=true
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