Difference between revisions of "SrsRAN: Set CPU Governor to Performance"
Jump to navigation
Jump to search
(Created page with "# echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor # echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor # echo performance > /sys...") |
|||
Line 1: | Line 1: | ||
− | + | 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 | ||
+ | |||
+ | ... | ||
+ | |||
+ | 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 | ||
+ | |||
+ | ... | ||
+ | |||
+ | 3. To verify configuration, run: | ||
+ | |||
+ | cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | ||
+ | |||
+ | performance | ||
+ | performance | ||
+ | performance | ||
+ | performance |
Revision as of 09:54, 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
...
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
...
3. To verify configuration, run:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance performance performance performance