首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何让英特尔的总监们像以前一样按需工作?

如何让英特尔的总监们像以前一样按需工作?
EN

Ask Ubuntu用户
提问于 2014-10-25 19:54:40
回答 1查看 8K关注 0票数 5

我曾经在ondemand调速器上使用我的笔记本电脑,它根据CPU的使用情况切换CPU频率。多年来,它运行得很好,有三个非常重要的优点:

  • 低硬件温度
  • 静扇
  • 需要时高性能

现在我已经升级了我的笔记本电脑(联想B5400,英特尔奔腾3550 M)和系统(Ubuntu14.10),我发现:

  • 只有performancepowersave调控器可用;ondemand不再可用和支持。
  • 在设置文件时发生了一些更改,因为每次启动时,当前的调速器和min/max速度都会恢复为默认值。

因此,我的系统:

  • 仍然让州长回到performance,这是错误的,我相信
  • 不管调控器是什么,cpufreq-info告诉我“频率应该在2.30 MHz和2.30 GHz之内”,尽管可用的频率从800 MHz开始。

我试图编辑定义以下设置的/etc/init.d/cpufrequtils

ENABLE=“真”GOVERNOR=节能“MAX_SPEED="2300000”MIN_SPEED=“800000

我还尝试在scaling_min_freq中编辑/sys/devices/system/cpu/cpu0/cpufreq文件,并将其设置为800000。

而且,你猜怎么着,在重新启动系统之后,我再次处于performance模式,频率在2.30GHz和2.30GHz之间。

请你解释一下:

( a)在Ubuntu14.10中,最小/最大CPU频率的主设置到底在哪里?

( b)如何定义频率和调速器,以实现与旧的好ondemand相同的结果?(我想用尽可能低的频率工作,只在重负荷的情况下上升)

以及如何避免重置我定义的内容,当然。

如果能得到解释我会很感激的。

EN

回答 1

Ask Ubuntu用户

发布于 2015-04-25 11:31:13

我在.bashrc中将它设置为别名(和root),因为我遇到了类似的问题。

化名如下:

代码语言:javascript
运行
复制
alias performance="echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"  
alias powersave="echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"  
alias ondemand="echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"

然后可以编写powersave,以便在BASH控制台上启用节能选项。当我想使用特定的缩放调控器时,我将其放在/etc/rc.local中:

代码语言:javascript
运行
复制
#!/bin/sh -e  
# rc.local  
# This script is executed at the end of each multiuser runlevel.  
# Make sure that the script will "exit 0" on success or any other   
# value on error.  
# In order to enable or disable this script just change the execution  
# bits.  
#  
# By default this script does nothing.  
for i in `ls -d /sys/devices/system/cpu/cpu*|grep -v cpufreq|grep -v cpuidle`; do echo ondemand > $i/cpufreq/scaling_governor; done
exit 0

您可能有多个处理器,因此相应地编辑它。我懒得写一个简短的脚本,但如果你让我这么做的话,我会这么做的:)

编辑:我将脚本添加到/etc/rc.local

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/541584

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档