I am currently working on Ext2 file-system on SLC NAND Flash device. I have added code which increments the erase/write count at sector level on NAND Flash device. So when ever there is a write or erase then this is increment the respective erase_count array and write count array respectively.
I have created 3 test applications with below algorithm with different write/read sizes:
#define MAX_COUNT 50
Write_all();//open file, write data to NAND, close.
Read_all();//open a file, read data from NAND, close.
While(counter++ < MAX_COUNT) Loop1;
1) testAP1-25KB write/read- Loop for 256 times to write 64MB file
2) testAP2-1MB write/read-Loop for 64 times to write 64MB file
3) testAp3-2MB write/read-Loop for 32 times to write 64MB file
Below is erase/write count for Filesystem data at Sector 0:
with testAP1: erase/write count =240
testAP2: erase/write count=203
Can any one please tell me having different write/read sizes in Test application will have any affect on the Filesystem block updates?
What is the pattern/logic behind this?
For this kind of behaviour where do I have to look in?
Any suggestion would be appreciated.