This feature suggestion was filed in December 2019 at TJC, and was discussed among community members in January 2020, basically reaching consensus that this makes sense to be deployed (for details see the original thread at TJC): Please install and use systemd’s fstrim.timer
Because Together.Jolla.com has been put into read-only state more than a year after this initial conversation about this feature suggestion, and the promised transfer of content from TJC to this forum never materialised, this feature suggestion has to be re-filed here to be able to track and discuss it any further.
I still would appreciate any feedback by sailors on the content of this feature suggestion.
I also do not have the impression that this topic was ever considered at Jolla, at least I have not found anything mentioned anywhere in this regard at TJC or FSO besides my post.
P.S.: Cut & Paste of the core content of this feature suggestion.
asked Dec 21 2019
10393 ●104 ●201 ●158
please install and use systemd’s fstrim.timer to regularly (e.g. weekly) trigger a “block discard” (“trim”) on FLASH media which supports it.
In the past (long ago) SailfishOS mounted (only) vFAT filesystems with the “direct discard” option, but now it never executes a discard / trim for all filesystems AFAICS.
fstrim -a manually is working fine on SailfishOS since at least v2.2.0, even on encrypted partitions (their “trim” capability can be easily checked manually per
lsblk -D ); tested on Jolla 1 and Xperia X.
- Trigger of this feature request is “[Phoronix] Fedora Looking At Finally Enabling FSTRIM By Default In Fedora 32”.
- A comprehensive documentation of the rationale, technical background, impact, benefits etc. is provided at the “[Fedora Wiki] Changes/EnableFSTrimTimer”.
- A detailed discussion and analysis of this topic by a third party (lwn.net) is provided in this article.
HTH & happy sailing!
P.S.: … and the outcome for Fedora is “[Phoronix] Fedora 32 Greenlit For Enabling FSTRIM Support By Default”, which is what most other Linux distributions already implement.