I was a bit surprised because our handbook was recommending to use "discard" mount option for SSDs: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System But in many other places I saw recommendations pointing to periodical trim (usually by the .timer/.service files in the case of systemd provided by util-linux). For example: https://en.opensuse.org/SDB:SSD_discard_(trim)_support but there are many other sources recommending to run it with a cron instead of relying on discard. Could this be clarified a bit (well, this is my first SSD setup I own and, then, I am a newbie on this, then, apart of this and some people recommending "deadline" over "cfq" scheduler, I haven't seen many other important changes that the Handbook could get for better SSD support) Thanks
Even man fstrim recommends to run it once a week: Running fstrim frequently, or even using mount -o discard, might negatively affect the lifetime of poor-quality SSD devices. For most desktop and server systems a sufficient trimming frequency is once a week. Note that not all devices support a queued trim, so each trim command incurs a performance penalty on whatever else might be trying to use the disk at the time. In systemd setups it should be done with fstrim.timer... on non-systemd setups I guess that probably with a cron entry :/
Any news? Thanks
I wouldn't find a bugzilla account for handbook project :/
I think we generally recommend using the Talk pages on the wiki, but yeah, it's a bit weird when we want formal discussion of an approach..
I think this is taken care of and can be marked as "resolved". See "discard" mount option" at https://wiki.gentoo.org/wiki/Handbook_Talk:Parts/Installation/System
https://wiki.gentoo.org/wiki/SSD#Periodic_fstrim_jobs