ubuntu下cpu默认运行在节能模式下,会比较慢,通过如下方式进行调整
1、安装cpufrequtils:
sudo apt-get install cpufrequtils
2、查看当前cpu的状态:
cpufreq-info
3、把cpu调整到性能模式:
sudo cpufreq-set -g performance
使用上述方式,重启系统后又回到默认方式。修改默认模式:
1、安装sysfsutils
sudo apt-get install sysfsutils
2、编辑/etc/sysfs.conf ,增加如下语句:
devices/system/cpu/cpu0/cpufreq/scaling_governor = performance