Linux: cpu frequency: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) No edit summary |
Onnowpurbo (talk | contribs) No edit summary |
||
| Line 14: | Line 14: | ||
conservative Scales the frequency dynamically according to current load. Scales the frequency more gradually than ondemand. | conservative Scales the frequency dynamically according to current load. Scales the frequency more gradually than ondemand. | ||
schedutil Scheduler-driven CPU frequency selection [1], [2]. | schedutil Scheduler-driven CPU frequency selection [1], [2]. | ||
| Line 19: | Line 20: | ||
watch grep \"cpu MHz\" /proc/cpuinfo | 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 | |||
Revision as of 02:55, 7 November 2018
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