From: Artem Bityutskiy <dedekind1@gmail.com>
To: Brijesh Singh <brijesh.s.singh@gmail.com>
Cc: rohitvdongre@gmail.com, linux-mtd@lists.infradead.org
Subject: Re: UBIL design doc
Date: Mon, 10 May 2010 10:15:36 +0300 [thread overview]
Message-ID: <1273475736.2209.88.camel@localhost> (raw)
In-Reply-To: <m2l6b5362aa1005081239ne9eea253jc66c61822c4c1502@mail.gmail.com>
On Sun, 2010-05-09 at 01:09 +0530, Brijesh Singh wrote:
> Hi,
> I am forwarding you the design document for ubi with log. Please
> find the ubil document at
> http://git.infradead.org/users/brijesh/ubil_results/blob_plain/HEAD:/UBIL
> design document.pdf
Hi guys,
I've read the document. Looks very promising. Here some feed-back.
1. SB PEB wear-out. What if the reaseblock lifetime is, say, 10000
erease cycles? Won't the SB PEB wear out very quickly? Why you did not
go for the chaining approach which I described in the old JFFS3 design
doc?
If we do not implement chaining, we should at least design it and make
sure UBIL can be extended later so that SB chaining could be added.
2. SB PEB at the end. I think this is a very bad idea. Imagine you have
to do UBIL images for production on the factory. With your design you
have the following bad drawbacks:
a. NAND flash has initial bad blocks, and you do not know how many,
and where they sit. These may be the last 8 eraseblocks. So, when
you prepare an image (say, with the ubinize user-space tool), where
will you put the second SB PEB?
b. Currently, UBI/UBIFS images are small. E.g., if you make an
UBI/UBIFS image for 1GiB flash, and you have just few KiB of files,
your image will be few megs - it will contain the files, and all
the needed UBI/UBIFS meta-data.
So now what will be image size for UBIL - 1GiB, and this is bad.
You then will transfer 1GiB of data to the devices during flashing
or you will have to invent ways to work around this. Do you need
these complexities?
I think the second SB PEB should not be at the end.
3. Backward-compatibility. In UBIL you removed EC anc VID headers in
PEBs. That's fine for optimization purposes. But it has draw-backs:
a. If any of the UBIL meta-data blocks like SB, CMT or log are
corrupted - that's it - we are screwed. You cannot anymore
re-consturct the data by scanning. The robustness goes down.
c. Backward compatibility - UBI will not be able to attach UBIL
images. This is not very nice.
So, I think you should keep EC and VID headers in PEBs. And you should
make the SB/CMT/log blocks to be a new type of UBI volume with
UBI_COMPAT_DELETE or UBI_COMPAT_PRESERVE or UBI_COMPAT_RO type. In this
case UBI will attach UBIL volumes just fine.
Then, you can add an _option_ to have no EC/VID headers in PEBs. This
then can be used for performance, if one wants to sacrifice robustness.
But this should be the second step. In this case, you will just need to
put a VID header with UBI_COMPAT_REJECT flag to the first PEB.
I have some more notes, but these 3 are enough for now.
What do you think?
In any case, whatever you will try to change in UBIL, remember to make
it stable as it is now first, then do all changes so that you do not
break it.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2010-05-10 7:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-08 19:39 UBIL design doc Brijesh Singh
2010-05-10 7:15 ` Artem Bityutskiy [this message]
2010-05-10 10:31 ` Brijesh Singh
2010-05-11 19:17 ` Thomas Gleixner
2010-05-12 7:03 ` Brijesh Singh
2010-05-12 7:14 ` Brijesh Singh
2010-05-12 9:02 ` Thomas Gleixner
2010-05-12 9:46 ` Brijesh Singh
2010-05-12 7:41 ` Artem Bityutskiy
2010-05-12 8:03 ` Brijesh Singh
2010-05-12 8:35 ` Artem Bityutskiy
2010-05-12 9:49 ` Brijesh Singh
2010-05-12 10:01 ` Artem Bityutskiy
2010-05-12 10:25 ` Brijesh Singh
2010-05-12 10:58 ` Thomas Gleixner
2010-05-13 7:10 ` Brijesh Singh
2010-05-12 9:06 ` Thomas Gleixner
2010-05-12 9:31 ` Artem Bityutskiy
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=1273475736.2209.88.camel@localhost \
--to=dedekind1@gmail.com \
--cc=brijesh.s.singh@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=rohitvdongre@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;
as well as URLs for NNTP newsgroup(s).