Swap on flash

Mitch Bradley wmb at laptop.org
Tue Jan 6 19:56:31 EST 2009


There is a "swaponflash" mtd driver.  See

http://lkml.indiana.edu/hypermail/linux/kernel/0703.0/index.html#0681

Trying to swap on top of JFFS2 is a bad fit.  Swapping has several 
characteristics that make the problem much easier that the general 
filesystem-on-NAND problem.  In particular:

a) The CPU page size is a multiple of the NAND page size.
b) There's no need for a persistent index across reboots

Such a driver accessing a dedicated NAND partition ought to work just fine.




More information about the Devel mailing list