Carlos'Blog - proc
type: channel
link: https://zxqme.com/tag/proc/
items: Debian/Ubuntu开启CPU性能模式

Debian/Ubuntu开启CPU性能模式
type: item
date: 2020-05-30T19:57:01+08:00
description: 使用指令：cat /proc/cpuinfo |grep MHz|uniq查看CPU主频localhost / # cat /proc/cpuinfo |grep MHz|uniq cpu MHz : 1298.205 cpu MHz : 930.347 cpu MHz : 1380.764 cpu MHz : 1406.651 使用指令cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor查看CPU0的频率策略：localhost / # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance 其他CPU核心可以已修改为cpu1、cpu2来查看。如果策略不是performance，也就不是性能模式，root权限下使用以下指令更改echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 如果是多核CPU请把cpu0依次更改，输入命令