For those of you who want a hint at the secret sauce
Everybody knows to add discard to /etc/fstab
noatime, nodiratime, are optional discard is the TRIM bit..
example
The exception for encrypted harddrives is an edit of /etc/crypttab/dev/mapper/volumegroup-root / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1
you have to add discard to the crypttab too
example
Lastly, rebuild initramfssda5_crypt UUID=e364d03f-[...]6cd7e none luks,discard
Please note this is the short version and the referenced URL does give a more complete answersudo update-initramfs -c -k all
Bookmarks