From: Kenneth Johansson <kenneth.johansson@etx.ericsson.se>
To: "Xiaogeng (Shawn) Jin" <xjin@redswitch.com>
Cc: Mtd <linux-mtd@lists.infradead.org>
Subject: Re: writing to jffs2 is so slow?
Date: 06 Sep 2002 14:08:58 +0200 [thread overview]
Message-ID: <1031314138.28700.167.camel@spawn> (raw)
In-Reply-To: <3D77C812.3080108@redswitch.com>
On Thu, 2002-09-05 at 23:09, Xiaogeng (Shawn) Jin wrote:
> Hi,
>
> I have an empty mtd partition (capacity is 16 MB) where a jffs2 fs is
> mounted. The strange observation is that making a first directory on
> that partition takes almost 2 minutes. So far I observed this behaviour
> just when making the first directory and just on that particular
> partition. Can anyone help me to explain this? Is there anything wrong
> with flash memory (hardware) or MTD device driver or JFFS2? Thanks.
>
The thing is that jffs2 seems to mark the whole disk dirty and has to re
erase the whole disk before you can store anything on it. This happens
only the first time. If you wait a few minutes after you do the mount
you should see no delay in creating directories and files.
Maybe it's possible to do a format command that creates a disk that is
empty and prevents the jffs2 code to reformat every block.
--
Kenneth Johansson
Ericsson AB Tel: +46 8 404 71 83
Borgafjordsgatan 9 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson@etx.ericsson.se
next prev parent reply other threads:[~2002-09-06 12:09 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 [this message]
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
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=1031314138.28700.167.camel@spawn \
--to=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