swap file over jffs2 partition

Dimitrios Apostolou
2008-02-29T02:50:32Z

Hello list,

I intend to build a diskless linux system (root over NFS). Because it
has 1GB of embedded flash storage, I'm thinking of using this as swap
(I've been bitten many times by the problems linux has with *no*
swap...). And to avoid wearing out the flash storage too fast, I 'm
thinking to format the 1GB partition as JFFS2, and create the swapfile
on top of it.

I'm not so experienced with JFFS and I don't know if it's too heavy for
the CPU, for swapping. Or if there are other issues I 'll face. What do
you think about it? Any other ways you 'd propose?

Sorry for sending this at LKML but jffs-dev mailing list seems to be
off. And JFFS is the only in-kernel filesystem that does wear-leveling,
right?

Thanks in advance,
Dimitris

P.S. Please CC replies to me, as I'm not subscribed to the list.