[Yaffs] RAM usage

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Evgeny Belyanco
Date:  
To: Charles Manning
CC: yaffs
Subject: [Yaffs] RAM usage
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.