配置CPU frequency
目的
不同的CPU电源策略会导致CPU性能差异,使用性能优先的策略可以提升CPU性能。
方法
- 重启服务器,进入BIOS设置界面,将CPU电源策略设置为“performance”模式。


- 进入操作系统,将所有核的电源策略设置为“performance”模式。
1echo 'performance' |tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
父主题: 硬件调优
不同的CPU电源策略会导致CPU性能差异,使用性能优先的策略可以提升CPU性能。


1
|
echo 'performance' |tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor |