Optimize SSD Performance

Source: https://wiki.archlinux.org/index.php/Solid_State_Drives

Enable TRIM

Warning: the following tip only works for Linux kernel version 2.6.33 or above, and not all filesystems are supported (as of version 3.7, ext4, btrfs, JFS and XFS support it).

Add the discard option in /etc/fstab.


/dev/sda1  /       ext4   defaults,noatime,discard   0  1
/dev/sda2  /home   ext4   defaults,noatime,discard   0  2