首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >linux:不能用cpupower设置cpu频率调速器

linux:不能用cpupower设置cpu频率调速器
EN

Unix & Linux用户
提问于 2021-01-12 18:37:14
回答 1查看 2.5K关注 0票数 2

我有一个带有AMD的服务器HPE ProLiant系统,BIOS A43 v1.20,带有Linux4.19.71(我也尝试了5.4.0)。现在,我正在尝试设置CPU性能调控器:

代码语言:javascript
复制
# cpupower frequency-set -g performance
    Setting cpu: 0
    Error setting new values. Common errors:
    - Do you have proper administration rights? (super-user?)
    - Is the governor you requested available and modprobed?
    - Trying to set an invalid policy?
    - Trying to set a specific frequency, but userspace governor is not available,
       for example because of hardware which cannot be set to a specific frequency
       or because the userspace governor isn't loaded?
#

因此,我开始排除下列问题:

代码语言:javascript
复制
# cpupower frequency-info
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: yes
    Active: yes
    Boost States: 0
    Total States: 3
    Pstate-P0:  2000MHz
    Pstate-P1:  1800MHz
    Pstate-P2:  1500MHz
#
# ls /sys/devices/system/cpu/cpufreq/
<Empty>
#
#

因此,不管出于什么原因,它都认为cpufreq驱动程序丢失了。但是,内核.config启用了以下功能:

代码语言:javascript
复制
CONFIG_CPU_FREQ=y
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ_CPB=y
CONFIG_X86_INTEL_PSTATE=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y

我确实尝试过禁用CONFIG_X86_INTEL_PSTATE并添加CONFIG_X86_POWERNOW_K8 (当前内核中唯一特定于AMD的),但这似乎没有帮助。

我很乐意听取你的任何建议。

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2021-01-18 14:49:29

很可能,如果您正在使用第二代EPYC CPU (罗马),并不是所有的功能都是在内核上实现的。我不知道您使用的是哪个发行版(可以支持移植),但是根据Ubuntu https://ubuntu.com/blog/amd-epyc-rome-support-in-ubuntu-server上的博客文章,您的内核可能无法完全支持您的CPU。

来自Ubuntu网站:

从5.4系列开始,

对AMD的支持已经合并到Linux内核中。因此,安装了5.4内核的所有Ubuntu版本都支持这个CPU及其所有新特性。然而,Canonical还支持对AMD罗马版的基本支持,以确保它们在这个新的

上正常工作。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/628831

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档