Pustaka Taratsa

Baca teks (EPUB): Linux: cpu frequency

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. Linux: cpu frequency
  2. Cek
  3. Cara Lain
  4. Cara Lain
  5. Cara Lain
  6. Cara Lain
  7. Pranala Menarik

Linux: cpu frequency

Sumber: https://onnocenter.or.id/wiki/index.php/Linux:_cpu_frequency

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.

Pranala Menarik