Установить планировщик performance в Ubuntu

sudo apt install cpufrequtils
sudo nano /usr/bin/set-cpufreq.sh
#!/bin/bash  
for cpu in /sys/devices/system/cpu/cpu[0-9]*; do  
cpufreq-set -c "${cpu##*/cpu}" -g performance  
done  
sudo chmod +x /usr/bin/set-cpufreq.sh
sudo nano /etc/systemd/system/set-cpufreq.service
[Unit]
Description=Set CPU governor to performance
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/usr/bin/set-cpufreq.sh
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable set-cpufreq.service

Проверить:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
watch -n 0.5 "grep 'cpu MHz' /proc/cpuinfo"
Источник: https://www.reddit.com/r/IntelligentGaming2020/comments/1dqj5o4/how_to_improve_performance_of_ubuntu_2404_lts_in/ 

Комментариев нет

Отправить комментарий