On Sun, Feb 17, 2019 at 06:42:59PM -0500, Ric Wheeler wrote: > I think the variability makes life really miserable for layers above it. > > Might be worth constructing some tooling that we can use to validate or > shame vendors over - testing things like a full device discard, discard of > fs block size and big chunks, discard against already discarded, etc. With respect to fs block sizes, one thing making discards suck is that many high capacity SSDs' physical page sizes are larger than the fs block size, and a sub-page discard is worse than doing nothing. We've discussed previously about supporting block size larger than the system's page size, but it doesn't look like that's gone anywhere. Maybe it's worth revisiting since it's really inefficient if you write or discard at the smaller granularity.