Skip to content

Goobaroo/unraid-setCPUgovernor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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 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

About

Unraid script to set CPU governor if VM is running.

Topics

Resources

Stars

Watchers

Forks

Languages