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

Add experiments for 5.4 to autorun

parent 6a689b46
No related branches found
No related tags found
No related merge requests found
......@@ -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"
;;
......
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