https://github.com/goobaroo/unraid-setcpugovernor
Unraid script to set CPU governor if VM is running.
https://github.com/goobaroo/unraid-setcpugovernor
cpu-governor unraid
Last synced: about 1 year ago
JSON representation
Unraid script to set CPU governor if VM is running.
- Host: GitHub
- URL: https://github.com/goobaroo/unraid-setcpugovernor
- Owner: Goobaroo
- Created: 2021-08-25T17:54:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-15T00:52:13.000Z (over 4 years ago)
- Last Synced: 2025-04-13T05:54:25.073Z (about 1 year ago)
- Topics: cpu-governor, unraid
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unraid-setCPUgovernor
Unraid script to set CPU governor if VM is running.
This script can be used with the userScripts plugin in Unraid to check for running VMs (presumably gaming ones) and flip the CPU governor to performance.
I found this helped in gaming peroformance using a Ryzen 5700G processor.
When the VM is shut down, it sets thet governor back to ondemand. It only changes the value if needed.
I have mine running on a schedule every 5 mintues.
## Setup
1. Have the [CA User Scripts](https://forums.unraid.net/topic/48286-plugin-ca-user-scripts/) Plugin installed on your Unraid server.
2. Add a new script and copy the contents of the script file.
3. Set a custom scheule, I used every 5 minutes `*/5 * * * *`
4. All set.
## Refs
[Arch Linux Scaling Governors](https://wiki.archlinux.org/title/CPU_frequency_scaling#Scaling_governors)