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

From OnnoWiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
  powersave
 
  powersave
 
 
  powersave
 
  powersave
 
 
  powersave
 
  powersave
 
 
  powersave
 
  powersave
 
+
powersave
 +
powersave
 
  powersave
 
  powersave
  
Line 18: Line 16:
  
 
  echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
  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/cpu1/cpufreq/scaling_governor
 
 
  echo performance > /sys/devices/system/cpu/cpu2/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/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
 
...
 
...
  
Line 31: Line 29:
 
  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
 
  performance
 
  performance
 
  performance
 
  performance

Revision as of 09:56, 26 October 2022

1. To view the current scaling_governor value per CPU, run:

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

...

2. To set the scaling_governor to "performance" mode for each CPU, run:

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. To verify configuration, run:

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