fstrim has been automatically since at least 14.10
Code:
claydoh@claydoh-ideapad:~$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Thu 2019-05-23 18:30:13 EDT; 1 weeks 3 days ago
Trigger: Mon 2019-06-10 00:00:00 EDT; 6 days left
Docs: man:fstrim
May 23 18:30:13 claydoh-ideapad systemd[1]: Started Discard unused blocks once a week.
look at the output of the mount command to see more details about the mount options used, as opposed to what the fstab says.
relatime is the default, and that function has been kept up with the times, so it is , as far as I can tell, the safe and correct one to use., though one can try noatime of they want to slightly reduce writes over relatime, but it some software needs the information left out if you use it over the default. Your choice there.
Again, distros (and the kernel itself) set these things up with sane defaults already.
Here is a more up to date info page about this:
https://wiki.debian.org/SSDOptimization
or the one from Arch's wiki. Both are good,. but if you dig a tiny bit, you will find all of these are being done already.
And there is this:
https://www.reddit.com/r/linuxquesti...ux_to_protect/
Ubuntu, and most distros have extremely sane defaults for SSDs, though of course anyone is free to change these to less sane ones

I recommend doing more research, as I am just just some dude writing stuff on the internet, after all. But do look at more MUCH more recent info than 2012 .
My personal opinion is that the gains made by trying out optimizations won't save enough life, and modern nvme drives specifically are overprovisioned to give better life as well as speed.
Leave a comment: