Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The search services don't seem able to connect multi-boot or multiboot with fstrim in any single thread. Has anyone here considered whether discard or timer makes more sense with a bunch of OSes on single SSD systems that get booted to random OSes for random lengths of time? If timer, what period(s) make sense? Discard seems to make more sense to me, but I only just today gave it any thought, while I've been using SSDs for about a year. It took me over 6 months to even face the issue of trimming. Everything I have now is using the defaults, whatever they may be on a mix of Debians and derivatives, Mageia and Fedora, but mostly openSUSE. Most of what I have are upgrades, few fresh installs since migrating off rotating rust, so no instances of fstabs with discard in the options column. Most root filesystems here are on EXT4, none on BTRFS. MBRs here are a mix of legacy and GPT.
Mount options only take effect in and during the running of the OS in which they are defined. Multiboot does not make them either more or less valid. Perhaps your purpose would be better served if you refine your question. I am not sure that I understand your objective.
I thought the objective was clear enough: to acquire any available information helpful in choosing among among discard options for numerous filesystems per SSD, all of which get wildly irregular use:
manual discard
automatic discard via fstab
automatic discard via systemd, and if so, what timer setting to use
How the SSD handles sector allocation under the covers, or whether it matters WRT discard methods, so far has been unclear to me.
Fair enough, but my point was that the answers do not depend upon having a single OS, or a multiboot setup.
This is only my opinion based upon my experiences, so YMMV.
I find continuous trim (fstab) a bit of a performance hit. Since a big part of the reason for using it in the first place involves performance that would seem to make that particular automation less than optimal.
A scheduled process seems more optimal for this. A completely manual process may work for you, but only if you are somewhat religious in your routine (as I am). For a laptop or desktop workstation that boots at least weekly and automated on-boot process (systemd can be set that way) seems perfect.
You should consider your work profile in making this decision. How many blocks you write to disk in a day MIGHT make a big difference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.