LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 897|回复: 6

CPU降频求救啊,

[复制链接]
发表于 2009-4-16 17:59:13 | 显示全部楼层 |阅读模式
我在网上看了很多CPU降频的文章,但好像都不起作用,
cpufreq-info得到的结果:
  1. cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
  2. Report errors and bugs to cpufreq@vger.kernel.org, please.
  3. analyzing CPU 0:
  4.   driver: acpi-cpufreq
  5.   CPUs which need to switch frequency at the same time: 0
  6.   hardware limits: 800 MHz - 1.87 GHz
  7.   available frequency steps: 1.87 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
  8.   available cpufreq governors: ondemand, performance
  9.   current policy: frequency should be within 800 MHz and 1.87 GHz.
  10.                   The governor "performance"  
  11. may decide which speed to use
  12.                   within this range.
  13.   current CPU frequency is 1.87 GHz (asserted by call to hardware).
复制代码

使用acpi -t命令得到的结果:
  1. Thermal 0: ok, 72.0 degrees C  
复制代码
我的天啊,现在CPU温度72℃啊,

使用lsmod |grep cpu命令没看有任何模块加载了,

使用/etc/rc.d/cpufreq start想开启cpufreq时提示:
  1. :: Setting cpufreq governing rules , cpu 0Error setting new values. Common errors:           [BUSY]
  2. - Do you have proper administration rights? (super-user?)
  3. - Is the governor you requested available and modprobed?
  4. - Trying to set an invalid policy?
  5. - Trying to set a specific frequency, but userspace governor is not available,
  6.    for example because of hardware which cannot be set to a specific frequency
  7.    or because the userspace governor isn't loaded?
  8. [DONE]
复制代码
我的rc.conf是这样配置的,
  1. MODULES=(acpi_cpufreq cpufreq_ondemand thinkpad_acpi fan ac)
  2. DAEMONS=(syslog-ng dbus !network wicd oss netfs crond hal @openntpd)  
复制代码

刚再次看http://www.linuxsir.cn/bbs/thread301402.html时不管三七二十一把cpufreqd也装上了(pacman -S cpufreqd),再使用cpufreq-set -f 800MHz命令,再通过cpufreq-info命令查看时发现现在的频率真的变成800MHz了,再用acpi -t查看时发现温度也降下来了,现在的温度为56℃。
之所以之前没有装cpufreqd是因为有朋友说acpi中有这个模块,就按他的方法删掉了。可是CPU始终都是全速运行的,我并没有运行什么东西。
使用free -m命令看到内存使用了693M,关掉FF以及linuxQQ再次使用free -m命令内存使用量为620M,这是正常的吗?

还不知道怎么查看运行了哪些软件(可以使用top命令),现在才知道linux下的VIM得使用"+y命令才能把字符复制到公用寄存器上,呵呵,又进步了一点点!

------------ split -----------
Update(18时34分):
@qiang_liu8183
谢谢你给出的地址,我在按上面的步骤操作,

@YCF_name
谢谢你让我知道了top命令,linux我是个初学者,谢谢。

刚重启电脑,再次使用cpufreq-info命令查看,发现频率为1.87GHz,再次查看,频率变为800MHz,说明变频成功,谢谢两位以及其它回贴的朋友。

使用Archlinux还有以下问题,不知路过的人有谁知道:
1、怎么样设置xfce4随机启动。现在我的电脑是先得输入用户台以及密码登陆控制台,然后通过startxfce4命令启动xfce4(不知为什么使用X命令启动后是一片黑,只能通过按Ctrl+Alt+F1键进入到控制台)。我想要的是一启动就进入xfce4的登陆界面。

2、怎么样能在xfce4里使用普通用户关机。现在我在终端里输入poweroff命令提示:poweroff:must be superuser.也就是说我没有权限关机了,就算我在xfce的菜单里选择关机也会提示我无法关机,我知道这是权限问题,但不知道怎么设置。

3、不知为什么在普通用户下使用sudo命令有些时候能使用(比如:sudo pacman -Syu),有些时候要输入密码(比如:sudo vim /etc/rc.local),但输入root的密码不对,输入普通用户的密码对了又没办法执行我要的命令,这又是要设置哪里啊?应该又是权限的问题,还有个用户组的问题?????

4、在控制台下我想显示中文,在http://code.google.com/p/archlive-pkg/里看到个打好UTF8中文补丁的内核,我通过pacman -U kernel26-archlive-2.6.29.1-3-i686.pkg.tar.gz安装了,但重启后发现还是一个,所有的中文在控制台下都是白色的小方块。我哪里做的不对吗?或者我少做了什么呢?
发表于 2009-4-16 18:04:16 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-4-16 18:04:27 | 显示全部楼层
内存使用,包括cache!正常

可以使用
  1. top
复制代码
看下各进程的占用情况

关于cpufreq-set
有3个的,我一般是powersave的,需要时自己调到performance
有个是ondemand 就是自动调节,不过我觉得貌似没用,因为他喜欢工作在最高频。。。
:-(
回复 支持 反对

使用道具 举报

发表于 2009-4-16 18:19:36 | 显示全部楼层
[QUOTE=YCF_name;1975358
有个是ondemand 就是自动调节,不过我觉得貌似没用,因为他喜欢工作在最高频。。。
:-([/QUOTE]

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.
我的设为ondemand的cpu大部分时间都在低频,而且是在打开firefox,gmusicbrowser等程序后。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-16 18:33:31 | 显示全部楼层
@qiang_liu8183
谢谢你给出的地址,我在按上面的步骤操作,

@YCF_name
谢谢你让我知道了top命令,linux我是个初学者,谢谢。
回复 支持 反对

使用道具 举报

发表于 2009-4-16 18:47:29 | 显示全部楼层
什么软件也不用装,加载两个模块就是了,debian的方法如下




sudo vim /etc/modules

# Cpufreq
acpi-cpufreq
cpufreq-conservative

sudo vim /etc/rc.local

#Cpufreq
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo conservative > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-16 19:01:05 | 显示全部楼层
@adaml
这个方法可有效?能具体讲下上面的命令的作用吗?

我看了下/sys/devices/system/cpu/cpu0/cpufreq/目录,没有scaling_governor这个文件
电脑是单核的,所以你第二条命令用不着吧,不知有没有用
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表