freebsd-dev/sys/cam/ata
Alexander Motin 92d8dadcf8 MFC r201139:
Add BIO_DELETE support to ada(4):
- For SSDs use TRIM feature of DATA SET MANAGEMENT command, as defined by
ACS-2 specification working draft.
- For CompactFlash use CFA ERASE command, same as ad(4) does.

With this patch, `newfs -E /dev/ada1` was able to restore write speed of
my heavily weared OCZ Vertex SSD (firmware 1.4) up to the initial level
for the most part of it's capacity.

I have no idea whether it is normal, but for some reason it takes 200ms
to handle any TRIM command on this drive, that was making delete extremely
slow. But TRIM command is able to accept long list of LBAs and the length of
that list seems doesn't affect it's execution time. Implemented request
clusting algorithm allowed me to rise delete rate up to reasonable numbers,
when many parallel DELETE requests running.
2010-01-19 12:58:29 +00:00
..
ata_all.c MFC r201139: 2010-01-19 12:58:29 +00:00
ata_all.h MFC r200008: 2009-12-05 08:44:55 +00:00
ata_da.c MFC r201139: 2010-01-19 12:58:29 +00:00
ata_pmp.c MFC r200218: 2009-12-22 19:56:35 +00:00
ata_xpt.c MFC r200218: 2009-12-22 19:56:35 +00:00