Not logged in
Log in now
Create an account
Subscribe to LWN
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
Posted Dec 12, 2012 1:22 UTC (Wed) by neilbrown (subscriber, #359)
So it wouldn't really be useful to make mtd_erase() to TRIM. They do seem similar but they have quite different semantics.
Posted Dec 12, 2012 13:18 UTC (Wed) by sperl (subscriber, #5657)
At least it mention that the behavior may depend on the type of technology (NAND/NOR/...) that is used on the HW-level.
So the behavior of expected return may also be open to implementation for SSDs... (I have not read the spec there though)
Posted Dec 12, 2012 21:05 UTC (Wed) by arnd (subscriber, #8866)
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.
Posted Dec 12, 2012 13:32 UTC (Wed) by yann.morin.1998 (subscriber, #54333)
What about combining your catch-erased-sections-and-return-0xFF with TRIMing the underlying storage (if it supports TRIMing)?
Yann E. MORIN.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds