Difference between revisions of "Jetson/AGX Xavier Performance Governor"

From eLinux.org
Jump to: navigation, search
(Enable performance governor for GPU)
Line 17: Line 17:
 
Run below command on board to check all available governors for GPU
 
Run below command on board to check all available governors for GPU
 
   $ cat /sys/class/devfreq/17000000.gv11b/available_governors
 
   $ cat /sys/class/devfreq/17000000.gv11b/available_governors
 +
<pre style="margin-left:30px; color:#B0B0B0; background-color:#111111; white-space:pre-wrap;">
 +
nvidia@jetson-0422418042089:~$ cat /sys/class/devfreq/17000000.gv11b/available_governors
 +
nvhost_podgov userspace performance simple_ondemand</pre>
  
 
To enable performance governor, run below command on board as root
 
To enable performance governor, run below command on board as root

Revision as of 02:10, 10 October 2018

In power non-sensitive case, using performance governor can help to run GPU at highest frequency by default and still be able to be thermal throttled. jetson_clocks.sh can set GPU frequency to highest by setting minimum frequency the same as maximum frequency, but in this case, GPU frequency cannot be throttled when temperature is high.

Re-config kernel

Run below command on board to check if CONFIG_DEVFREQ_GOV_PERFORMANCE is set or not. If not, please set CONFIG_DEVFREQ_GOV_PERFORMANCE=y and update the kernel

 $ zcat /proc/config.gz | grep CONFIG_DEVFREQ_GOV_PERFORMANCE

Keep GPU alive

Run below command on board as root to keep GPU alive (not suspend)

 # echo 0 > /sys/devices/17000000.gv11b/railgate_enable

Enable performance governor for GPU

Run below command on board to check all available governors for GPU

 $ cat /sys/class/devfreq/17000000.gv11b/available_governors
nvidia@jetson-0422418042089:~$ cat /sys/class/devfreq/17000000.gv11b/available_governors
nvhost_podgov userspace performance simple_ondemand

To enable performance governor, run below command on board as root

 # echo performance > /sys/class/devfreq/17000000.gv11b/governor

Check GPU frequency

With performance governor enabled, GPU should run at highest frequency by default, run below command on board as root to check GPU frequency

 # /home/nvidia/tegrastats

Emulate thermal throttle

TODO