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

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
Install software cpufrequtils
+
1. untuk melihat nilai scaling_governor sebelumnya per CPU, jalankan perintah:
sudo apt-get install cpufrequtils -y
 
  
Edit cpufrequtils
+
  cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo nano /etc/default/cpufrequtils
 
 
 
Tambahkan pada nano, kemudian simpan
 
GOVERNOR="performance"
 
  
Restart cpufrequtils
+
powersave
  sudo update-rc.d ondemand disable
+
powersave
  sudo /etc/init.d/cpufrequtils restart
+
powersave
 +
powersave
 +
powersave
 +
  powersave
 +
  powersave
  
Cek apakah CPU Governor sudah mode Performance
+
...
cpufreq-info
 
  
Atau
+
2. 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 25: Line 23:
 
  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
 +
...
 +
 +
3. 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

Revision as of 08:34, 28 October 2022

1. 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

...

2. 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

...

3. Untuk verifikasi konfigurasi jalankan kembali:

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