Reliability of NAND JFFS2 vs YAFFS for Embedded Systems
Thomas Gleixner
tglx at linutronix.de
Fri Jun 13 18:32:29 EDT 2003
On Friday 13 June 2003 08:02, David Woodhouse wrote:
> On Fri, 2003-06-13 at 01:05, Chris wrote:
> > I am considering moving to the YAFFS filesystem due to reliablity
> > concerns, but I am also wondering if YAFFS will have its own can of
> > worms. I would like to have reliability, performance and space but
> > reliability is the most important concern.
> >
> > Does anyone have experience with testing reliability of both
> > configurations?
> > If so what were the resutls?
>
> There's been powerfail testing done on JFFS2 on NOR; not yet for NAND
> and there are some known corner cases which need sorting out before I
> really undertake that.
I have done intensive powerfail testing on NAND. I have no problem with JFFS2
and YAFFS. I think both are reliable and have their (dis)advantages.
Both filesystems have invalid files on it, if the powerfail occures during a
file write. That's normal behaviour. This would be the same on your harddisk
or any other medium.
I have never seen a serious fs corruption neither on JFFS2 nor on YAFFS,
except for some development phases, when the code was buggy. That's normal
for work in progress too.
The only unsolved problem for JFFS2 on NAND at the moment is a writebuffer
flush failure. This has hit me once during a log term test, where a sector
went bad after > 1.200.000 erase cycles. But this did not corrupt the hole
filesystem. It was just the last written file, which was lost. It should be
not too hard to fix that at least, if somebody has enough time or someone
does a little sponsoring for that :)
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de
More information about the linux-mtd
mailing list