Skip to content

Instantly share code, notes, and snippets.

@devsnd
Created February 8, 2023 11:52
Show Gist options
  • Save devsnd/bc778ff4b60e91814b60bc139ef2d8a3 to your computer and use it in GitHub Desktop.
Save devsnd/bc778ff4b60e91814b60bc139ef2d8a3 to your computer and use it in GitHub Desktop.
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu8/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu9/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu10/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu11/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu12/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu13/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu14/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu15/cpufreq/scaling_governor
rmmod intel_rapl_msr
rmmod processor_thermal_device_pci
rmmod processor_thermal_device
rmmod processor_thermal_rapl
rmmod intel_rapl_common
rmmod intel_powerclamp
modprobe intel_powerclamp
modprobe intel_rapl_common
modprobe processor_thermal_rapl
modprobe processor_thermal_device
modprobe processor_thermal_device_pci
modprobe intel_rapl_msr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment