/notebook/ubuntu-setup/98-performance

Performance Tips


  • disable swap
  • enable trim
sudo apt install -y util-linux
systemctl status fstrim

change "swap size": See here

change "swappiness": See here

apt clean - add to cron

adjust io scheduler: have to do in grub, how to incorporate with LUKS?

adjust logging sudo nano /etc/rsyslog.conf

overclock? cpupower

minimize access time updates: https://www.baeldung.com/linux/solid-state-drive-optimization#minimize-access-time-updates how to do it on LUKS device?

noatime,nodiratime
sudo apt install -y smartmontools
sudo smartctl -a /dev/nvme0
sudo smartctl -a /dev/nvme0n1

store system cache in ram: https://www.howtogeek.com/62761/how-to-tweak-your-ssd-in-ubuntu-for-better-performance/

add to fstab

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

External Resources

About

I am an engineer and educator, having spent ten years as a professor. My goal is to help you build your knowledge of design and technology, get your hardware working, and propel your startup or small business. Get in touch!