ci/lava: Disable CPU frequency scaling
Lock CPU frequency scaling to max to speed up test execution and lower the variation of frame times from performance replay jobs. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11101>
This commit is contained in:
@@ -82,9 +82,14 @@ actions:
|
|||||||
|
|
||||||
- modprobe amdgpu || true
|
- modprobe amdgpu || true
|
||||||
|
|
||||||
|
# Disable GPU frequency scaling
|
||||||
- DEVFREQ_GOVERNOR=`find /sys/devices -name governor | grep gpu || true`
|
- DEVFREQ_GOVERNOR=`find /sys/devices -name governor | grep gpu || true`
|
||||||
- echo performance > $DEVFREQ_GOVERNOR || true
|
- echo performance > $DEVFREQ_GOVERNOR || true
|
||||||
|
|
||||||
|
# Disable CPU frequency scaling
|
||||||
|
- echo performance | tee -a /sys/devices/system/cpu/cpufreq/policy*/scaling_governor || true
|
||||||
|
|
||||||
|
# Disable GPU runtime PM
|
||||||
- GPU_AUTOSUSPEND=`find /sys/devices -name autosuspend_delay_ms | grep gpu | head -1`
|
- GPU_AUTOSUSPEND=`find /sys/devices -name autosuspend_delay_ms | grep gpu | head -1`
|
||||||
- echo -1 > $GPU_AUTOSUSPEND || true
|
- echo -1 > $GPU_AUTOSUSPEND || true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user