Difference between revisions of "CPU: Reset Speed"

From OnnoWiki
Jump to navigation Jump to search
Line 13: Line 13:
  
 
==Menggunakan cpupower==
 
==Menggunakan cpupower==
 +
 +
apt install linux-tools-common
 +
apt install linux-tools-4.15.0-20-generic linux-cloud-tools-4.15.0-20-generic
  
  
Line 47: Line 50:
 
  -r --related
 
  -r --related
 
       modify all hardware-related CPUs at the same time
 
       modify all hardware-related CPUs at the same time
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[CPU]]
 
* [[CPU]]

Revision as of 09:14, 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

apt install linux-tools-common
apt install linux-tools-4.15.0-20-generic linux-cloud-tools-4.15.0-20-generic


Provided by: linux-tools-common_3.13.0-24.46_all bug

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

Pranala Menarik