All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@lazybastard.org>
To: Jason Lunz <lunz@falooley.org>
Cc: Felix Fietkau <nbd@openwrt.org>, linux-mtd@lists.infradead.org
Subject: Re: [PATCH] block2mtd oops in erase function.
Date: Wed, 21 Feb 2007 16:02:18 +0000	[thread overview]
Message-ID: <20070221160217.GA2650@lazybastard.org> (raw)
In-Reply-To: <20070221154249.GB7764@metaxa.reflex>

On Wed, 21 February 2007 10:42:49 -0500, Jason Lunz wrote:
> 
> 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.

That is a bit surprising.  JFFS2 has some optimizations to skip empty
blocks after some bytes.  This is where readahead really hurt - JFFS2
would skip and readahead would read the skipped data anyway.  Now I can
see that JFFS2 has some overhead over plain reading the device, but it
is unusual that overhead and optimizations cancel each other out so
perfectly.

> 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?

Yes.  The idea is to only read the summary at the end of an erase block.
If the summary does not exist, it will fall back to linear scanning of
the block, afaik.

If you enable CONFIG_JFFS2_SUMMARY, it should work for you.  Of course,
your filesystem needs the summary, so you either have to do the
backup&restore procedure or apply sumtool (is that its name?) to your
images.

Jörn

-- 
Joern's library part 3:
http://inst.eecs.berkeley.edu/~cs152/fa05/handouts/clark-test.pdf

  reply	other threads:[~2007-02-21 16:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 21:29 [PATCH] block2mtd oops in erase function Felix Fietkau
2007-02-19 22:20 ` Jörn Engel
2007-02-19 22:30   ` Jörn Engel
2007-02-20  2:27     ` Felix Fietkau
2007-02-20 10:53       ` Jörn Engel
2007-02-20 21:35         ` Jason Lunz
2007-02-20 21:55           ` Jörn Engel
     [not found]             ` <20070221030254.GA11044@avocado.homenet>
2007-02-21 14:47               ` Jörn Engel
2007-02-21 15:42                 ` Jason Lunz
2007-02-21 16:02                   ` Jörn Engel [this message]
2007-02-21 20:26                     ` Jason Lunz
2007-02-21 21:43                       ` Jörn Engel

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=20070221160217.GA2650@lazybastard.org \
    --to=joern@lazybastard.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=lunz@falooley.org \
    --cc=nbd@openwrt.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.