Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alexandrnikitin/609dbb9d4476c5cf46c927eed5605133 to your computer and use it in GitHub Desktop.
Save alexandrnikitin/609dbb9d4476c5cf46c927eed5605133 to your computer and use it in GitHub Desktop.
Disable CPU power saving on CentOS 7
# disable power saving on CentOS 7
grep -E '^model name|^cpu MHz' /proc/cpuinfo
pgrep -lf ondemand
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do [ -f $CPUFREQ ] || continue; echo -n performance > $CPUFREQ; done
service cpuspeed stop
lsmod | grep ondemand
grep -E '^model name|^cpu MHz' /proc/cpuinfo
# cpu freq
turbostat --debug -P
# C States
sudo cpupower monitor -m Idle_Stats
# disable intel_idle driver
grubby --default-kernel
grubby --info /boot/vmlinuz-3.10.0-514.21.2.el7.x86_64
grubby --args="intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll" --update-kernel /boot/vmlinuz-3.10.0-514.21.2.el7.x86_64
grubby --info /boot/vmlinuz-3.10.0-514.21.2.el7.x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment