wiki/help/linux/cpu_boost_control.md

47 lines
1.1 KiB
Markdown

# AMD
## requirements
* **CPPC** (Collaborative Power Control) - *Disabled*.
* **PSS** (Cool and Quiet) - *Enabled*.
## manual control
enable boost: `/usr/bin/echo 1 > /sys/devices/system/cpu/cpufreq/boost`
disable boost: `/usr/bin/echo 0 > /sys/devices/system/cpu/cpufreq/boost`
## systemd unit example
```
[Unit]
Description=disable amd boost
[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/usr/bin/bash -c '/usr/bin/echo 0 > /sys/devices/system/cpu/cpufreq/boost'
ExecStop=/usr/bin/bash -c '/usr/bin/echo 1 > /sys/devices/system/cpu/cpufreq/boost'
#Restart=on-failure
[Install]
WantedBy=multi-user.target
```
# Intel
## manual control
enable boost: `/usr/bin/echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo`
disable boost: `/usr/bin/echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo`
## systemd unit example
```
[Unit]
Description=disable intel boost
[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/usr/bin/bash -c '/usr/bin/echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo'
ExecStop=/usr/bin/bash -c '/usr/bin/echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo'
#Restart=on-failure
[Install]
WantedBy=multi-user.target