> For the complete documentation index, see [llms.txt](https://amobile-solutions.gitbook.io/yocto-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amobile-solutions.gitbook.io/yocto-developer-guide/test-and-use-the-interface/gpu/performance-mode.md).

# Performance Mode

Force CPU and GPU to run at maximum frequency.

* **CPU at maximum frequency**

  Command to set performance mode for CPU governor

  ```
  echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
  echo performance > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor
  ```
* **Disable CPU idle**

  Command to disable CPU idle.

  ```
  for j in 2 1 0; do for i in 5 4 3 2 1 0 ; do echo 1 > /sys/devices/system/cpu/cpu$i/cpuidle/state$j/disable ; done ; done
  ```
* **GPU at maximum frequency**

  Please refer to Adjust GPU Frequency to fix GPU to run at maximum frequency.

  Or you could just set performance mode for GPU governor, make the GPU statically to the highest frequency.

  ```
  echo performance > /sys/devices/platform/soc/13000000.mali/devfreq/13000000.mali/governor
  ```
* **Disable thermal**

  ```
  echo 115000 > /sys/class/thermal/thermal_zone0/trip_point_0_temp
  echo 115000 > /sys/class/thermal/thermal_zone0/trip_point_1_temp
  echo 115000 > /sys/class/thermal/thermal_zone0/trip_point_2_temp
  ```
