Photonicat 下调CPU频率: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Powersave 模式== 命令行输入: <pre> #! /bin/bash cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "powersave" > $file; done cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor </pre> ==CPU 关闭部分核心== <pre> echo 0 > /sys/devices/system/cpu/cpu1/online echo 0 > /sys/devices/system/cpu/cpu2/online echo 0 > /sys/devices/system/cpu/cpu3/online </pre>") |
No edit summary |
||
Line 1: | Line 1: | ||
默认CPU有自动管理电压以及评率功能。但在极端需要的时候,通过减少CPU性能来换取降低功耗,可以通过: | |||
==Powersave 模式== | ==Powersave 模式== | ||
命令行输入: | 命令行输入: | ||
<pre> | <pre> | ||
#! /bin/bash | #! /bin/bash | ||
Line 12: | Line 13: | ||
==CPU 关闭部分核心== | ==CPU 关闭部分核心== | ||
命令行输入: | |||
<pre> | <pre> | ||
echo 0 > /sys/devices/system/cpu/cpu1/online | echo 0 > /sys/devices/system/cpu/cpu1/online |
Latest revision as of 12:38, 5 June 2023
默认CPU有自动管理电压以及评率功能。但在极端需要的时候,通过减少CPU性能来换取降低功耗,可以通过:
Powersave 模式
命令行输入:
#! /bin/bash cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "powersave" > $file; done cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
CPU 关闭部分核心
命令行输入:
echo 0 > /sys/devices/system/cpu/cpu1/online echo 0 > /sys/devices/system/cpu/cpu2/online echo 0 > /sys/devices/system/cpu/cpu3/online