Centos 关闭CPU主频控制
Centos7关闭cpu主频控制:
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
do
[ -f $CPUFREQ ]|| continue;
echo -n performance >$CPUFREQ;
done
1
2
3
4
5
2
3
4
5
Centos6
/etc/init.d/ cpuspeed stop
1
Centos7关闭cpu主频控制:
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
do
[ -f $CPUFREQ ]|| continue;
echo -n performance >$CPUFREQ;
done
Centos6
/etc/init.d/ cpuspeed stop