compare JFFS2 vs YAFFS

Charles Manning manningc2 at actrix.gen.nz
Mon Apr 21 16:28:57 EDT 2003


On Saturday 19 April 2003 18:03, Paul Wong wrote:
> Hi All,
>     could u tell me the JFFS2 and YAFFS comparsion? speed, save, reliable,
> and future
>
> Thanks
>
> Paul

Paul

This is a tricky one. Both YAFFS and JFFS2 have their pros and cons.

I have not used JFFS2 myself, but I have studied it a bit. Herewith my 
impressions.
* YAFFS is likely faster than JFFS2 in many situations. YAFFS does not do 
compression (which takes time). YAFFS has a simpler garbage collection 
mechanism that is likely to be faster.
* YAFFS uses smaller management structures (and therefore uses less RAM).
* JFFS2 provides compression. Nice if you have a small NAND. Some people 
achieve almost the same thing (for read) by loop mounting compressed file 
systems (eg. cramfs)  on a YAFFS file.
* You might already have JFFS2 for NOR, therefore you get an image footprint 
saving if you use it for NAND too.
* YAFFS is very reliable. I think JFFS2 is also.
* Both file systems are widely used and will continue to be supported. 

As a hunch, I'd say it is better to use JFFS2 on smaller NAND arrays where 
you gain from the compression and YAFFS on larger sizes.

My suggestion to you is that you try both and go with the one that is the 
best fit for your needs.

-- Charles







More information about the linux-mtd mailing list