query on UBIFS
Artem Bityutskiy
dedekind at infradead.org
Wed Feb 25 04:30:28 EST 2009
On Tue, 2009-02-24 at 22:40 +0530, Chakradhar thota wrote:
> Hi ,
>
> I am in the process of using UBIfs on my embedded device.
> but i came across that JFFS2 cannot be used as swap partition.
> what about UBIfs? will UBIfs support swap paritition?
> what are the various issues to be taken care if it supports?
> thanks in advance.
Hi, we never kept this use-case in mind.
I do not think it is a brilliant idea to use UBIFS for swap.
First of all - why not UBI? It would be smarter to create a
simple FTL on top of UBI and put swap there.
But you would anyway have to take a look into UBI/mtd and make
sure they do not allocate RAM on their paths. Or if they do,
they should have some RAM reserve to use if the I/O is swapping.
Indeed, if we are swapping because of memory-shortage condition,
we should not allocate RAM.
Off the top of my head, UBI does allocate RAM when doing I/O.
But this can be fixed.
To put it simpler, if you want swapping on NAND, you should invest
time and make SW engineers look at this. You cannot just take
what we have now and start swapping.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list