[Yaffs] RAM usage
Evgeny Belyanco
esp1 at kbkcc.ru
Wed Sep 7 12:08:47 BST 2005
Wednesday, September 7, 2005, 2:40:25 AM, you wrote:
>> How I can calculate RAM usage for YAFFS (or YAFFS2) direct mode?
CM> Most of the RAM used by YAFFS is in the tnode structures used to build the
CM> file trees. This uses approx 2 bytes of RAM per "chunk" of NAND.
CM> Most people will use a NAND page as a "chunk", but you can use larger.
CM> That means that if you are using NAND with 512byte pages, then for every
CM> 1Mbyte of NAND you will need (1MB/512b = 2k chunks) * 2 bytes per chunk =
CM> 4kbytes of RAM.
CM> For 2k page chunks you will need only 1 quarter of that.
Thanks!
>> I will try to port YAFFS to uCOS-II.
CM> Please be aware of licensing issues when using YAFFS with non-GPL code.
Of course. I will keep all code, concerning YAFFS, GPL and in separate
*.so.
Evgeny.
More information about the yaffs
mailing list