User Tools

Site Tools


ubuntu:gpu:amd_gpu:performance_tuning

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:gpu:amd_gpu:performance_tuning [2023/06/03 08:23] peterubuntu:gpu:amd_gpu:performance_tuning [2023/06/05 15:42] (current) peter
Line 8: Line 8:
  
 ---- ----
 +
 +===== Check the Existing Performance Level =====
 +
 +<code bash>
 +cat /sys/class/drm/card0/device/power_dpm_force_performance_level
 +</code>
 +
 +returns:
 +
 +<code bash>
 +auto
 +</code>
 +
 +----
 +
  
 ===== Set High Performance ===== ===== Set High Performance =====
Line 39: Line 54:
 ---- ----
  
-===== Check the Existing Performance Level =====+===== Set Manual Performance ===== 
 + 
 +To set manual performance:
  
 <code bash> <code bash>
-cat /sys/class/drm/card0/device/power_dpm_force_performance_level+echo "manual"/sys/class/drm/card0/device/power_dpm_force_performance_level
 </code> </code>
  
-returns:+<WRAP info> 
 +**NOTE:**  When **manual** is selected, the user can manually adjust which power states are enabled for each clock domain via the sysfs pp_dpm_mclk, pp_dpm_sclk, and pp_dpm_pcie files and adjust the power state transition heuristics via the pp_power_profile_mode sysfs file. 
 + 
 +</WRAP> 
 + 
 +---- 
 + 
 +===== Profiling Mode Performance Settings =====
  
 <code bash> <code bash>
-auto+echo "profile_standard" > /sys/class/drm/card0/device/power_dpm_force_performance_level 
 +echo "profile_min_sclk" > /sys/class/drm/card0/device/power_dpm_force_performance_level 
 +echo "profile_min_mclk" > /sys/class/drm/card0/device/power_dpm_force_performance_level 
 +echo "profile_peak" > /sys/class/drm/card0/device/power_dpm_force_performance_level
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  When the profiling modes are selected, clock and power gating are disabled and the clocks are set for different profiling cases.
 +
 +This mode is recommended for profiling specific work loads where you do not want clock or power gating for clock fluctuation to interfere with your results.
 +
 +  * **profile_standard** sets the clocks to a fixed clock level which varies from asic to asic.
 +  * **profile_min_sclk** forces the sclk to the lowest level.
 +  * **profile_min_mclk** forces the mclk to the lowest level.
 +  * **profile_peak** sets all clocks (mclk, sclk, pcie) to the highest levels.
 +
 +</WRAP>
  
 ---- ----
Line 79: Line 118:
  
  
 +===== References =====
  
 +https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html#power-dpm-state
ubuntu/gpu/amd_gpu/performance_tuning.1685780611.txt.gz · Last modified: 2023/06/03 08:23 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki