how to behave on jffs2

Carlos Manuel Duclos Vergara carlos at embedded.cl
Wed Jan 12 10:56:03 EST 2005


> Hi All,
>

Hi,

> I have an embedded Linux (kernel 2.4.18) board at 50MHz, with jffs2 16MB
> flash. My system creates small files of 700 bytes each and is required to
> create ~3000 of such files. I see that when there are 1000 files, the
> system takes 3 minutes or so to mount this partition and then another 3 to
> do "ls -l". When there are 3000 files, the system takes 10 minutes each for
> mount and "ls -l".
>

Why not to create a ramdisk and mount it on the fly?
Only when you modify the ramdisk you save it to the flash, instead of been 
working directly with flash memory. You can save a lot of time by doing this.

Cheers!

-- 
Carlos Manuel Duclos Vergara
carlos at embedded.cl
http://www.embedded.cl




More information about the linux-mtd mailing list