Difference between revisions of "CPU: Reset Speed"

From OnnoWiki
Jump to navigation Jump to search
 
(4 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==
  
Line 9: Line 16:
 
To change the maximum frequency lower (you can't change it higher) use this command to change it from 2200 Mhz to 1700 Mhz:
 
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
+
  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
  
==Menggunakan cpupower==
 
  
 +
==Penggunaan==
 +
 +
# info
 +
cpupower frequency-info
 +
 +
# set max
 +
cpupower frequency-set -u 800M -r
  
Provided by: linux-tools-common_3.13.0-24.46_all bug
 
  
 
NAME
 
NAME
Line 47: Line 64:
 
  -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]]

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

Pranala Menarik