The schedutil governor is often the best choice for modern kernels, using scheduler utilization data to make faster and more accurate frequency decisions than older governors like ondemand.
Here is how to enable it and make it persistent.
1. Install Tools
First, ensure you have the necessary tools installed. On Ubuntu/Debian:
2. Set Governor (Immediate)
You can set the governor immediately for the current session. It's good practice to set the frequency limits as well.
Verify
Check if the policy has been applied:
You should see output similar to:
To double-check individual CPUs:
All cores should report schedutil.
3. Make Persistent (Systemd)
To ensure this setting survives a reboot, create a simple systemd service.
Create the service file:
Enable and start the service:
After starting, run the verification command again to confirm it's working.
4. Cleanup (Optional)
If you previously created a service for high performance (e.g., cpupower-performance.service), you should disable and remove it to avoid conflicts.
Your server is now configured to use schedutil automatically on every boot.