How to TRIM a SSD on a ATA channel without AHCI?

I would like to TRIM two SSDs once that are connected on a normal ATA channel without AHCI support.
Any suggestions? Or is it impossible?
 
The SSDs are used as ZFS cache usally.

So, in order to trim them i would need to
  1. create a UFS on them with the trim enabled
  2. fill the SSDs with data
  3. delete all data

correct?

Well, i figured out that the SSDs need a new firmware to support TRIM, so i need to remove them from the FreeBSD machine anyway in order to flash them with the windows tools. I will "secure erase" them on this occasion with the Intel tools.
 
You don't need to TRIM an SSD used as an L2ARC device. Writes are throttled to 8 MBps. Even a clean, brand-new, just-opened SSD will not write data any faster than that when used as an L2ARC device.
 
User23 said:
I would like to TRIM two SSDs once that are connected on a normal ATA channel without AHCI support.
Any suggestions? Or is it impossible?

TRIM is not an NCQ command, so you don't need AHCI. Any ATA/SATA controller can do it.
 
User23 said:
The SSDs are used as ZFS cache usally.

So, in order to trim them i would need to
  1. create a UFS on them with the trim enabled
  2. fill the SSDs with data
  3. delete all data

correct?

newfs has -E option to TRIM the media before creating FS, so you don't need last two steps.
 
Back
Top