public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Navaneethan P <pnavanee@gmail.com>
Cc: Stefan.Bigler@keymile.com, navaneethan.p@aricent.com,
	linux-mtd@lists.infradead.org,
	Sundararajan.Somasundaram@aricent.com,
	"shenbaga.nathan" <shenbaga.nathan@aricent.com>
Subject: Re: UBI - EBA table (Erase block association table) - wear leveling
Date: Thu, 31 Mar 2011 15:19:50 +0300	[thread overview]
Message-ID: <1301573990.2828.59.camel@localhost> (raw)
In-Reply-To: <AANLkTi=hrqqOZEu8DF8jm9q0E44fRG5_y9j-sdnBorgP@mail.gmail.com>

Hello,

On Fri, 2011-03-18 at 19:49 +0530, Navaneethan P wrote:
>  Hi Linux-Mtd users,
> 
> We are using UBI over NAND Flash. I have the following dubts.
> 
> 1) UBI stores the volume id table & EBA table in some PEB of the NAND Flash.

No, only the volume table is stored on-flash. The EBA table is built
when the flash is scanned.

> My assumption is that volume id table will always be stored in LEB
> 'X'. and UBI will go & read the information during initialization.
> Is my undersatnding correct?

Not sure, probably. On initialization UBI scans whole flash and finds
the volume table
> 
> 2) One of the assumption is that EBA table is always stored in an PEB.
> Is my assumption correct?

No, EBA table is built while scanning in RAM. This is why UBI is not
very scalable. UBI2 would need to solve it, but no one developed UBI2
yet.

> 3) I read from the wear leveling subsystem (wl.c), the maximum
> difference between the erase counters of erase blocks will be
> CONFIG_MTD_UBI_WL_THRESHOLD (defined as 4096).

OK.

> If the difference exceeds then it will move the data from high EC
> block to low EC block.

Yes.

> Let me take the case of PEB 'A' stores the EBA table.

There is no such PEB.

>  Because of the
> writting to the flash, EC of PEB 'A' reaches to 4096. As per the
> documentation, it has to be wear leveled to lower EC block. Let me
> assume that this PEB is 'B'. My doubt is "In the next initialization,
> how does the UBI understands that EBA is stored in PEB 'B' instead of
> PEB 'A'?"

UBI always scans. That is design decision. It has advantages
(robustness, simplicity) and drawbacks (linear scalability).

Here you can find various docs, BTW:
http://www.linux-mtd.infradead.org/doc/ubi.html#L_ubidoc

HTH.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

      reply	other threads:[~2011-03-31 12:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 14:19 UBI - EBA table (Erase block association table) - wear leveling Navaneethan P
2011-03-31 12:19 ` 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=1301573990.2828.59.camel@localhost \
    --to=dedekind1@gmail.com \
    --cc=Stefan.Bigler@keymile.com \
    --cc=Sundararajan.Somasundaram@aricent.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=navaneethan.p@aricent.com \
    --cc=pnavanee@gmail.com \
    --cc=shenbaga.nathan@aricent.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