From: xiaochuan-xu <xiaochuan-xu@cqu.edu.cn>
To: dedekind@infradead.org
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH 4/4] UBI WL-Subsys: Improvement in prot tree
Date: Wed, 10 Dec 2008 12:52:32 +0800 [thread overview]
Message-ID: <428884192.13309@cqu.edu.cn> (raw)
Message-ID: <1228884752.3225.80.camel@localhost.localdomain> (raw)
In-Reply-To: <1228827803.13686.189.camel@sauron>
> > +#define ST_PROTECTION 17
> > +#define U_PROTECTION 11
> > +#define LT_PROTECTION 5
>
> I doubt these constants make much sense. I would suggest you to get rid
> of them and simplify things. Let's have only one constant instead of 3.
> This will allow us to implement efficient protection queue
> which you will not need to walk at all.
Sorry, I don't quite follow this meaning.
You mean one protection list (not lists) could filfull the function?
> So I'd suggest you to send a separate "preparation" patch which
> introduces one constant instead of 3. E.g.,
>
> #define PROTECTION 10
>
> It may be re-named to PROT_LIST_LEN later, probably.
>
> How does this plan sound to you?
>
These three constants are the part of the whole Wear-leveling algorithm,
not only for the protection tree/lists. especially for the GET mothed.
As far as I could see, Different type data should protect different
'time'. protection 'time' classification makes sense. By means of the
classification, we can implement some more improvement, for instance:
1. UBI_LONGTERM data's PEB may not be protected, but insert into the
USED RB-tree directly, whereas other type data should do.
2. We may split the @dtype into more sub-type. Take the UBI_UNKNOWN as
an example, it seems to have many UBI_UNKNOWN type date in the current
UBI/UBIFS implementation. We may be able to dynamic evaluate the real
type of these UBI_UNKNOWN data in the EBA Sub-system and then GET more
optimal PEB, although this seems to be not so easy.
fundamentally, the question, in my opinion, is not one or three
constants, but how much 'time' corresponding type data should be
protected.
Listen with your suggestion. Thanks.
--
Yours sincerely
xiaochuan-xu(cqu.edu.cn)
next prev parent reply other threads:[~2008-12-10 4:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1228823163.2753.18.camel@localhost.localdomain>
2008-12-09 11:46 ` [PATCH 4/4] UBI WL-Subsys: Improvement in prot tree xiaochuan-xu
2008-12-09 13:03 ` Artem Bityutskiy
[not found] ` <1228884752.3225.80.camel@localhost.localdomain>
2008-12-10 4:52 ` xiaochuan-xu [this message]
2008-12-10 8:44 ` Artem Bityutskiy
[not found] ` <1228914665.3655.31.camel@localhost.localdomain>
2008-12-10 13:11 ` xiaochuan-xu
2008-12-10 13:35 ` Artem Bityutskiy
[not found] ` <1228913251.3655.10.camel@localhost.localdomain>
[not found] ` <1228931859.13686.350.camel@sauron>
[not found] ` <1228981865.2702.9.camel@localhost.localdomain>
[not found] ` <1229022841.13686.384.camel@sauron>
[not found] ` <1229332169.5306.1.camel@localhost.localdomain>
[not found] ` <1229332781.13686.447.camel@sauron>
[not found] ` <1229343610.2687.52.camel@localhost.localdomain>
[not found] ` <1229343746.4911.2.camel@sauron>
[not found] ` <1229347894.2687.56.camel@localhost.localdomain>
[not found] ` <1229356809.4911.57.camel@sauron>
[not found] ` <1229394788.2691.14.camel@localhost.localdomain>
2008-12-16 2:33 ` xiaochuan-xu
[not found] ` <1229395691.2691.18.camel@localhost.localdomain>
2008-12-16 2:48 ` xiaochuan-xu
2008-12-16 6:36 ` Artem Bityutskiy
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=428884192.13309@cqu.edu.cn \
--to=xiaochuan-xu@cqu.edu.cn \
--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