Module: Mesa
Branch: main
Commit: 0e14b674f1ca166a1e574f6471e6f801856c73b0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e14b674f1ca166a1e574f6471e6f801856c73b0

Author: Cristian Ciocaltea <[email protected]>
Date:   Wed Mar 30 09:57:19 2022 +0300

ci: Lock Intel GPU frequency for performance tests

In order to ensure consistent results when running performance tests,
lock the frequency for Intel GPUs to ~70% of the maximum allowed by
hardware.

This seems to offer a good balance between execution speed and results
consistency.

An increase of the frequency will also increase the rate of throttling
events, with a negative impact on consistency. Such events are logged,
as in the following example:

  GPU throttling detected: act=200 min=850 cur=850 RPn=100

This shows the actual GPU frequency (200 MHz) dropped below the minimum
requested (850 MHz).

For more details about the various frequency information sources, please
see the script header comments in ".gitlab-ci/common/intel-gpu-freq.sh".

Signed-off-by: Cristian Ciocaltea <[email protected]>
Acked-by: Tomeu Vizoso <[email protected]>
Reviewed-by: Guilherme Gallo <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15662>

---

 .gitlab-ci/common/init-stage2.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh
index efb29083175..6aebc2231ec 100755
--- a/.gitlab-ci/common/init-stage2.sh
+++ b/.gitlab-ci/common/init-stage2.sh
@@ -60,6 +60,10 @@ if [ "$HWCI_FREQ_MAX" = "true" ]; then
   # Disable GPU runtime power management
   GPU_AUTOSUSPEND=`find /sys/devices -name autosuspend_delay_ms | grep gpu | 
head -1`
   test -z "$GPU_AUTOSUSPEND" || echo -1 > $GPU_AUTOSUSPEND || true
+
+  # 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
 fi
 
 # Increase freedreno hangcheck timer because it's right at the edge of the

Reply via email to