Hello Friends,

Platofrm : ARM Linux 2.6

I have a situation in which I have to decode Audio(AAC) and Video(H.264) from a incoming stream and simultaneously write the encoded data on flash ( 512 MB NAND flash with yaffs2 file system).

What i observed is when I erase the flash and write for the first time everything goes smooth , but after a while when I record multiple clips or delete some of the file record again , it appears that nand flash write has become slower or consuming CPU cycle , due to which Video Decode become late and the display looks frozen for a while. Audio keeps going no problem to it .

This bheviour is random sometime occur for some part of nand flash write cycle , some time doesn't.

In application , I am buffer 12 KB of data and then issuing actual write to flash , also I kept priority of write thread low as compared to Video Decode etc.

Please let me know in what other way I can optimized the nand flash write in sebsequent cycle on yaffs2 filesystem in order to achieve better performance.?


Thanks