Skip to content

Commit e9b2583

Browse files
authored
Add sudo to cpufreq-set command in ci-plutus-benchmark.sh (#6733)
1 parent 34e9bf2 commit e9b2583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ci-plutus-benchmark.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ if [[ -z $(which taskset) ]]; then
7070
else
7171
echo "[ci-plutus-benchmark]: Setting CPU $CAPABILITY_NUM frequency governor to 'userspace' and frequency to 4.21GHz"
7272
# This makes the benchmark reliable on a single core and addresses the issue of large variance in the results.
73-
cpufreq-set --cpu $CAPABILITY_NUM --governor userspace
74-
cpufreq-set --cpu $CAPABILITY_NUM --related --freq 4.21GHz
73+
sudo cpufreq-set --cpu $CAPABILITY_NUM --governor userspace
74+
sudo cpufreq-set --cpu $CAPABILITY_NUM --related --freq 4.21GHz
7575
TASKSET="taskset -c $CAPABILITY_NUM"
7676
fi
7777

0 commit comments

Comments
 (0)