Ubuntu 设置

与开机项有关的参数设置在 /etc/default/grub,可以对其进行调整

cat /etc/default/grub

# If you change this file, run 'update-grub' afterwards to update

# /boot/grub/grub.cfg.

# For full documentation of the options in this file, see:

# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0

GRUB_TIMEOUT_STYLE=hidden

GRUB_TIMEOUT=10

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs

# This works with Linux (no patch required) and with any kernel that obtains

# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)

#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)

#GRUB_TERMINAL=console

# The resolution used on graphical terminal

# note that you can use only modes which your graphic card supports via VBE

# you can see them in real GRUB with the command `vbeinfo'

#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux

#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries

#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start

#GRUB_INIT_TUNE="480 440 1"

然后找到 GRUB_CMDLINE_LINUX_DEFAULT 所在的那行,增加配置

processor.max_cstate=0

intel_idle.max_cstate=0

sudo vim /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.max_cstate=0 intel_idle.max_cstate=0"

然后更新 grub

sudo update-grub

另外可以设置CPU的scale-governor

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

## 设置CPU模式, 分别根据CPU 0-n 的编号进行设置

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

systemctl disable ondemand

/etc/rc.local

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq

重启后即可实现超频。

sudo reboot now

使用命令

cpufreq-info 查看当前 CPU 运行

cpufreq-set 也可以进行单独设置

cpufreq-aperf 用于计算一段时间内的平均频率

sudo apt install cpufrequtils

## 查看当前运行

cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

driver: intel_pstate

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 - 3.60 GHz

available cpufreq governors: performance, powersave

current policy: frequency should be within 800 MHz and 3.60 GHz.

The governor "performance" may decide which speed to use

within this range.

current CPU frequency is 1.52 GHz.

analyzing CPU 1:

driver: intel_pstate

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 - 3.60 GHz

available cpufreq governors: performance, powersave

current policy: frequency should be within 800 MHz and 3.60 GHz.

The governor "performance" may decide which speed to use

within this range.

current CPU frequency is 2.66 GHz.

analyzing CPU 2:

driver: intel_pstate

CPUs which run at the same hardware frequency: 2

CPUs which need to have their frequency coordinated by software: 2

maximum transition latency: 4294.55 ms.

hardware limits: 800 MHz - 3.60 GHz

available cpufreq governors: performance, powersave

current policy: frequency should be within 800 MHz and 3.60 GHz.

The governor "performance" may decide which speed to use

within this range.

current CPU frequency is 960 MHz.

analyzing CPU 3:

driver: intel_pstate

CPUs which run at the same hardware frequency: 3

CPUs which need to have their frequency coordinated by software: 3

maximum transition latency: 4294.55 ms.

hardware limits: 800 MHz - 3.60 GHz

available cpufreq governors: performance, powersave

current policy: frequency should be within 800 MHz and 3.60 GHz.

The governor "performance" may decide which speed to use

within this range.

current CPU frequency is 1.05 GHz.

linux cpu 超频,Linux 调整 cstate 实现cpu超频相关推荐

  1. Linux(debian7)操作基础(四)之CPU频率调整

    在Linux中,内核的开发者定义了一套框架模型来完成CPU频率动态调整这一目的,它就是CPU Freq系统.如下为CPU的几种模式(governor参数): ondemand:系统默认的超频模式,按需 ...

  2. linux 自动降频,Linux资格认证:Ubuntu下对CPU进行降频

    这两天CPU温度超高,为了解决这个问题,先是找了两块以前台式机上的风扇(一个CPU,一个机箱风扇),和一条USB延长线.接好以后运行了一段时间,发现效果很不明显,大概降了有1度吧,还不知道是不是因为自 ...

  3. linux查看cpupower模式,Linux - cpupower调整CPU主频

    前言 linux内核支持调节CPU主频,降低功耗,已到达节能的效果.对于移动设备和笔记本来说,在没有接通电源的时候,续航是很重要的. 通过选择系统空闲状态不同的电源管理策略,可以实现不同程度降低服务器 ...

  4. linux怎么让cpu不自动降频,Win10 CPU自动降频怎么办?Win10下让CPU不降频设置方法

    有一些用户反馈在Win10系统下CPU会自动降频,也就是自动降低频率以减少资源消耗,如果是平时还没有什么,但是如果你在玩游戏,那么降频给大家带来游戏性能的降低是不能接受的,游戏会变的卡顿下面小编给大家 ...

  5. linux cpu降频怎么设置,Android系统修改CPU降频温度阈值、修改CPU关内核温度阈值的方法...

    1.关闭CPU降频温度: 目录:MSM8916.LA.1.1-PostCS-CT-CMCC-r113500.1srcLINUXandroidvendorqcomproprietarythermal-e ...

  6. 五个超酷Linux命令

    五个超酷Linux命令 1.kibitz:交互对话-屏幕同时显示(师徒对话)(要求安装expect工具) kibitz是一个终端工具,它主要用于让一个"师父(master)"来帮助 ...

  7. Linux下查看CPU等基本命令,Linux查看CPU和内存使用情况的常用命令

    1.top top 的全屏对话模式可分为3部分:系统信息栏.命令输入栏.进程列表栏. 第一部分 -- 最上部的 系统信息栏 : 第一行(top): "00:11:04"为系统当前时 ...

  8. linux cpu使用率1200%,linux下用top命令查看cpu利用率超过100%

    今天跑了一个非常耗时的批量插入操作..通过top命令查看cpu以及内存的使用的时候,cpu的时候查过了120%..以前没注意..通过在top的情况下按大键盘的1,查看的cpu的核数为4核. 通过网上查 ...

  9. linux top 命令可视化_linux性能监控:CPU监控命令之top命令

    ​ CPU监控命令之top命令 1概述: top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法. top是一 ...

最新文章

  1. 软件测试培训分享:软件测试的职业发展方向有哪些
  2. mysql -p与密码之间不能有空格
  3. 关注多云安全性的7个问题
  4. php中pandans,Python地信专题 | 基于geopandas的空间数据分析-文件IO篇
  5. arduino无源蜂鸣器歌曲编码_Arduino加无源蜂鸣器,播放音乐《葫芦娃》
  6. android之保存Bitmap到文件
  7. 微软推出Windows Lite,目标Chrome OS上网本
  8. 趣头条投放广告需要哪些资质?趣头条推广广告怎么样搭建账户?
  9. 宏碁台式计算机u盘启动,宏基台式机U盘重装怎么设置U盘启动项
  10. Win10安装-我们无法创建新的分区,也找不到现有的分区
  11. Android小钢琴
  12. 虚拟化与元宇宙:人类文明演化的奇点与治理
  13. PHP微信公众平台开发视频
  14. App推送推了10万打开100?3招提高消息推送(Push)到达率
  15. 博阳全渠道会员营销平台-升级通知
  16. 计算机械产量定额,机械台班产量定额的计算方式
  17. matlab多边形检测_Matlab图像处理学习笔记(四):多边形检测
  18. Python 爬虫 | 爬取股票概念数据
  19. 华为五年自动化测试工程详细解说:unittest单元测试框架
  20. 最好的前端开发资源推荐

热门文章

  1. 【每日一算法】KMP算法,看不懂算我输!
  2. python模块学习---mechanize(模拟浏览器)
  3. docker 上传到自己的容器
  4. VUE的本地应用-V- html
  5. 网络工程师_记录的一些真题_2005上半年上午
  6. 收藏!深度学习计算机视觉模型解析!
  7. 熬了几个大夜,学完一套985博士总结的OpenCV学习笔记(20G高清/PPT/代码)
  8. 计算机视觉方向简介 | 自动驾驶中的车道线跟踪技术
  9. 视觉实战|使用人工神经网络进行图像分类
  10. 【C++简明教程】Python和C++指定元素排序比较