From e9b258319b09c2fa657b56841db6ab1cb9db4c6d Mon Sep 17 00:00:00 2001 From: zeme-wana <15709674+zeme-wana@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:39:05 +0100 Subject: [PATCH] Add sudo to cpufreq-set command in ci-plutus-benchmark.sh (#6733) --- scripts/ci-plutus-benchmark.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci-plutus-benchmark.sh b/scripts/ci-plutus-benchmark.sh index 59f1784f2fb..270f2ab2c19 100755 --- a/scripts/ci-plutus-benchmark.sh +++ b/scripts/ci-plutus-benchmark.sh @@ -70,8 +70,8 @@ if [[ -z $(which taskset) ]]; then else echo "[ci-plutus-benchmark]: Setting CPU $CAPABILITY_NUM frequency governor to 'userspace' and frequency to 4.21GHz" # This makes the benchmark reliable on a single core and addresses the issue of large variance in the results. - cpufreq-set --cpu $CAPABILITY_NUM --governor userspace - cpufreq-set --cpu $CAPABILITY_NUM --related --freq 4.21GHz + sudo cpufreq-set --cpu $CAPABILITY_NUM --governor userspace + sudo cpufreq-set --cpu $CAPABILITY_NUM --related --freq 4.21GHz TASKSET="taskset -c $CAPABILITY_NUM" fi