[dm-devel] Integrity discard/trim extremely slow on NVMe SSD storage (~10GiB/minute)

Melvin Vermeeren vermeeren at vermwa.re
Fri Apr 30 19:26:23 UTC 2021


Hi Mikulas,

On Monday, 26 April 2021 18:02:12 CEST Mikulas Patocka wrote:
> Try this patch - it will avoid writing discard filler to metadata if it is
> already there. It won't help on the first discard, but it may help when
> discarding already discarded blocks.

I applied the patch and verified the patched kernel module is being used. 
Unfortunately there is no real difference while discarding. Presumably the 
drive is choking on the read requests alone? (As mentioned in other mail I 
contacted Seagate about this, it should be fixed in drive firmware.)

Still, the patch itself seems good and does avoid unnecessary writes, so it 
seems like a good thing to be merged in my opinion.

Thanks,

-- 
Melvin Vermeeren
Systems engineer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20210430/f0f55835/attachment.sig>


More information about the dm-devel mailing list