* JFFS2 ram memory usage
@ 2003-08-07 9:42 Øyvind Harboe
2003-08-07 10:57 ` David Woodhouse
0 siblings, 1 reply; 3+ messages in thread
From: Øyvind Harboe @ 2003-08-07 9:42 UTC (permalink / raw)
To: linux-mtd
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).
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?).
I did post a RFC on the changes I did to the ecos-patches
mailing list, but I'll clean it up to the best of my abilities
if there might be useful to others as well.
Comments?
http://sources.redhat.com/ml/ecos-patches/2003-08/msg00019.html
Sincerely,
Øyvind
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: JFFS2 ram memory usage
2003-08-07 9:42 JFFS2 ram memory usage Øyvind Harboe
@ 2003-08-07 10:57 ` David Woodhouse
2003-08-07 11:08 ` Øyvind Harboe
0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2003-08-07 10:57 UTC (permalink / raw)
To: Øyvind Harboe; +Cc: linux-mtd
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: JFFS2 ram memory usage
2003-08-07 10:57 ` David Woodhouse
@ 2003-08-07 11:08 ` Øyvind Harboe
0 siblings, 0 replies; 3+ messages in thread
From: Øyvind Harboe @ 2003-08-07 11:08 UTC (permalink / raw)
To: 'David Woodhouse'; +Cc: linux-mtd
>You could also remove the actual compression routines if
>you're going to do that.
In my patch I:
- removed the allocation of the compression/decompression buffer
that the compression routines uses to attempt to compress.
- removed the invocation of the compression/decompression call.
>Other users, especially eCos users, may want to individually
>select the compression algorithms available too.
Agreed.
I haven't checked, but I can't imagine that the runlength
compressor using a lot of memory.
>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.
I don't speak enough JFFS2 currently to comfortably attempt this.
Øyvind
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-07 11:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-07 9:42 JFFS2 ram memory usage Øyvind Harboe
2003-08-07 10:57 ` David Woodhouse
2003-08-07 11:08 ` Øyvind Harboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox