Difference between revisions of "CPU: Reset Speed"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Onnowpurbo (talk | contribs)  (Created page with "==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/s...")  | 
				Onnowpurbo (talk | contribs)   | 
				||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | * disable the current driver: add intel_pstate=disable to your kernel boot line  | ||
| + | * boot, then load the userspace module: modprobe cpufreq_userspace  | ||
| + | * set the governor: cpupower frequency-set --governor userspace  | ||
| + | * set the frequency: cpupower --cpu all frequency-set --freq 800MHz  | ||
| + | |||
| + | |||
| + | |||
==Cek Speed==  | ==Cek Speed==  | ||
  sudo -i  |   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  |   # 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 800000 | 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 800M -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  | ||
| + | |||
| + | ==Pranala Menarik==  | ||
| + | |||
| + | * [[CPU]]  | ||
Latest revision as of 09:06, 9 December 2021
- disable the current driver: add intel_pstate=disable to your kernel boot line
 - boot, then load the userspace module: modprobe cpufreq_userspace
 - set the governor: cpupower frequency-set --governor userspace
 - set the frequency: cpupower --cpu all frequency-set --freq 800MHz
 
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 800000 | 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 800M -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