1. Home
  2. Docs
  3. Hardware and Network
  4. Solid State Disk TRIM

Solid State Disk TRIM

Some thoughts on TRIM

by </ joekamprad>

As I can see mostly Distributions using uses continuous TRIM by default, detecting if SSD is present and putting discard option to fstab.

Reading here: https://wiki.archlinux.org/index.php/Solid_State_Drives#TRIM

Continuous TRIM
Warning: Unfortunately, there are wide quality gaps of SSD’s bios’ to perform continuous TRIM, which is also why using the discard mount flag is not recommended generally by ext filesystem developer Theodore Ts’o.

If in doubt about your hardware, apply Periodic TRIM instead.
Note: Before SATA 3.1 all TRIM commands were synchronous, so continuous trimming would produce frequent system freezes. In this case, applying Periodic TRIM less often is a better alternative.

The similar issue holds also for a number of devices, for which queued TRIM command execution was blacklisted due to serious data corruption. See Wikipedia: Trim (computing) Shortcomings for details.

So may on most SSD Devices it would be better to use Periodic TRIM ???

Theodore Ts’o says: …For these two reasons, on Linux, the recommended way to use TRIM is to use the fstrim command run out of cron, so that during an idle period the TRIM commands can be issued for all of the unused areas on the disk.

So in my opinion, it is the best to check first if your SSD device is supporting TRIM at all, second check the net if there are issues with it on your specific drive, and then decide what to enable.

I would say if your SSD is supporting TRIM and have no issues safest is to use periodic TRIM.






Was this article helpful to you? Yes 1 No

How can we help?