mounting jffs2

Sergei Sharonov sergei.sharonov at halliburton.com
Thu Apr 14 08:39:53 EDT 2005


Hi,

thanks, Artem.

> > Nope. Just three files: one is 200 MBytes, two others are small.
> 
> That's all I need to know. JFFS2 was originally developed to work with
> small NOR flashes. After NAND support was added it became possible to
> utilize it on top of NAND, but with large flashes it is not very usable.
> 200 MB file is very large for JFFS2. It eats a lot of RAM when
> you open the file and iget() is very slow with it (iget() happens when
> you open the file, stat it, ls -l, etc).

That's what I was afraid of. Looks like JFFS2 is not very usable on large
NAND chips. Will the situation improve if the 200 MByte file
is split into, say, multiple 20 MByte files? I guess not..

Other possibilities that I would like to investigate:

1. Partition NAND into two blocks. One will be small and will buffer incomming
data while the second big partition is being mounted. Problem: if power
cycles just before the readout the user will have to wait 20+ minutes before 
he can get to data. Argh..

2. Try YAFFS. Can anybody offer an opinion ;) ? 
JFFS2 is well supported, every resonable question or problem is followed 
up within hours. What about YAFFS? I also have a feeling that jffs2 has had 
a bit more testing and larger user base. How mature is YAFFS?

3. Try summary patch. How stable is it with jffs2? Is anybody using it
in production or is it still pretty much experimental? I recall that
initially summary was not created/updated dynamically, e.g. it was not 
usefull for log data. Is it still the case?

4. Combine (1) with (3). (1) will give fast write access, (3) hopefuly will
give fast read access????

5. Look for a commercial solution. I recall somebody was talking at 
Embedded Conference about porting their filesystem to linux.

> This is why I started designing JFFS3, though I do this in background and 
> don't really spend a lot of time (sponsors are needed ). Take a glimpse 
> at the evolving document at 
> http://www.linux-mtd.infradead.org/tech/JFFS3design.pdf, especially at the 
> "JFFS2 analysis chapter", which is far not complete though. This will help 
> you to realize why it is difficult to use JFFS2 on large flashes, 
> especially if you have a 200 MB file 

What's the point in having a big NAND if you cannot fill it ;) ?

Best regards,

Sergei Sharonov






More information about the linux-mtd mailing list