Difference between revisions of "CPU: Reset Speed"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 14: | Line 14: | ||
==Menggunakan cpupower== | ==Menggunakan cpupower== | ||
− | + | Install | |
− | |||
+ | apt install linux-tools-common linux-tools-4.15.0-20-generic linux-cloud-tools-4.15.0-20-generic | ||
+ | |||
+ | |||
+ | ==Penggunaan== | ||
+ | |||
+ | # info | ||
+ | cpupower frequency-info | ||
+ | |||
+ | # set max | ||
+ | cpupower frequency-set -u 1700M -r | ||
− | |||
NAME | NAME |
Revision as of 09:19, 3 January 2020
Cek Speed
sudo -i # paste <(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_min_freq) <(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq) <(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq) | column -s $'\t' -t
Reset
To change the maximum frequency lower (you can't change it higher) use this command to change it from 2200 Mhz to 1700 Mhz:
for x in /sys/devices/system/cpu/*/cpufreq/; do echo 1700000 | sudo tee $x/scaling_max_freq; done
Menggunakan cpupower
Install
apt install linux-tools-common linux-tools-4.15.0-20-generic linux-cloud-tools-4.15.0-20-generic
Penggunaan
# info cpupower frequency-info
# set max cpupower frequency-set -u 1700M -r
NAME
cpupower frequency-set - A small tool which allows to modify cpufreq settings.
SYNTAX
cpupower [ -c cpu ] frequency-set [options]
DESCRIPTION
cpupower frequency-set allows you to modify cpufreq settings without having to type e.g. "/sys/devices/system/cpu/cpu0/cpufreq/scaling_set_speed" all the time.
OPTIONS
-d --min <FREQ> new minimum CPU frequency the governor may select.
-u --max <FREQ> new maximum CPU frequency the governor may select.
-g --governor <GOV> new cpufreq governor.
-f --freq <FREQ> specific frequency to be set. Requires userspace governor to be available and loaded.
-r --related modify all hardware-related CPUs at the same time