Skip to content

Instantly share code, notes, and snippets.

@j-alberto
Last active January 13, 2020 02:30
Show Gist options
  • Save j-alberto/23896fa9b6ca85f806ff81f6e0fca7fd to your computer and use it in GitHub Desktop.
Save j-alberto/23896fa9b6ca85f806ff81f6e0fca7fd to your computer and use it in GitHub Desktop.
# see fstrim status
systemctl status fstrim.timer
# temporal files to ram in /etc/fstab
tmpfs /tmp tmpfs noatime,nodiratime,nodev,nosuid,mode=1777,size=1G,defaults 0 0
tmpfs /var/tmp tmpfs noatime,nodiratime,nodev,nosuid,mode=1777,size=1G,defaults 0 0
# add noatime to ssd root partition in /etc/fstab
/dev/mapper/kubuntu--vg-root / ext4 noatime,errors=remount-ro 0 1
# limit swap usage in /etc/sysctl.conf
vm.swappiness=1
vm.vfs_cache_pressure=50
vm.dirty_writeback_centisecs=1500
# change IO scheduler in /etc/default/grub (really worth??)
GRUB_CMDLINE_LINUX="elevator=none"
# grub config in /etc/default/grub
GRUB_DEFAULT=2
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
GRUB_RECORDFAIL_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_THEME=/opt/grub-themes/dark_squares/theme.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment