Difference between revisions of "Linux: cpu frequency"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with " cpupower frequency-set -g governor Governor Description performance Run the CPU at the maximum frequency. powersave Run the CPU at the minimum frequency. userspace...") |
Onnowpurbo (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | sudo su | ||
+ | apt -y install linux-tools-common linux-tools-generic linux-cloud-tools-generic | ||
cpupower frequency-set -g governor | cpupower frequency-set -g governor | ||
+ | cpupower frequency-set -g powersave | ||
Line 11: | 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]. | ||
+ | |||
+ | |||
+ | |||
+ | ==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 | ||
+ | |||
+ | |||
+ | ==Cara Lain== | ||
+ | |||
+ | echo 1 > /sys/module/processor/parameters/ignore_ppc | ||
+ | for x in /sys/devices/system/cpu/cpu[0-3]/cpufreq/;do | ||
+ | echo 2000000 > $x/scaling_max_freq | ||
+ | done | ||
+ | |||
+ | |||
+ | for x in /sys/devices/system/cpu/cpu[0-3]/cpufreq/;do | ||
+ | echo 700000 > $x/scaling_min_freq | ||
+ | done | ||
+ | |||
+ | ==Cara Lain== | ||
+ | |||
+ | |||
+ | Edit /etc/default/grub (you need to do this using root privilege) and change | ||
+ | |||
+ | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | ||
+ | |||
+ | to | ||
+ | |||
+ | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.ignore_ppc=1" | ||
+ | |||
+ | then run: | ||
+ | |||
+ | sudo update-grub | ||
+ | |||
+ | and reboot. | ||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[Linux]] |
Latest revision as of 12:47, 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
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
Cara Lain
echo 1 > /sys/module/processor/parameters/ignore_ppc for x in /sys/devices/system/cpu/cpu[0-3]/cpufreq/;do echo 2000000 > $x/scaling_max_freq done
for x in /sys/devices/system/cpu/cpu[0-3]/cpufreq/;do echo 700000 > $x/scaling_min_freq done
Cara Lain
Edit /etc/default/grub (you need to do this using root privilege) and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.ignore_ppc=1"
then run:
sudo update-grub
and reboot.