How To Set CPU Scaling Governor to Max Performance (scaling_governor)
Проверить
# echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
powersave
powersave
powersave
powersave
# cat /proc/cpuinfo | grep MHz
cpu MHz : 799.804
cpu MHz : 799.804
cpu MHz : 800.024
cpu MHz : 800.024
cpu MHz : 799.804
cpu MHz : 800.024
cpu MHz : 800.024
cpu MHz : 800.024
# 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
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance
performance
performance
performance
performance
# cat /proc/cpuinfo | grep MHz
cpu MHz : 4140.747
cpu MHz : 4200.073
cpu MHz : 4171.948
cpu MHz : 4178.540
cpu MHz : 4172.827
cpu MHz : 4188.427
cpu MHz : 4146.020
cpu MHz : 4192.602
$ nano performance.sh
Вставить текст:
#!/bin/bash
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
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
cat /proc/cpuinfo | grep MHz
Сохранить.
$ sudo sh performance.sh
Проверить
# echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
powersave
powersave
powersave
powersave
# cat /proc/cpuinfo | grep MHz
cpu MHz : 799.804
cpu MHz : 799.804
cpu MHz : 800.024
cpu MHz : 800.024
cpu MHz : 799.804
cpu MHz : 800.024
cpu MHz : 800.024
cpu MHz : 800.024
# 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
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance
performance
performance
performance
performance
# cat /proc/cpuinfo | grep MHz
cpu MHz : 4140.747
cpu MHz : 4200.073
cpu MHz : 4171.948
cpu MHz : 4178.540
cpu MHz : 4172.827
cpu MHz : 4188.427
cpu MHz : 4146.020
cpu MHz : 4192.602
$ nano performance.sh
Вставить текст:
#!/bin/bash
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
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
cat /proc/cpuinfo | grep MHz
Сохранить.
$ sudo sh performance.sh
Комментариев нет:
Отправить комментарий