Advertisement
Guest User

cpu_mode_performance.sh

a guest
Jun 24th, 2021
1,863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ## Load the config file
  4. source "/etc/libvirt/hooks/kvm.conf"
  5.  
  6. ## Enable CPU governor performance mode
  7. cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  8. for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done
  9. cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement