This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stress testing JFFS2


> - 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]