-
-
Save j-alberto/23896fa9b6ca85f806ff81f6e0fca7fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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