public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS2 mount time is really bad on 1st boot only
@ 2005-01-12 19:47 Stuart Yoder
  2005-01-12 20:02 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Stuart Yoder @ 2005-01-12 19:47 UTC (permalink / raw)
  To: linux-mtd


We are using JFFS2 in a  Linux 2.4.28 kernel based system (PowerPC based
hw).  We have a large (256MB) flash.

Here is the scenario for some behaviour we are seeing that we are trying
to undertand:

-create Linux root filesystem with mkfs.jffs2-- about 90MB of data.
-flash partition onto board-- ~90MB data, ~140MB free (erased)
-boot Linux
-mount of JFFS2 root partition takes on the order of 8 min
-reboot system from Linux
-mount of JFFS2 root partition takes ~30 sec

All subsequent boots take ~30 sec.

Does anybody have any idea of why the very first mount of the filesystem
takes so long?

Thanks,
Stuart Yoder

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: JFFS2 mount time is really bad on 1st boot only
  2005-01-12 19:47 JFFS2 mount time is really bad on 1st boot only Stuart Yoder
@ 2005-01-12 20:02 ` David Woodhouse
  2005-01-12 20:10   ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2005-01-12 20:02 UTC (permalink / raw)
  To: Stuart Yoder; +Cc: linux-mtd

On Wed, 2005-01-12 at 13:47 -0600, Stuart Yoder wrote:
> Does anybody have any idea of why the very first mount of the
> filesystem takes so long?

It's probably erasing the unused part of the file system. Running with
CONFIG_JFFS2_FS_DEBUG=1 should fix that. 

Running a current (i.e. 2.6) kernel should make the subsequent mounts a
lot faster too.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: JFFS2 mount time is really bad on 1st boot only
  2005-01-12 20:02 ` David Woodhouse
@ 2005-01-12 20:10   ` David Woodhouse
  0 siblings, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2005-01-12 20:10 UTC (permalink / raw)
  To: Stuart Yoder; +Cc: linux-mtd

On Wed, 2005-01-12 at 20:02 +0000, David Woodhouse wrote:
> It's probably erasing the unused part of the file system. Running with
> CONFIG_JFFS2_FS_DEBUG=1 should fix that. 

Doh.

s/fix that/show you that/

-- 
dwmw2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-12 20:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12 19:47 JFFS2 mount time is really bad on 1st boot only Stuart Yoder
2005-01-12 20:02 ` David Woodhouse
2005-01-12 20:10   ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox