optimum geometry

David Woodhouse dwmw2 at infradead.org
Tue Jan 22 05:23:36 EST 2002


joern at wohnheim.fh-wedel.de said:
>  I partially disagree. You are absolutely right about the "unused"
> blocks. But with mkfs.jffs2, I create smaller images with a blocksize
> of 128k, than with a blocksize of 64k. This makes sense, as jffs[12]
> must store some information per eraseblock, so fewer eraseblocks mean
> less overhead. In effect, there is an optimal erase block size,
> depending on the size of your filesystem, where the sum of both
> effects is minimal. But in most currently practical cases, the
> smallest possible is still the best. 

Yes, you're right. The overhead per-block is 12 bytes, but probably more
important than that is the fact that more nodes have to be split up between
blocks rather than being written out in one go - meaning an extra 70-odd 
byte header, and worse compression.

--
dwmw2






More information about the linux-mtd mailing list