Need help understanding jffs2 mount activity

Mike Kelly mgkelly59 at yahoo.com
Mon May 5 10:06:12 EDT 2003


--- David Woodhouse <dwmw2 at infradead.org> wrote:
> On Thu, 2003-05-01 at 22:40, Mike Kelly wrote:
> > Next we ran an operation, where a file has 65
> bytes
> > appended to it until it reaches a size of about
> 700
> > kB. When this was completed, the bootup time
> increased
> > to 75 seconds and has not gone back down upon
> > subsequent reboots. 
> 
> That's expected. 
> 
> > So, does the garbage collection
> > upon mount/bootup differ between deleted files and
> > appended files? When a file is opened, appended,
> then
> > closed, does the jffs2 filesystem essentially copy
> the
> > file to a new location along with the new data,
> then
> > marks the old file as obsolete?
> 
> No, it writes out the new bytes in a new log entry,
> leaving the rest as
> it was. See
> http://sources.redhat.com/jffs2/jffs2.pdf
> 
> So instead of a whole file made up of 4KiB nodes as
> usual, you've ended
> up with a file made entirely of 65-byte nodes, each
> with its own CRC to
> check etc. 
> 
---
David, thanks for your reply.

If the 700KiB file is copied then deleted, would this
result in 4KiB nodes for the new file?  If so,
shouldn't the bootup time be quicker, since there are
less nodes to CRC check?  The bootup time seems to
remain the same, even after several reboots.

--
Mike K.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



More information about the linux-mtd mailing list