tuned-amdgpu/playbook.yml

53 lines
2.1 KiB
YAML
Raw Normal View History

2021-10-13 02:02:22 +00:00
---
- hosts: localhost
2022-11-27 04:59:35 +00:00
name: "Configure 'tuned' with AMD GPU control"
2022-11-27 06:51:39 +00:00
roles:
# role prepares/modifies 'tuned' with AMD GPU power/clock parameters
# creates a new tuned profile made for each permutation of (base) 'tuned' profile + AMD powerplay profile
- role: tuned_amdgpu
2022-11-27 07:19:40 +00:00
# note: 'gpu_*' vars only apply with the 'custom' suffixed profiles created by this tooling
# profiles based on the 'default' amdgpu power profile mode use default clocks
gpu_clock_min: "500" # default 500
2022-11-27 06:51:39 +00:00
gpu_clock_max: "2600" # default 2529
gpumem_clock_static: "1075"
# optional, applies offset (+/-) to GPU voltage by provided mV
gpu_mv_offset: "-50"
# '-50' undervolts GPU core voltage 50mV or 0.05V
2022-11-27 06:56:19 +00:00
#
2022-11-27 06:51:39 +00:00
# list of source tuned profiles available on Fedora (TODO: should dynamically discover)
base_profiles:
- balanced
- desktop
- latency-performance
- network-latency
- network-throughput
- powersave
- virtual-host
2022-11-27 06:56:19 +00:00
#
2022-11-27 06:51:39 +00:00
# mapping of typical Navi generation power profiles from:
2022-11-27 06:56:19 +00:00
# /sys/class/drm/card*/device/pp_power_profile_mode
2022-11-27 06:51:39 +00:00
# ref: https://www.kernel.org/doc/html/v4.20/gpu/amdgpu.html#pp-power-profile-mode
2022-11-27 06:56:19 +00:00
# 'pwr_cap_multi' is multiplied against board *limit* to determine profile wattage; 0.5 = 50%
# values below reflect my 6900XT
2022-11-27 06:51:39 +00:00
amdgpu_profiles:
default:
pwrmode: 0
pwr_cap_multi: 0.789473684210526 # 255W - slightly reduced, maintains clocks well
2022-11-27 06:51:39 +00:00
3D:
pwrmode: 1
pwr_cap_multi: 0.869969040247678 # 281W - default
powersave:
pwrmode: 2
pwr_cap_multi: 0.869969040247678
2022-11-27 06:51:39 +00:00
VR:
pwrmode: 4
pwr_cap_multi: 0.869969040247678
2022-11-27 06:51:39 +00:00
compute:
pwrmode: 5
pwr_cap_multi: 0.869969040247678
2022-11-27 06:51:39 +00:00
custom:
pwrmode: 6
pwr_cap_multi: 1.0 # 323W - full capability
2022-11-27 06:51:39 +00:00
# both dictionaries are merged to create new 'tuned' profiles. eg:
# 'balanced-amdgpu-default', 'balanced-amdgpu-3D', 'balanced-amdgpu-video'