博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu 下cpu的设置
阅读量:6125 次
发布时间:2019-06-21

本文共 2346 字,大约阅读时间需要 7 分钟。

安装cpufrequtils:

yu@ubuntu:~$ sudo apt-get install cpufrequtils

查看cpu的信息:

yu@ubuntu:~$ sudo cpufreq-infocpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009Report errors and bugs to cpufreq@vger.kernel.org, please.analyzing CPU 0:  driver: acpi-cpufreq  CPUs which run at the same hardware frequency: 0  CPUs which need to have their frequency coordinated by software: 0  maximum transition latency: 4294.55 ms.  hardware limits: 800 MHz - 1.90 GHz  available frequency steps: 1.90 GHz, 1.80 GHz, 1.60 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz  available cpufreq governors: conservative, ondemand, userspace, powersave, performance  current policy: frequency should be within 800 MHz and 1.90 GHz.                  The governor "ondemand" may decide which speed to use                  within this range.  current CPU frequency is 800 MHz (asserted by call to hardware).  cpufreq stats: 1.90 GHz:-nan%, 1.80 GHz:-nan%, 1.60 GHz:-nan%, 1.40 GHz:-nan%, 1.20 GHz:-nan%, 1000 MHz:-nan%, 800 MHz:-nan%  (12092)  analyzing CPU 1:  driver: acpi-cpufreq  CPUs which run at the same hardware frequency: 1  CPUs which need to have their frequency coordinated by software: 1  maximum transition latency: 4294.55 ms.  hardware limits: 800 MHz - 1.90 GHz  available frequency steps: 1.90 GHz, 1.80 GHz, 1.60 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz  available cpufreq governors: conservative, ondemand, userspace, powersave, performance  current policy: frequency should be within 800 MHz and 1.90 GHz.                  The governor "ondemand" may decide which speed to use                  within this range.  current CPU frequency is 8http://i.cnblogs.com/EditPosts.aspx?opt=100 MHz (asserted by call to hardware).  cpufreq stats: 1.90 GHz:-nan%, 1.80 GHz:-nan%, 1.60 GHz:-nan%, 1.40 GHz:-nan%, 1.20 GHz:-nan%, 1000 MHz:-nan%, 800 MHz:-nan%  (13263)

从上面可以看到本机cpu的频率限制在800M~1.9GHZ之间。

可选设置频率有1.90GHz  1.80GHz 1.60GHz   1.40GHz  1.20GHz  1000MHz   800MHz

cpu对用的模式有5种:conservative, ondemand, userspace, powersave,performance                       

分别对应   自适应调节模式 自调节模式  用户(有root权限)自定义模式省电模式     最高或者最低频率

可参考:

设置cpu模式:sudo cpufreq-set -g {

conservative | ondemand  | userspace  | powersave  | performance }

设置cpu频率:  sudo cpufreq-set -f {800~1900}(设置你的频率,使用cpufreq-info可以查看你的cpu支持哪些) 

使用 cpufred-set -d 600M (最低) ,cpufreq-set -u 1.5G (最高) 

转载于:https://www.cnblogs.com/rainvector/p/3660578.html

你可能感兴趣的文章
让div固定在某个位置
查看>>
Java开发环境Docker镜像
查看>>
从无到有,WebService Apache Axis2初步实践
查看>>
任务调度(一)——jdk自带的Timer
查看>>
UIKit框架(15)PCH头文件
查看>>
整理看到的好的文档
查看>>
Linux磁盘管理和文件系统管理
查看>>
linux运维人员的成功面试总结案例分享
查看>>
Windows DHCP Server基于MAC地址过滤客户端请求实现IP地址的分配
查看>>
命令查询每个文件文件数
查看>>
《跟阿铭学Linux》第8章 文档的压缩与打包:课后习题与答案
查看>>
RAC表决磁盘管理和维护
查看>>
HDU 3622 Bomb Game(二分+2-SAT)
查看>>
Apache通过mod_php5支持PHP
查看>>
发布一个TCP 吞吐性能测试小工具
查看>>
java学习:jdbc连接示例
查看>>
PHP执行批量mysql语句
查看>>
Extjs4.1.x 框架搭建 采用Application动态按需加载MVC各模块
查看>>
Silverlight 如何手动打包xap
查看>>
建筑电气暖通给排水协作流程
查看>>