[ECOS] Re: Stress testing JFFS2

Andrew Lunn andrew@lunn.ch
Wed Oct 15 21:02:00 GMT 2003


> - Every operation that changes the contents of the FLASH (even 
> deleting files!)  is performed by writing new nodes to the
> FLASH. Every such node is represented in RAM by a struct
> jffs2_raw_node_ref. The memory occupied by these structs is never
> freed unless the file system is unmounted or garbage collection takes
> place.

If i remember correctly, it think it was once said that the linux
version of jffs2 has a thread which does a garbage collect every so
often and that eCos does not have such a thread. eCos only does a
garbage collect when it really must do. 

Maybe if you implement the garbage collect thread you can reduce your
RAM usage.

    Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list