RE: [Yaffs] heavy file usage in yaffs

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: Jacob Dall, yaffs
Subject: RE: [Yaffs] heavy file usage in yaffs
> Hello yaffers,
>
> I'm testing yaffs1/direct in a system with a rather high file
> write / erase rate, i.e 1 file / sek with size ranging from 5 to 20KB
>
> 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.

>
> Upon boot I want to make an index table holding the names of
> the files stored in flash. What's the best way to achieve
> this, when the indexing has to be swift (10 - 20 secs) -
> using yaffs_opendir / yaffs_readdir seems to take a huge
> 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?
-- Charles