Linux: cpu frequency

From OnnoWiki
Jump to navigation Jump to search
sudo su
apt -y install linux-tools-common linux-tools-generic linux-cloud-tools-generic
cpupower frequency-set -g governor
cpupower frequency-set -g powersave


Governor 	Description
performance 	Run the CPU at the maximum frequency.
powersave 	Run the CPU at the minimum frequency.
userspace 	Run the CPU at user specified frequencies.
ondemand 	Scales the frequency dynamically according to current load. Jumps to the highest  frequency and then possibly back off as the idle time increases .
conservative 	Scales the frequency dynamically according to current load. Scales the frequency more gradually than ondemand.
schedutil 	Scheduler-driven CPU frequency selection [1], [2].


Cek

watch grep \"cpu MHz\" /proc/cpuinfo


Cara Lain

echo 'GOVERNOR="powersave"' | sudo tee /etc/default/cpufrequtils
sudo /etc/init.d/cpufrequtils restart
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor


Cara Lain

cpufreq-set --cpu 0 --governor powersave
cpufreq-set --cpu 1 --governor powersave
cpufreq-set --cpu 2 --governor powersave
cpufreq-set --cpu 3 --governor powersave

Pranala Menarik