欢迎来到麦麦的不老阁

记录一些关于自己在linux、网络应用、个人心情故事的文字...

关于我

我喜欢搬个小板凳坐在马路边看MM,喜欢把双手插裤兜...更多机密资料... »

Member Login

Lost your password?

麦麦的不老阁

关注互联网,爱生活爱拉芳!不扯谈客观,哥的博客哥做主,用低俗的文字来表述主观看法~

AMD CPU 频率调节

在Arch Linux 发行版中,调节CPU频率的工具一般是使用 Cpufrequtils。

安装 cpufrequtils
# pacman -S cpufrequtils

使用的是AMD平台的CPU,加载 acpi-cpufreq 这个驱动就没有实际意义了,这个适合intel CPU!

加载模块:
# modprobe powernow-k{6,7,8}
可能会有提示错误,因为加载的是三个里面其中一个。

CPU的调节方案,我选择了以下两个。
# modprobe cpufreq_ondemand    #根据系统负载动态调节CPU频率
# modprobe cpufreq_powersave    #使CPU运行在最低频率

另外还可以根据自己的需求选择:
performance:使 CPU 运行在最高频率,它已经被编译进内核。
cpufreq_conservative:与 ondemand 相似但更为保守 (clock speed changes are more graceful)
cpufreq_userspace:由用户手动选择 CPU 频率。

如果正确加载了正确的驱动,使用cpufreq-info查看CPU信息:

[marco@arch ~]$ cpufreq-info
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: powernow-k8
CPUs which need to switch frequency at the same time: 0 1
hardware limits: 800 MHz – 1.60 GHz
available frequency steps: 1.60 GHz, 800 MHz
available cpufreq governors: powersave, ondemand, performance
current policy: frequency should be within 800 MHz and 1.60 GHz.
The governor “ondemand” may decide which speed to use
within this range.
current CPU frequency is 800 MHz.
analyzing CPU 1:
driver: powernow-k8
CPUs which need to switch frequency at the same time: 0 1
hardware limits: 800 MHz – 1.60 GHz
available frequency steps: 1.60 GHz, 800 MHz
available cpufreq governors: powersave, ondemand, performance
current policy: frequency should be within 800 MHz and 1.60 GHz.
The governor “ondemand” may decide which speed to use
within this range.
current CPU frequency is 800 MHz.

为了开机自动加载模块,在/etc/rc.conf 中,添加:

MODULES=( powernow-k8 cpufreq_ondemand cpufreq_powersave … )
DAEMONS=( cpufreq … )

这个世界清静了,CPU 风扇不会再狂转不止了!

写博客的激情锐减,所以写的比较简单!

订阅博客地址:http://www.uncle.ws/subscribe/

您可能感兴趣的相关日志

本文评论 6 comments

  1. Iven Leave a comment:

    哈哈,超频了……所以用不到这个了……

  2. YYWR Leave a comment:

    其实有的时候够用就行,虽然我也搞计算机这行,不过从来没有去试过超频,能用就用,不能用就别用,麻烦

  3. Yunkwan Leave a comment:

    这样岂不是用AMD的同学本本发热不止?

    LinuxHobby 回复:

    怎么会呢?

    Yunkwan 回复:

    你不是说这个只适合intel的cpu吗?那么amd用什么?还是有别的可用?

    LinuxHobby 回复:

    acpi-cpufreq 适合intel CPU!
    如果是AMD CPU,就加载 powernow-k{6,7,8}

Leave a comment

玩转Linux

把Linux当玩具

Wordpress

Wordpress 程序应用

游荡互联网

在网上做点啥?

业界资讯

互联网资讯

随笔小记

随笔小记

软件快递

收集软件资讯