系统调优
调整完之后需要reboot
CPU策略
- 查看cpu详情:lscpu cat/etc/cpuinfo
- 若主机的CPU策略设置不为performance模式,需要将CPU频率固定工作在其支持的最高运行频率上,而不动态调节。
- 查看CPU策略:cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
- 查看可用的CPU策略:cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
- 查看当前CPU频率:cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
- 查看CPU的频率
- 修改CPU策略设置不为performance模式:
for i in $(ls /sys/devices/system/cpu/*/cpufreq/scaling_governor);do echo performance > $i;done
/usr/lib/modules/5.10.0-136.12.0.86.4.hl202.x86_64/kernel/drivers/cpufreq
modprobe acpi-cpufreq - cpupower
a) 查看当前所有CPU的信息:cpupower -c all frequency-info
b) 查看某个CPU的信息:cpupower -c 1 frequency-info
c) 设置所有cpu为性能模式cpupower -c all frequency-set -g performance
透明大页
- 查看cat /s