zl程序教程

您现在的位置是:首页 >  硬件

当前栏目

AMD CPU 超频

CPU AMD
2023-09-14 09:09:51 时间

安装依赖

apt install linux-tools-common -y

CPU设置性能模式

  • 查看CPU频率
cpupower frequency-info
  • ondemand 模式动态调整CPU频率
  • 设置CPU为性能模式
cpupower  frequency-set -g performance
cpupower frequency-info
  • 查看当前CPU模式
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance

核不进入C2状态

# cpupower idle-info
CPUidle driver: acpi_idle
CPUidle governor: menu
analyzing CPU 0:

Number of idle states: 3
Available idle states: POLL C1 C2
POLL:
Flags/Description: CPUIDLE CORE POLL IDLE
Latency: 0
Usage: 26779
Duration: 183487
C1:
Flags/Description: ACPI FFH MWAIT 0x0
Latency: 1
Usage: 229742
Duration: 43904696
C2:
Flags/Description: ACPI IOPORT 0x814
Latency: 400
Usage: 1468516
Duration: 65156139980
  • 报错
# cpupower idle-set –d 2
Invalid or unknown argument

查看CPU运行频率

watch -d "cat /proc/cpuinfo | grep 'cpu MHz'"

参考:

  1. ubuntu 18.04系统下CPU实时频率查看工具 cpupower
  2. CPU优化建议使用cpupower设置CPU Performance模式
  3. C-STATE控制