AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1379048
Accepted
Rick T
Rick T
Asked: 2021-12-04 08:08:30 +0800 CST2021-12-04 08:08:30 +0800 CST 2021-12-04 08:08:30 +0800 CST

添加到 grub 文件时未加载 intel_pstate 驱动程序

  • 772

我有一个

Processor   Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Memory  16305MB (2531MB used)
Machine Type    Laptop
Operating System    Ubuntu 20.04.3 LTS

在我的/etc/default/grub文件中,我有一行

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"

更改后我做了sudo update-grub但是当我做 cpupower frequency-info 或 cpufreq-info --driver它说使用的驱动程序是intel_cpufreq

rt@sys76:~$ cpufreq-info --driver
intel_cpufreq


rt@sys76:~$ cpupower frequency-info

analyzing CPU 0:
  driver: intel_cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 20.0 us
  hardware limits: 800 MHz - 3.40 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 1.70 GHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 798 MHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
rt@sys76:~$ 

如何让cpufreq-info --driver 使用intel_pstate驱动程序?

drivers
  • 1 1 个回答
  • 1114 Views

1 个回答

  • Voted
  1. Best Answer
    Doug Smythies
    2021-12-04T08:47:10+08:002021-12-04T08:47:10+08:00

    您的处理器 i7-4700MQ 早于 HWP(硬件 Pstate)控制。由内核电源管理组确定的迁移路径,对于这些 Intel 处理器,默认为使用 schedutil 缩放调控器处于被动模式的 intel_pstate CPU 频率缩放驱动程序。为此,完成了此提交:

    提交 33aa46f252c703e42c81a76696cd0c240f2281e4 作者:Rafael J. Wysocki [email protected] 日期:2020 年 3 月 25 日星期三 15:03:35 +0100

    cpufreq: intel_pstate: Use passive mode by default without HWP
    
    After recent changes allowing scale-invariant utilization to be
    used on x86, the schedutil governor on top of intel_pstate in the
    passive mode should be on par with (or better than) the active mode
    "powersave" algorithm of intel_pstate on systems in which
    hardware-managed P-states (HWP) are not used, so it should not be
    necessary to use the internal scaling algorithm in those cases.
    
    Accordingly, modify intel_pstate to start in the passive mode by
    default if the processor at hand does not support HWP of if the driver
    is requested to avoid using HWP through the kernel command line.
    
    Among other things, that will allow utilization clamps and the
    support for RT/DL tasks in the schedutil governor to be utilized on
    systems in which intel_pstate is used.
    

    您实际上正在使用 intel_pstate CPU 频率缩放驱动程序,但它处于被动模式。尝试这个:

    echo active | sudo tee /sys/devices/system/cpu/intel_pstate/status
    

    然后检查:

    cat /sys/devices/system/cpu/intel_pstate/status
    

    如果按预期工作,则将您的 grub 行更改为:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=active"
    

    看看它是否以你想要的方式启动。

    请注意,CPU 频率缩放驱动程序intel_cpufreq只是intel_pstate被动模式下的驱动程序。

    例子:

    doug@s19:~/temp$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu10/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu11/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu6/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu7/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu8/cpufreq/scaling_driver:intel_cpufreq
    /sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_cpufreq
    
    doug@s19:~/temp$ cat /sys/devices/system/cpu/intel_pstate/status
    passive
    doug@s19:~/temp$ echo active | sudo tee /sys/devices/system/cpu/intel_pstate/status
    active
    
    doug@s19:~/temp$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu10/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu11/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu6/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu7/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu8/cpufreq/scaling_driver:intel_pstate
    /sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_pstate
    
    • 2

相关问题

  • Ubuntu 中的科胜讯调制解调器

  • 如何解决联想笔记本电脑上恢复/电源问题时禁用的蓝牙?

  • 如何为 LG X130 上网本安装 relink 无线驱动程序

  • 类似于 Eyefinity 的东西?

  • 在哪里可以找到 Brother HL-2170W 64 位打印机驱动程序?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve