Q: Filesystem choice..

Joakim Tjernlund joakim.tjernlund at lumentis.se
Mon Jan 26 04:28:58 EST 2004


> On Mon, 2004-01-26 at 09:34 +0100, Joakim Tjernlund wrote:
> > size = 63*1024*1024/50 = 1321205
> > size += 252*100 += 25200= 1321457
> > size += 256*1024 -1 += 262143 = 1583600
> > 
> > resv_blocks_write = 2 + 1583600/(256*1024) = 2 + 6 = 8
> > resv_blocks_gcmerge = 2+1 = 3
> > 
> > So now I need 8(2 MB) reserved blocks instead of 5?
> > I never had any trouble with 5 reserved blocks, maybe one could do a
> > resv_blocks_write = MIN(5, resv_blocks_write) iff NOR flash?
> 
> I'd be happier about reducing the 2% figure to 1% or 1.5%, maybe.

1% results in: resv_blocks_write = 2 + 3.7 = 5.
Much better.

  Jocke



More information about the linux-mtd mailing list