sudo apt install cpufrequtils
sudo nano /usr/bin/set-cpufreq.sh
#!/bin/bashfor cpu in /sys/devices/system/cpu/cpu[0-9]*; docpufreq-set -c "${cpu##*/cpu}" -g performancedone
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Источник: https://www.reddit.com/r/IntelligentGaming2020/comments/1dqj5o4/how_to_improve_performance_of_ubuntu_2404_lts_in/
watch -n 0.5 "grep 'cpu MHz' /proc/cpuinfo"
Комментариев нет
Отправить комментарий