Re: discard synchronous on most SSDs?

Holger Hoffstätte
2014-03-14T20:46:35Z

On Fri, 14 Mar 2014 15:57:41 -0400, Martin K. Petersen wrote:

> So right now I'm afraid we don't have a good way for a user to determine
> whether a device supports queued trims or not.

Mount with discard, unpack kernel tree, sync, rm -rf tree.
If it takes several seconds, you have sync discard, no?

This changed somewhere around kernel 3.8.x; before that it used to be
acceptably fast. Since then I only do batch trims, daily (server) or
weekly (laptop).

-h