Difference between revisions of "OpenAirInterface: Set CPU Governor to Performance"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " sudo apt-get install cpufrequtils -y sudo nano /etc/default/cpufrequtils GOVERNOR="performance" sudo update-rc.d ondemand disable sudo /etc/init.d/cpufrequtils restart...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
sudo apt-get install cpufrequtils -y
+
Untuk melihat nilai scaling_governor sebelumnya per CPU, jalankan perintah:
sudo nano  /etc/default/cpufrequtils
 
  
  GOVERNOR="performance"
+
  cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
 
+
  sudo update-rc.d ondemand disable
+
powersave
  sudo /etc/init.d/cpufrequtils restart
+
  powersave
 
+
powersave
  cpufreq-info
+
powersave
 +
powersave
 +
  powersave
 +
powersave
 +
  ...
  
Atau
+
Untuk set scaling_governor ke "performance" mode untuk setiap CPU, jalankan:
  
 
  echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
  echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Line 19: Line 22:
 
  echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
 
  echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
 
  echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
 
  echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
 +
...
 +
 +
Untuk verifikasi konfigurasi jalankan kembali:
  
 
  cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
 
  cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
 +
 +
performance
 +
performance
 +
performance
 +
performance
 +
performance
 +
performance
 +
performance

Latest revision as of 11:15, 21 December 2022

Untuk melihat nilai scaling_governor sebelumnya per CPU, jalankan perintah:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

powersave
powersave
powersave
powersave
powersave
powersave
powersave
...

Untuk set scaling_governor ke "performance" mode untuk setiap CPU, jalankan:

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
...

Untuk verifikasi konfigurasi jalankan kembali:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

performance
performance
performance
performance
performance
performance
performance