ubuntu下调整cpu频率
环境:ubuntu15.10
查看内核支持的cpu策略
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
比如我的显示
performance powersave
说明我的目前只支持节能和高性能,要想支持更多请安装相应模块
一般策略如下
. performance:CPU维持最高时脉运行。
. ondemand:程序运行时,直接调高时脉运行。(但不一定是调到最高,而是依程式需求)。没有运行时,调低时脉。
. conservative:同上,但调整的方式,是一阶一阶地调整,而非直接调整。
. powersave:CPU维持最低时脉运行
5. userspace:是由使用者自己定义,需要安装其他软件管理
此时我们只需要将
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governors
文件中的内容改成你所需要的即可,一般我们/sys/devices/system/cpu/下面有很多核心,比如我的cpu0-7八核心,所以每一个都需要该
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
每次都这样比较麻烦,所以我们可以将其写入脚本
#!/bin/bash
#set cpu scaling governor by your self
#函数查找有几个核心并将其scaling_governor文件设置成你所需要的内容
set_cpu()
{
for i in `ls /sys/devices/system/cpu/ | grep 'cpu[0-9]?*'`
do
echo $ > /sys/devices/system/cpu/$i/cpufreq/scaling_governor
done
}
#判断输入
case $1 in
#performance
"pf")
set_cpu performance
;;
#ondemand
"od")
;;
#conservative
"cs")
;;
#powersave
"ps")
set_cpu powersave
;;
*)
echo "please input [pf][od][cs][ps]"
;;
esac
我们保存成cpufreq.sh并加上可执行权限
chmod +x cpufreq.sh
然后执行
sudo ./cpufreq.sh pf
查看一下文件
aaarticlea/png;base64,iVB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YYk1BvKMbByE8y2k15k02vvDfYs5HtGUX2NorFJU0XRjCDPYdjdfttJKjIi2+0iMH2l0qaqDgCv10J7uCEhi/kSn19Bh6maoG1PolwqCMR2+dCI7ZNdPKIc2S5Ve5k91CcMG4Z7IiIwlWw8prwcQ2gyiJ9ssvWLZL7eJNu9KAXLWMe2Xd/aiulkS4e4KkEzYBOXlk43neEFdg90jkbf7LDJ+yFUKIKmpRIqfuRtDBezmRmg64XW3uZzShpUmQhS+NVs14ZzYE+ZhxgQ2jguIm8Y4WX0d88gV9Ec5Bst2rIQbVqL+KINsLYY+UwCmvWeToPKaSL4S7DLtB02tIfnc9qFpPAWQmEN4bNhqIzsT2eJ72VoLkIbo/vF5BCZi6AMoV3YIF4gg8b7zlacXnJTxYvvfADtuaEE9pGEBOzjZ29sLEoJFNGmszOPT3J0pKb0YluK4K0lg4tpABm8t8UqHe9pqIbX0Bn6ww034FEyppgyyJ6dp623fZWGwAttN0vYv/Y4HAXvf5bm9xozdu+GT19yaenYd5icZ5gxaefaNqOubQ7oW6Ag5maoGLfp5BB6eWBlUN0/YLYYEG77EnmuSQhXZCA3MR5Klxxhys62EQ3yU+YRHZMqyNoID50dOZG30D4koPkChc7JLU1CYexYGGVNULna4PYEQa32DTs9c747qCOzOBmsvqPD9eob0JxspnFPe1SaiwGlB2H2iAPsRKwlB1VclQjhCUxRjQdb5R2vf2klY4BqLJOqdgUHegJV2YJ161AkMsdpJA0dkNfi4vAUWWfA1q14S2RegtFIQCjIoLcPHAgVy3+fa8zzWfZln3yCTKp0oZOjJVYnOiY7WM5NXFcFHZyXyYLObiAWX9p7wcaNmEd7tZnMVksQ6dptTjotnVWwne0Se6KjI7Zo5UpUs3wjJ8+ns2djbcCccFKdZ3Gtc5Ro/zLl0EzoiXr6Eof00jz8P/P3p4j0auLLAAAAAElFTkSuQmCC" alt="" />
ubuntu下调整cpu频率的更多相关文章
- Ubuntu下调整时区时间
Ubuntu下调整时区时间 学习了:http://blog.csdn.net/jintiaozhuang/article/details/38583031 进行了tzselect错误的修复 学习了:h ...
- Ubuntu 下查看CPU 信息命令
from: http://hi.baidu.com/hermitinhistory/blog/item/ce64d5fb6b23b71b6d22eb95.html 查看当前操作系统内核信息 uname ...
- Windows下获取CPU频率
一直想在Windows下取得CPU的时钟速度,找了好久终于找到了函数CallNtPowerInformation,要想使用它,首先必须包含powrprof.h头文件和链接库powerprof.lib. ...
- ubuntu下查看cpu信息
查看CPU信息cat /proc/cpuinfo 几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核( ...
- Ubuntu下查看CPU、内存和硬盘详细信息的几个命令
CPU: 型号:grep "model name" /proc/cpuinfo |awk -F ':' '{print $NF}' 数量:lscpu |grep "CPU ...
- Ubuntu下调整swap分区的大小
转自:http://blog.chinaunix.net/uid-7573623-id-2048964.html 由于安装oracle 的时候,swap太小不能继续安装,于是想有什么方法在不不用安装o ...
- Linux(debian7)操作基础(四)之CPU频率调整 Linux系统CPU频率调整工具使用
在Linux中,内核的开发者定义了一套框架模型来完成CPU频率动态调整这一目的,它就是CPU Freq系统.如下为CPU的几种模式(governor参数): ondemand:系统默认的超频模式,按需 ...
- Linux系统CPU频率调整工具使用
现在的CPU耗电很大,按需调节CPU频率对普通桌面及移动设备节能有重要的意义,目前多数Linux发行版都已经默认启用了这个功能,但在一些像数据库,集群系统等特别需要CPU高性能的服务器环境中,Linu ...
- Ubuntu下自定义调整CPU工作频率(用于省电或提高性能都好用)
昨天高铁上拿T480切win10系统看电影,为了节电给细调了个省电策略(设置CPU性能30%),不知是不是因为这个原因,今天切回Ubuntu1604工作导致CPU工作频率非常低. 查阅了一下相关方法, ...
随机推荐
- return 返回字符串
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cons ...
- hdu 1281 棋盘游戏 (二分匹配)
棋盘游戏 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submis ...
- Devc++编译系统分配给int多少字节
我看的是<C语言程序设计>..谭浩强的PDF版 里面只讲了VC和TC 的,没有Devc++的..(我的是5.10版) 还有这是什么意思? 经过查阅我进行了这样的测试: 得到了这样的结果: ...
- Elasticsearch 中文分词器IK
1.安装说明 https://github.com/medcl/elasticsearch-analysis-ik 2.release版本 https://github.com/medcl/elast ...
- [洛谷P5173]传球
题目大意:有$n(n\leqslant3500)$个人坐成一个环,$0$号手上有个球,每秒钟可以向左或向右传球,问$m$秒后球在$0$号手上的方案数. 题解:一个$O(nm)$的$DP$,$f_{i, ...
- Unity3D LOD Group
今天下了一个4.0破解版,然后看到一个Demo Level of Detail 就研究了一下 以前用的是Unity3.5 free版本,没有这个功能,真实泪奔....... As your s ...
- CSS的历史与工作原理
1. 浏览器的发展与CSS 网页浏览器主要通过HTTP协议连接网页服务器而取得网页,HTTP容许网页浏览器送交资料到网页服务器并且获取网页.目前最常用的 HTTP 是 HTTP/1.1,这个协议在RF ...
- Indexing GROUP BY
SQL databases use two entirely different group by algorithms. The first one, the hash algorithm, agg ...
- ACE接受器-连接器模式
转载于:http://www.cnblogs.com/TianFang/archive/2006/12/22/600191.html 接受器-连接器设计模式(Acceptor-Connector)使分 ...
- Parcelable序列化对象
一.序列化的目的 永久性保存对象,保存对象的字节序列到本地文件中: 通过序列化对象在网络中传递对象: 通过序列化在进程间传递对象; 在Intent中进行传递复杂自定义类对象时,需要实现Parcelab ...