From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: "Artem B. Bityuckiy" <dedekind@infradead.org>
Cc: MTD List <linux-mtd@lists.infradead.org>
Subject: Re: JFFS3 and RAM consumprion reincarnated
Date: Wed, 2 Mar 2005 15:44:07 +0100 [thread overview]
Message-ID: <20050302144407.GA18893@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0503011627270.19992@phoenix.infradead.org>
On Tue, 1 March 2005 16:28:36 +0000, Artem B. Bityuckiy wrote:
>
> We've stopped on the design like this: each inode has ICP which is stored
> on flash. The ICP is being outdated by GC and users. Since it is
> inefficient to rewrite new inode every time, we won't rewrite it but add
> node_ref instead. Sometimes we'll flush ICP and free node_refs.
I agree with tglx, your approach is complicated (aka horrible). How
about something much simpler:
o The ICP is just a list of erase blocks.
o For any non-obsolete node belonging to an inode, the containing
erase block number *must* be part of ICP.
o If an erase block doesn't contain non-obsolute nodes for this inode,
its number *should* not be part of ICP.
o The ICP *can* be stored in flash.
Advantages over current design:
o Lower memory consumption, as we don't track individual nodes anymore.
Advantages over your old ICP concept:
o GC and write are simple. They simply add the current eraseblock to
the ICP list, if it isn't part of it already.
Disadvantages:
o Whenever we need to check the full node list, we take a few more
indirections.
o Removal of erase blocks from the ICP list is done on lookup.
"Whoops, this erase block doesn't contain any of my nodes."
Ultimate advantage: Design can be explained in less words. :)
Jörn
--
My second remark is that our intellectual powers are rather geared to
master static relations and that our powers to visualize processes
evolving in time are relatively poorly developed.
-- Edsger W. Dijkstra
next prev parent reply other threads:[~2005-03-02 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 16:28 JFFS3 and RAM consumprion reincarnated Artem B. Bityuckiy
2005-03-02 14:44 ` Jörn Engel [this message]
2005-03-03 11:09 ` Artem B. Bityuckiy
2005-03-04 16:24 ` Jörn Engel
2005-03-05 11:15 ` Artem B. Bityuckiy
2005-03-05 11:27 ` Jörn Engel
2005-03-03 18:34 ` Jared Hulbert
2005-03-04 16:07 ` Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050302144407.GA18893@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox