JFFS2 access time
Josh Boyer
jwboyer at gmail.com
Wed Jan 16 19:34:58 EST 2008
On Wed, 16 Jan 2008 08:57:50 -0500
DMcLeod <dmcleod at bittware.com> wrote:
> Hi all,
>
> We are using uClinux git 2.6.23. We have 4 2.5MB files sitting in a
> directory on a ~40MB jffs2 partition (on NOR flash). The very first time
> we do an 'ls' in that directory, the response takes literally minutes.
> After the initial delay, any accesses to those files are very
> quick.,,
That is normal for large files. JFFS2 has do the CRC checking on all
the nodes for those large files. That is a lot of nodes to check. You
might want to look into using the eraseblock summary feature.
> Originally, we started off with the Microtronix 1.4 kernel and
> it did not have this problem. The pre-git version of uClinux-dist had
> this problem but not as severe - it was more like 40 seconds to list the
> contents of that directory.
I have no idea what those two kernels are, but older JFFS2 used to do
all the CRC checking at mount time. So mount would be slow and runtime
access would be relatively quick.
josh
More information about the linux-mtd
mailing list