LWN.net Logo

TRIM?

TRIM?

Posted Dec 12, 2012 21:05 UTC (Wed) by arnd (subscriber, #8866)
In reply to: TRIM? by sperl
Parent article: JFFS2, UBIFS, and the growth of flash storage

I think the cards can either return all-zero or all-one but have to report in the configuration registers which of the two they do. Of course, you could
in theory reverse all bits in software to get the behavior you want, but that has a nonzero performance impact.

Note that sending the erase command to the SD card can also help performance as it might avoid expensive garbage collection, aside from being faster than writes.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds