Last active
May 20, 2021 03:20
-
-
Save alexandrnikitin/609dbb9d4476c5cf46c927eed5605133 to your computer and use it in GitHub Desktop.
Disable CPU power saving on CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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