public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
To: "David Woodhouse" <dwmw2@infradead.org>,
	"Xiaogeng \(Shawn\) Jin" <xjin@redswitch.com>
Cc: "Jörn Engel" <joern@wohnheim.fh-wedel.de>,
	"Kenneth Johansson" <kenneth.johansson@etx.ericsson.se>,
	"Mtd" <linux-mtd@lists.infradead.org>
Subject: Re: writing to jffs2 is so slow?
Date: Fri, 6 Sep 2002 23:20:22 +0200	[thread overview]
Message-ID: <002501c255eb$35c56680$0200a8c0@telia.com> (raw)
In-Reply-To: 29521.1031338455@redhat.com

----- Original Message -----
From: "David Woodhouse" <dwmw2@infradead.org>
To: "Xiaogeng (Shawn) Jin" <xjin@redswitch.com>
Cc: "Jörn Engel" <joern@wohnheim.fh-wedel.de>; "Kenneth Johansson" <kenneth.johansson@etx.ericsson.se>; "Mtd"
<linux-mtd@lists.infradead.org>
Sent: den 6 september 2002 20:54
Subject: Re: writing to jffs2 is so slow?


>
> xjin@redswitch.com said:
> > > Try eraseall from the utils.
> > > With that, jffs2 just writes the erase markers to flash, 12 bytes per
> > > erase block.
>
> No, JFFS2 cannot trust that 'empty' blocks really have been properly
> erased, and must erase them again, writing a 'cleanmarker' node to them
> when the erase is complete.
>
> > Well, that's just what I did. Then making a first directory takes 2
> > minutes.
>
> JFFS2 is busy erasing every block on the file system. You have to wait
> until it's done before you can write.

I think that can be fixed(or at least better). Instead of eraseing all blocks first and
then write cleanmarker to those blocks, make it erase one block and write
cleanmarker erase the next block and write it's cleanmarker and so on.

That way you will free up erase blocks as they become ready and you don't have to watch
the use % in df slowly raise to 100% and the suddenly drop to the real usage.

   Jocke

  reply	other threads:[~2002-09-06 21:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 21:09 writing to jffs2 is so slow? Xiaogeng (Shawn) Jin
2002-09-06  7:15 ` Thomas TESTASECCA
2002-09-06 12:08 ` Kenneth Johansson
2002-09-06 17:14   ` Xiaogeng (Shawn) Jin
2002-09-06 17:48     ` Jörn Engel
2002-09-06 18:32       ` Xiaogeng (Shawn) Jin
2002-09-06 18:54         ` David Woodhouse
2002-09-06 21:20           ` Joakim Tjernlund [this message]
2002-09-06 21:30             ` David Woodhouse
2002-09-06 18:57         ` 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='002501c255eb$35c56680$0200a8c0@telia.com' \
    --to=joakim.tjernlund@lumentis.se \
    --cc=dwmw2@infradead.org \
    --cc=joern@wohnheim.fh-wedel.de \
    --cc=kenneth.johansson@etx.ericsson.se \
    --cc=linux-mtd@lists.infradead.org \
    --cc=xjin@redswitch.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