你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu优化CPU的工作频率

[日期:2012-05-26] 来源:Linux社区  作者:Linux [字体:大 中 小]

Ubuntu优化CPU的工作频率,打开终端:

sudo apt-get install cpufrequtils

然后sudo chmod u+s /usr/bin/cpufreq-set

在系统启动程序startup application里面添加两条命令:

/usr/bin/cpufreq-set   -c   0   -g   conservative

/usr/bin/cpufreq-set   -c   1   -g   conservative

可以在启动后执行如下命令确认是否生效:

cat    /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

执行cpufreq-info 得到如下信息(电脑是双核的)

nalyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 1000 MHz - 2.00 GHz
  available frequency steps: 2.00 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 1000 MHz and 2.00 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range
.
  current CPU frequency is 1000 MHz.
  cpufreq stats: 2.00 GHz:8.28%, 1.67 GHz:1.46%, 1.33 GHz:2.61%, 1000 MHz:87.64%  (35285)
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 1000 MHz - 2.00 GHz
  available frequency steps: 2.00 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 1000 MHz and 2.00 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range
.
  current CPU frequency is 1000 MHz.
  cpufreq stats: 2.00 GHz:8.88%, 1.67 GHz:0.99%, 1.33 GHz:1.57%, 1000 MHz:88.56%  (35873)

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

linux
相关资讯       Ubuntu使用教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款