From d89b95b247cf173ef72fd8488d5578566603437d Mon Sep 17 00:00:00 2001 From: Cristian Ciocaltea Date: Mon, 25 Apr 2022 14:02:38 +0300 Subject: [PATCH] ci: Limit Intel CPU scaling frequency for performance tests As an additional measure to mitigate thermal throttling, set the upper limit for the CPU scaling frequency to 65% of maximum allowed by the hardware. The impact on the overall tests duration should be minimal since the performance tests do not really put high load on the CPU. Signed-off-by: Cristian Ciocaltea Reviewed-by: Guilherme Gallo Acked-by: Tomeu Vizoso Part-of: --- .gitlab-ci/common/init-stage2.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index 6aebc2231ec..39fa2c810b8 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -63,7 +63,9 @@ if [ "$HWCI_FREQ_MAX" = "true" ]; then # Lock Intel GPU frequency to 70% of the maximum allowed by hardware # and enable throttling detection & reporting. - ./intel-gpu-freq.sh -s 70% -g all -d + # Additionally, set the upper limit for CPU scaling frequency to 65% of the + # maximum permitted, as an additional measure to mitigate thermal throttling. + ./intel-gpu-freq.sh -s 70% --cpu-set-max 65% -g all -d fi # Increase freedreno hangcheck timer because it's right at the edge of the