JFFS2 garbage collector blocking for minutes after mount

Martin Egholm Nielsen martin at egholm-nielsen.dk
Wed Jul 20 05:03:59 EDT 2005


Hi,

I guess I'll be touching an old subject with this thread:

I have a "small" NAND device (32MByte) with JFFS2 on top used as the 
root-fs on my system. It's been working like a charm - until just now. 
After (over)writing a relative large file (11 megs uncomp. - 
~3-5compr.), the garbage collector (jffs2_gcd_mtd0) uses 8:45 minutes of 
CPU time (~99%) after booting - blocking any write operations.
Ok, I accept that some GC'ing should be performed when going "beyond the 
edge" - but shouldn't this be a one-time process, so the next time I 
boot this is done with?
I see it everytime I reboot - without touching any files on the system...

I use the mtd source from 2005-03-04...

BR,
  Martin Egholm





More information about the linux-mtd mailing list