From: Artem Bityutskiy <dedekind1@gmail.com>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"Kent Li" <Kent.Li@radisys.com>,
"HOUR Fréderic" <frederic.hour@safran-engineering.com>,
"Gupta, Pekon" <pekon@ti.com>
Subject: Re: Corrupt empty space
Date: Fri, 21 Mar 2014 09:53:49 +0200 [thread overview]
Message-ID: <1395388429.5163.86.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1403210838360.26118@lnxricardw1.se.axis.com>
On Fri, 2014-03-21 at 08:43 +0100, Ricard Wanderlof wrote:
> On Fri, 21 Mar 2014, Artem Bityutskiy wrote:
>
> > On Fri, 2014-03-21 at 07:18 +0000, Gupta, Pekon wrote:
> >> It's still getting discussed in [a] and [b]. But there are multiple issues to it.
> >>
> >> (1) Many hardware controllers cannot parse ECC errors in blank-pages.
> >> So, checking number of 0-bits in a page is done in software by comparing
> >> each byte with 0xff.
> >
> > OK.
> >
> >> (2) Counting number of 0-bits in a page in software, brings down your read-performance.
> >
> > UBIFS _only_ needs this when doing recovery, which is _only_ done after
> > unclean reboots, and this kind of reads would be done _only_ for a
> > couple of max I/O units and _only_ if there is a corrupted node in the
> > journal.
> >
> > IOW, this would be done rarely, and for just few pages on mount.
>
> What about when attaching a UBI volume to a completely a erased partition?
> I would assume that with the EC and VID headers thus missing, that UBI
> would erase each block prior to writing the headers, and then knowing that
> they were erased not need to check for 0xff in the blocks?
Hmm, yeah, I missed this case, thanks.
> Admittedly this would only happen once in a products lifetime so even if
> UBI did need to scan each block, it won't have much of an impact on
> performance, except possibly that the additional time would be spent in
> production where time is a premium.
Yeah, I guess you are right.
--
Best Regards,
Artem Bityutskiy
next prev parent reply other threads:[~2014-03-21 7:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-10 17:35 Corrupt empty space HOUR Fréderic
2014-03-11 5:31 ` Kent Li
2014-03-11 7:00 ` Gupta, Pekon
2014-03-11 7:46 ` Artem Bityutskiy
2014-03-11 8:21 ` Brian Norris
2014-03-21 7:18 ` Gupta, Pekon
2014-03-21 7:31 ` Artem Bityutskiy
2014-03-21 7:43 ` Ricard Wanderlof
2014-03-21 7:53 ` Artem Bityutskiy [this message]
2014-03-21 7:50 ` Gupta, Pekon
2014-03-21 8:13 ` 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=1395388429.5163.86.camel@sauron.fi.intel.com \
--to=dedekind1@gmail.com \
--cc=Kent.Li@radisys.com \
--cc=frederic.hour@safran-engineering.com \
--cc=linux-mtd@lists.infradead.org \
--cc=pekon@ti.com \
--cc=ricard.wanderlof@axis.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