感谢支持
我们一直在努力

Ubuntu优化CPU的工作频率

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

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu优化CPU的工作频率
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏