Weird status information on JFFS2 File System
navin.boppuri at newisys.com
Fri Feb 15 11:45:30 EST 2002
I have two uniform sector (64K each 16 bit) Flash devices connected to a 32 bit bus. So, my sector size is actually 128K. For a 1MB file system, what should be the optimal size of the reserved space for garbage collection? I only have 8 sectors for 1MB out of which 5 sectors are already being taken up by GC. Do I really need 5*128K GC area for 3*128K available space left on the flash?
Thanks a lot.
From: David Woodhouse [mailto:dwmw2 at infradead.org]
Sent: Friday, February 15, 2002 10:10 AM
To: Navin Boppuri
Cc: Chris Vagnini; linux-mtd at lists.infradead.org
Subject: Re: Weird status information on JFFS2 File System
navin.boppuri at newisys.com said:
> Is there some way I can change the 5 erase blocks default to a
> smaller size? What are the implications of doing that?
grep RESERVED fs/jffs2/nodelist.h
The danger in reducing it too far is that you'll run out of free space
entirely, so that garbage collection cannot continue and your file system
gets entirely stuck. We ought to be able to reduce it to only a block or
two, but the code wants auditing for safety first - we have to ensure that
we never expand while garbage-collecting.
More information about the linux-mtd