From 7343354b3e48f7411970f0528430fbe50f2fa3bb Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Fri, 5 Jan 2018 14:55:14 -0700 Subject: [PATCH] scripts: Disable turbo boost in prep_benchmarks.sh This reduces the potential for jitter. Change-Id: I736aceec7551be7033c8d2a6f433c64aba1903c0 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/393830 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu --- scripts/prep_benchmarks.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/prep_benchmarks.sh b/scripts/prep_benchmarks.sh index 024e8c41d..be3543289 100755 --- a/scripts/prep_benchmarks.sh +++ b/scripts/prep_benchmarks.sh @@ -7,6 +7,12 @@ function configure_performance() { done echo "Done" + if [ -f "/sys/devices/system/cpu/intel_pstate/no_turbo" ]; then + echo -n "Disabling Turbo Boost..." + echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo + echo "Done" + fi + echo -n "Disabling irqbalance service..." service irqbalance stop 2> /dev/null echo "Done"