TRIM utility

Dimitry Andric dim at FreeBSD.org
Sat Nov 24 16:09:06 UTC 2018


On 24 Nov 2018, at 15:44, Wojciech Puchar <wojtek at puchar.net> wrote:
> 
>> Yes. It would. That's hard with the current storage stack to do via the
>> disk interface. And often the underlying protocols do not support partial
>> ranges. There is no good way to do this with buf/bio interface we have. So
> 
> what is an actual difference between "secure erase" and trimming whole disk?

It depends a lot on the device.  Some devices encrypt all blocks
automatically, and a Secure Erase command might just throw away the key,
not go over all the data and actively wipe it.

Most SSDs will likely also trim all the blocks to be erased, since users
have come to expect the SSD performance to go back to the 'out of box'
level, after such an operation.

If you are lucky, the manufacturer's documentation will explain the
specifics, but don't count on it. :)

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20181124/4c5e0d8c/attachment.sig>


More information about the freebsd-hackers mailing list