JFFS3 memory consumption
Artem B. Bityuckiy
dedekind at infradead.org
Thu Feb 3 05:54:26 EST 2005
Jared Hulbert wrote:
> What do you mean by in-core?
This is the term used in JFFS2. All objects which JFFS2 allocates in RAM
are divided on two groups: in-core objects and other.
In-core are those objects which must be allocated in order to mount to
JFFS2 and work with it. So, the in-core memory is the memory which JFFS2
consumes when it is mounted irrespective of whether one work with it or
not.
For example, to mount 1GiB JFFS2 partition full of data one need, say, 5
MiB RAM. Once you have mounted JFFS2, these 5 MiB will be consumed forever
(until you unmount it). To open files and lookup directories JFFS2 needs
more RAM. But this RAM is freed when, roughly speaking, you close your
files.
So, the major JFFS2 drawback is that its in-core RAM consumption depends
linearly on the amount of data you store *on flash*. And I'm trying to
find the way to relax this.
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
More information about the linux-mtd
mailing list