[linux-mm-cc] [OFFTOPIC] SD wear-levelling
Stefan Monnier
monnier at iro.umontreal.ca
Thu Sep 2 04:23:11 EDT 2010
> SD cards support a bulk data transfer or "multiple block write"
> operation. In this case, it is up to the OS file system driver,
> device driver and/or SD host controller to buffer contiguous writes,
> and then stream the buffer to the SD card with a multiple block write
> operation. For the most efficient writes, you would want your
> multiple block writes to be aligned with and the size of the erase
> block in the underlying NAND -- something that the application
> committing data would need to be aware of.
Ah, now that makes sense.
So yes, it would be good to be able to tweak Linux's swap handling so it
tries to write in chunks that are erase-block sized and aligned, as far
as possible. Tho maybe trying to just maximize the chunk size (without
paying particular attention to a particular size or alignment) would be
good enough.
Stefan
More information about the linux-mm-cc
mailing list