public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@logfs.org>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: Linux MTD mailing list <linux-mtd@lists.infradead.org>
Subject: Re: sync() takes minutes while erasing
Date: Wed, 20 Jun 2007 18:29:50 +0200	[thread overview]
Message-ID: <20070620162950.GB1789@lazybastard.org> (raw)
In-Reply-To: <1182356796.2969.140.camel@gentoo-jocke.transmode.se>

On Wed, 20 June 2007 18:26:36 +0200, Joakim Tjernlund wrote:
> On Wed, 2007-06-20 at 11:09 -0500, Josh Boyer wrote:
> > 
> > jffs2_write_super is called during unmount.  If there are blocks pending
> > on the erase list, it's better to erase those now before the unmount is
> > completed.  Saves some time on the next mount.
> 
> No, not if the reboot/unmont is suspended for minutes just because jffs2
> wants to finish erasing. It doesn't save you much, if anything, at
> remount either.
> 
> The erasing in context is just something that needs to be done at some
> point but it don't have to happen now.

In case you need an example:

$ flash_eraseall /dev/mtd0
$ time mount mtd0 /mnt -t jffs2
$ time umount /mnt

Depending on device size, this will take some seconds for mount and some
minutes for umount.  Spending minutes to save some seconds on next mount
hardly sounds sensible.

Jörn

-- 
"Security vulnerabilities are here to stay."
-- Scott Culp, Manager of the Microsoft Security Response Center, 2001

  reply	other threads:[~2007-06-20 16:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 14:21 sync() takes minutes while erasing Joakim Tjernlund
2007-06-20 14:49 ` Joakim Tjernlund
2007-06-20 16:09   ` Josh Boyer
2007-06-20 16:26     ` Joakim Tjernlund
2007-06-20 16:29       ` Jörn Engel [this message]
2007-06-20 16:45         ` Joakim Tjernlund
2007-06-20 16:59           ` Josh Boyer
2007-06-28 18:54   ` David Woodhouse
2007-06-28 18:59     ` Joakim Tjernlund
2007-06-28 19:02       ` David Woodhouse
2007-07-02 12:58         ` Joakim Tjernlund
2007-08-06 16:18           ` Joakim Tjernlund
2007-08-08 13:06             ` Joakim Tjernlund
2007-11-08 16:37               ` Joakim Tjernlund
2007-11-08 17:20                 ` Joakim Tjernlund

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=20070620162950.GB1789@lazybastard.org \
    --to=joern@logfs.org \
    --cc=joakim.tjernlund@transmode.se \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox