Re: [PATCH] block2mtd oops in erase function.

Jason Lunz
2007-02-21T15:43:06Z

On Wed, Feb 21, 2007 at 02:47:54PM +0000, Jörn Engel wrote:
> > Mount time of a ~56M jffs2 partition went from ~72s to ~54s.
>
> Ouch! While this is a significant improvement, 54s is still quite bad.
> The 512MiB partition on the OLPC is mounting in ~3.4s with JFFS2 and
> ~60ms with LogFS. Imo 3.4s is already bad, and 54s is way beyond.
>
> Now where is time lost? One candidate is erase block summary, enabling
> it usually gives roughly a 6x performance improvement. That would get
> you down to ~9s.

How do I do that?

> Another next thing I suspect is the erase size. The default is 4KiB,
> which is rather small. Can you try setting it to 64KiB or maybe even
> 128KiB?

Those timings are already using a 128k erase size.

A raw read of the underlying block device takes 54s, so jffs2 isn't
adding any significant overhead anymore. It was when readahead was
in use.

The only way to increase performance at this point is to make it so that
jffs2 doesn't need to read the entire device at mount time. Is this what
erase block summaries do?

--
Jason Lunz | Senior Developer | Reflex Security, Inc.
lunz@reflexsecurity.com