sudo systemctl mask systemd-power-profiles-daemon.service
sudo apt install tuned
sudo tuned-adm profile latency-performance

#dans grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=0 intel_pstate=enable intel_idle.max_cstate=0 processor.max_cstate=1"

sudo systemctl disable ModemManager
sudo systemctl disable bluetooth

sudo apt autoremove --purge
sudo apt clean
sudo journalctl --vacuum-time=7d

grep Hugepagesize /proc/meminfo
echo 'echo always > /sys/kernel/mm/transparent_hugepage/enabled' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
