There are two very different types of TRIM command
There are two very different types of TRIM command
Posted May 7, 2019 21:19 UTC (Tue) by masoncl (subscriber, #47138)In reply to: There are two very different types of TRIM command by walex
Parent article: Issues around discard
I was talking about async discards in a slightly different context. Btrfs and ext4 will block transaction commit until we've finished trimming the things we deleted during the transaction. XFS will allow the commit to finish and let the trims continue floating down in the background, while making sure not to reuse the blocks until the trim is done.
Depending on the device, the async approach can be much faster, but it can also lead to a very large queue of discards, without any way for the application to wait for completion.