From: Artem Bityutskiy <dedekind@infradead.org>
To: Chakradhar thota <thota.chakradhar@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: query on UBIFS
Date: Wed, 25 Feb 2009 11:30:28 +0200 [thread overview]
Message-ID: <1235554228.25808.24.camel@localhost.localdomain> (raw)
In-Reply-To: <8ccea6aa0902240910k6da07085u7e122cb010a99a02@mail.gmail.com>
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 (Битюцкий Артём)
prev parent reply other threads:[~2009-02-25 9:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 17:10 query on UBIFS Chakradhar thota
2009-02-25 9:11 ` Ricard Wanderlof
2009-02-25 9:30 ` Artem Bityutskiy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1235554228.25808.24.camel@localhost.localdomain \
--to=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=thota.chakradhar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox