如何强制禁用intel_pstate?即使grub中的intel_pstate = disable选项,重启时也会启用intel_pstate [英] HOW TO FORCEFULLY DISABLE intel_pstate? intel_pstate is enabled on reboot even with intel_pstate=disable option in grub

查看:705
本文介绍了如何强制禁用intel_pstate?即使grub中的intel_pstate = disable选项,重启时也会启用intel_pstate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cpu-frequency标度设置cpu频率.在我的系统中,仅支持powersave,性能frequency-scaling-governor.在其他文档中对此进行了解释,默认情况下,intel_pstate是启用的,并且仅支持powersave,性能frequency-scaling-governor和解决方案是禁用intel_pstate的.所以我尝试如下禁用

I am trying to use cpu-frequency scaling to set cpu frequency. In my system, only powersave , performance frequency-scaling-governor supported. It was explained in other document, by default, intel_pstate is enabled and it only supports powersave , performance frequency-scaling-governor and solution is disable intel_pstate. So I tried to disable as below

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"
sudo update-grub

在重新启动时,启用了intel_pstate.

所以,我再次对grub进行了以下更改

so , again I made following changes in grub

sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable acpi=force"
sudo update-grub

在重新启动后,它仍然显示intel_pstate已启用.

当我执行以下命令时,

$ cpupower -c all frequency-info

    analyzing CPU 7:
      driver: intel_pstate
      CPUs which run at the same hardware frequency: 7
      CPUs which need to have their frequency coordinated by software: 7
      maximum transition latency:  Cannot determine or is not supported.
      hardware limits: 1.60 GHz - 3.90 GHz
      available cpufreq governors: performance powersave
      current policy: frequency should be within 1.60 GHz and 3.90 GHz.
                      The governor "powersave" may decide which speed to use
                      within this range.
      current CPU frequency: 1.72 GHz (asserted by call to hardware)
      boost state support:
        Supported: yes
        Active: yes
        25500 MHz max turbo 4 active cores
        25500 MHz max turbo 3 active cores
        25500 MHz max turbo 2 active cores
        25500 MHz max turbo 1 active cores

     $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
     intel_pstate


   $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
    performance powersave

由于用户空间调控器不可用,因此我无法使用cpu-frequency标度(cpupower).

我正在使用Intel Core-i7 @ 3.40GHZ,Linux debian-8.0(内核3.16.35).

I am using Intel Core-i7 @3.40GHZ, Linux debian-8.0 (kernel- 3.16.35 ).

如果您可以帮助我解决此问题,那将是一个很大的帮助.预先谢谢你.

It will be a great help if you can help me to resolve this problem. Thank you in advance.

根据Peter Cordes的建议,我在启动时进行了手动输入,现在 intel_pstate已禁用,但是没有激活cpu频率调节器或acpi cpufrequency驱动器.

As per suggestion of Peter Cordes,I make manual entry during boot time and now intel_pstate is disabled, but no cpu frequency governor or acpi cpufrequency driver not activated.

root@debian:~# cpupower -c 0 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.
  hardware limits: 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
    25500 MHz max turbo 4 active cores
    25500 MHz max turbo 3 active cores
    25500 MHz max turbo 2 active cores
    25500 MHz max turbo 1 active cores

由于没有可用的cpu频率调节器,因此我无法设置cpu频率.尝试设置CPU频率时出现以下错误消息.

As no cpu frequency governor available, I am not able to set cpu frequency. I got following error messages when I try to set cpu frequency.

root@debian:~# cpupower -c 0 frequency-set -f 2000000
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?

推荐答案

很抱歉将其发布为答案,但我没有信誉将其发布为评论:/

sorry to post this as an answer but I don't have the reputation to post as a comment :/

在我的intel核心i7上尝试禁用intel_pstate驱动程序时,我遇到了同样的问题.设法禁用它时,acpi-cpufreq无法正确加载,因此禁用了SpeedStep.SpeedStep允许通过这些微处理器中的软件来更改频率,禁用该频率后,只能由硬件来触摸.您可以通过BIOS设置访问此选项.希望对您有所帮助!

I had the same problem when trying to disable intel_pstate driver in my intel core i7. While managing to disable it, acpi-cpufreq was not loading properly, the problem being SpeedStep was disabled. SpeedStep allows the frequency to be changed by software in these microprocessors, with it disabled it can only be touched by the hardware. You can access this option through BIOS settings. I hope that helps!

这篇关于如何强制禁用intel_pstate?即使grub中的intel_pstate = disable选项,重启时也会启用intel_pstate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆