[Yaffs] data loss under heavy pressure on Yaffs2 GC

Charles Manning manningc2 at actrix.gen.nz
Sun Jul 31 01:40:49 BST 2005


Hi Artis

I am very interested in this problem and will research it further, but at this 
point I will make one observation.

On Saturday 30 July 2005 02:16, Artis Kugevics wrote:
>
> <here comes the interesting part - GC collects file 'xxx', which is being
> written right now>
>

I'm not sure it you realize this or not, but yaffs does collection on a block 
basis, not a file basis. Therefore when it does a collection it just looks at 
the chunks (bits of file) on the block being collected. If a file is spread 
over multiple blocks then the parts of the file on the other blocks will not 
get collected.

I would also like to ask some questions: 
Are you doing interesting things to this file, like resizing, lseek and 
overwrite etc? 
Are you only writing a single file when this happens?
Could you perhaps send me the code that is running when the problem occurs?

Thanx

-- CHarles



More information about the yaffs mailing list