Block layer discard requests
Block layer discard requests
Posted Aug 14, 2008 11:43 UTC (Thu) by seanyoung (subscriber, #28711)Parent article: Block layer discard requests
A couple of years ago I did something similar (but not as complete). http://lwn.net/Articles/162776/ I found that having forget/discard as barrier requests can be very bad for performance. At any point when a forget/discard is issued, all data is written to flash which would not have been necessary without the barrier; the dirty blocks could have remained in memory. All of this can be solved through proper merging though. The rules would become fairly difficult, I think. The other issue was that only the in-tree FTL layers could make use of them. CompactFlash ATA does have an "erase sectors" option but this is not really what you want (pre-erase sectors such that the next write will succeed without waiting for a flash erase).
