[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to enable trim for an external encrypted SSD?



On Tue, 07 Nov 2017, Alexander V. Makartsev wrote:
> TRIM will erase blocks marked as deleted beforehand even if they are not

Not on any SSD that is not an utter piece of trash.

TRIM marks pages as unused for the garbage collector, and that's it.  On
SSDs that return all-zeroes for TRIMMed sectors, it likely also flushes
the unused-blocks journal to FLASH for security reasons.

It saves on FLASH wear because the SSD will *not* copy unused data
elsewhere in order to free up an entire erase block.

The garbage collector only runs in the background, unless the SSD is out
of free pages (which should *never* happen on any non-joke SSD, due to
enforced overprovisioned space).

-- 
  Henrique Holschuh


Reply to: