![将 cpufreq 驱动程序从 intel pstate 更改为 acpi](https://linux22.com/image/139803/%E5%B0%86%20cpufreq%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E4%BB%8E%20intel%20pstate%20%E6%9B%B4%E6%94%B9%E4%B8%BA%20acpi.png)
我正在尝试禁用 intel pstate cpufreq 驱动程序并将其替换为 acpi 以获得最大的 cpu 控制。我试过这个。
vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable quiet splash"
or
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable" in a separate line
grub-mkconfig -o /boot/grub/grub.cfg
No change so i reboot
reboot
sudo service cpufreqd restart
sudo modprobe acpi-cpufreq
当我cpufreq-info
这样做时仍然显示
.
.
.analyzing CPU 23:
driver: intel_pstate
CPUs which run at the same hardware frequency: 23
CPUs which need to have their frequency coordinated by software: 23
maximum transition latency: 0.97 ms.
hardware limits: 1.20 GHz - 3.30 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 3.30 GHz and 3.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 3.12 GHz (asserted by call to hardware).
analyzing CPU 24:
driver: intel_pstate
CPUs which run at the same hardware frequency: 24
CPUs which need to have their frequency coordinated by software: 24
maximum transition latency: 0.97 ms.
hardware limits: 1.20 GHz - 3.30 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 3.30 GHz and 3.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 2.39 GHz (asserted by call to hardware).
analyzing CPU 25:
driver: intel_pstate
CPUs which run at the same hardware frequency: 25
CPUs which need to have their frequency coordinated by software: 25
maximum transition latency: 0.97 ms.
hardware limits: 1.20 GHz - 3.30 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 3.30 GHz and 3.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.26 GHz (asserted by call to hardware).
analyzing CPU 26:
driver: intel_pstate
CPUs which run at the same hardware frequency: 26
CPUs which need to have their frequency coordinated by software: 26
maximum transition latency: 0.97 ms.
hardware limits: 1.20 GHz - 3.30 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 3.30 GHz and 3.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 3.27 GHz (asserted by call to hardware).
analyzing CPU 27:
driver: intel_pstate
CPUs which run at the same hardware frequency: 27
CPUs which need to have their frequency coordinated by software: 27
maximum transition latency: 0.97 ms.
hardware limits: 1.20 GHz - 3.30 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 3.30 GHz and 3.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 2.17 GHz (asserted by call to hardware).
我还尝试通过将 /etc/default/modules/acpi 编辑为 module="all" 来加载模块并重新启动,但它不起作用
我在这里做错了什么?
答案1
intel_pstate
以比 ACPI 驱动程序更细粒度的方式管理兼容的 CPU,因此一般来说,您最好让它处理事情。
对于最新的内核,在某些情况下可以在启动后禁用它。为此,写给off
/sys/devices/system/cpu/intel_pstate/status
;如果成功(请参阅文档了解限制),您应该能够使用 ACPI 驱动程序。您可能需要禁用 HWP 才能使其工作;为此,请添加intel_pstate=no_hwp
到内核启动参数中。
(文档确实提到intel_pstate=disable
应该阻止它注册,因此这对您不起作用的事实有点令人惊讶,并且可能表明存在错误。)