All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helmut Raiger <helmut.raiger@hale.at>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: UBIFS: How to reserve space to be used right before power cut
Date: Mon, 17 Jun 2013 11:02:54 +0200	[thread overview]
Message-ID: <51BED0BE.2090701@hale.at> (raw)
In-Reply-To: <20130613162028.3d17bac2@parrot.com>

On 06/13/2013 04:20 PM, Matthieu CASTET wrote:
> Not gluebi
>
> you have a userspace inferface to ubi : /usr/include/mtd/ubi-user.h
>
>
> You could create a small ubi volume (dynamic or static) of 1 LEB next to
> ubifs (on the same ubi device).
> When you start you make sure the LEB have enough space and that the LEB
> is mapped.
>
> on a power fail signal you write the LEB with your data. Because the
> LEB is already mapped, the write should be imediate.
>
>
> If the ubi volume is on the same ubi device than ubifs, the wear
> leveling will be shared with ubifs.
>

I digged the UBI sources and still have the feeling this won't work:

1) There seems to be no way to (long term) protect a PEB from being
moved by the wear leveling sub-system (even scrubbing on bit-flips,
which may be induced by read-disturbances (reads on nearby pages)).

2) Temporary protection of a PEB is not really time specific, but depends
on global PEB erase action (i.e. anything UBIFS does on the same device),
which is something I can't control.

My impression is, that UBI simply does not support this sort of
application well. Unmoveable blocks will have a low erase count
(below average), which is exactly what the WL should avoid.

However I've never timed such a move operation:
a) move content to a new unused PEB
b) schedule original PEB for erasure
It might fit into my timing requirements, but will probably be heavily
influenced by system load and priorities.

Helmut

--
Scanned by MailScanner.

  reply	other threads:[~2013-06-17  9:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13 11:42 UBIFS: How to reserve space to be used right before power cut Helmut Raiger
2013-06-13 11:50 ` Matthieu CASTET
2013-06-13 13:29   ` Raiger Helmut
2013-06-13 14:20     ` Matthieu CASTET
2013-06-17  9:02       ` Helmut Raiger [this message]
2013-06-26  8:03         ` Helmut Raiger

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=51BED0BE.2090701@hale.at \
    --to=helmut.raiger@hale.at \
    --cc=linux-mtd@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.