[Yaffs] heavy file usage in yaffs
Charles Manning
Charles.Manning@trimble.co.nz
Mon, 17 Jan 2005 09:25:22 +1300
> Hello yaffers,
>=20
> I'm testing yaffs1/direct in a system with a rather high file=20
> write / erase rate, i.e 1 file / sek with size ranging from 5 to 20KB
>=20
> Is that something possible with yaffs1?
Most definitely OK. Performance numbers depend on the hardware you're
using, but with NAND on a reasonable interface, you should be able to
get at least 200 to 300 kbytes/sec even under heavy garbage collection.
>=20
> Upon boot I want to make an index table holding the names of=20
> the files stored in flash. What's the best way to achieve=20
> this, when the indexing has to be swift (10 - 20 secs) -=20
> using yaffs_opendir / yaffs_readdir seems to take a huge=20
> amount of time (10+ mins) when many files (2000-3000) are present?
I'm quite surprised that it is taking so long to do this operation.
One of the optimisations in YAFFS is to store short names in RAM. Do you
have this enabled? How long are the names?=20
-- Charles