Re: Discard support (was Re: [PATCH] swap: send callback when swap slot is freed)

Alan Cox
2009-08-16T19:28:48Z

> trim is mostly for ssd's though, and those tend to not have the "goes
> for a hike" behavior as much......

Bench one.

> I wonder if it's worse to batch stuff up, because then the trim itself
> gets bigger and might take longer.....

They seem to implement a sort of async single threaded trim, which can
only have one outstanding trim at a time.