Skip to contentSkip to conversation

JFFS2 mount time is really bad on 1st boot only

DISCUSSION Stuart Yoder 2 participants 3 messages Jan 12, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Stuart Yoder

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.

Signature · 1 line
dwmw2
#2 lore raw
Quoted 2 lines · David Woodhouse

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/

Signature · 1 line
dwmw2