JFFS2 ram memory usage
David Woodhouse
dwmw2 at infradead.org
Thu Aug 7 06:57:53 EDT 2003
On Thu, 2003-08-07 at 10:42, Øyvind Harboe wrote:
> I've made some changes to JFFS2 locally to reduce memory usage.
>
> The change I did was to disable compresssion as I have lots
> of flash and little ram(Atmel EB40a 2MB flash + 256k ram +
> eCos and my app).
You could also remove the actual compression routines if you're going to
do that. Other users, especially eCos users, may want to individually
select the compression algorithms available too.
> My usage of JFFS2 is intermittant and hence I'd like to
> reduce peak memory usage(much better with compression
> disabled) and idle memory usage(perhaps unmounting JFFS2
> when I'm not using it?).
Finding a way to eliminate the 'totlen' field of the jffs2_raw_node_ref
structure might be productive. Or possibly making the jffs2_raw_node_ref
contain doubly-linked lists if that then means we can discard obsolete
nodes immediately rather than keeping them around.
--
dwmw2
More information about the linux-mtd
mailing list