* A simple JFFS3 GC algorithm
@ 2006-02-21 10:47 Ferenc Havasi
2006-02-21 12:04 ` Artem B. Bityutskiy
2006-03-06 18:19 ` Artem B. Bityutskiy
0 siblings, 2 replies; 7+ messages in thread
From: Ferenc Havasi @ 2006-02-21 10:47 UTC (permalink / raw)
To: linux-mtd
Dear All,
We have been thinking about JFFS3 and its remaining parts (such us
garbage collection), and described a simple idea for it. I don't think
it is the best one, but relatively simple, may implemented in the
first/prototype version of JFFS3. The document can be downloaded from here:
http://www.inf.u-szeged.hu/jffs2/documentation.php
Ferenc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A simple JFFS3 GC algorithm
2006-02-21 10:47 A simple JFFS3 GC algorithm Ferenc Havasi
@ 2006-02-21 12:04 ` Artem B. Bityutskiy
2006-03-06 18:19 ` Artem B. Bityutskiy
1 sibling, 0 replies; 7+ messages in thread
From: Artem B. Bityutskiy @ 2006-02-21 12:04 UTC (permalink / raw)
To: Ferenc Havasi; +Cc: linux-mtd
Ferenc Havasi wrote:
> Dear All,
>
> We have been thinking about JFFS3 and its remaining parts (such us
> garbage collection), and described a simple idea for it. I don't think
> it is the best one, but relatively simple, may implemented in the
> first/prototype version of JFFS3. The document can be downloaded from here:
>
Thanks Ferenc, I'll read this and send you my feedback.
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A simple JFFS3 GC algorithm
2006-02-21 10:47 A simple JFFS3 GC algorithm Ferenc Havasi
2006-02-21 12:04 ` Artem B. Bityutskiy
@ 2006-03-06 18:19 ` Artem B. Bityutskiy
2006-03-07 7:16 ` Artem B. Bityutskiy
2006-03-07 11:04 ` Ferenc Havasi
1 sibling, 2 replies; 7+ messages in thread
From: Artem B. Bityutskiy @ 2006-03-06 18:19 UTC (permalink / raw)
To: Ferenc Havasi; +Cc: linux-mtd
Ferenc Havasi wrote:
> Dear All,
>
> We have been thinking about JFFS3 and its remaining parts (such us
> garbage collection), and described a simple idea for it. I don't think
> it is the best one, but relatively simple, may implemented in the
> first/prototype version of JFFS3. The document can be downloaded from here:
>
Hi Ferenc,
Your proposal is based on a "map" which is basically a per-region table.
This is unscalable solution. Do you have any other more scalable
proposals? Let's for now consider this as a fall-back solution, OK?
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A simple JFFS3 GC algorithm
2006-03-06 18:19 ` Artem B. Bityutskiy
@ 2006-03-07 7:16 ` Artem B. Bityutskiy
2006-03-07 11:04 ` Ferenc Havasi
1 sibling, 0 replies; 7+ messages in thread
From: Artem B. Bityutskiy @ 2006-03-07 7:16 UTC (permalink / raw)
To: Ferenc Havasi; +Cc: linux-mtd
Artem B. Bityutskiy wrote:
> Your proposal is based on a "map" which is basically a per-region table.
> This is unscalable solution. Do you have any other more scalable
> proposals? Let's for now consider this as a fall-back solution, OK?
And, BTW, how are you going to build this "map" when you mount the file
system?
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A simple JFFS3 GC algorithm
2006-03-06 18:19 ` Artem B. Bityutskiy
2006-03-07 7:16 ` Artem B. Bityutskiy
@ 2006-03-07 11:04 ` Ferenc Havasi
2006-03-07 11:24 ` Artem B. Bityutskiy
1 sibling, 1 reply; 7+ messages in thread
From: Ferenc Havasi @ 2006-03-07 11:04 UTC (permalink / raw)
To: Artem B. Bityutskiy; +Cc: linux-mtd
Hi Artem,
> Your proposal is based on a "map" which is basically a per-region
> table. This is unscalable solution. Do you have any other more
> scalable proposals? Let's for now consider this as a fall-back
> solution, OK?
If we don't work with regions smaller than 256K, than a size of the map
of a 16G flash is about 786K, which I think is still OK, and also can be
cached.
I know this is not the best solution, we suggested it only for the first
variant of JFFS3 because it may work well on recent flash chips and make
the garbage collection absolutelly transparent, and relatively easy to
implement - there is no serious locking problems.
> And, BTW, how are you going to build this "map" when you mount the
> file system?
It is stored on the flash somewhere (its position is in the superblock),
and the changes are logged into a separated journal. When this journal
is fulled, the new version of map will be written out. If the file
system is mounted the stored map will be loaded and the events stored in
the journal are replayed.
Anyway, we don't insist on this algorithm, it was only an idea, maybe
not usefull. We've started to implement a simplified user space
prototype of JFFS3, specially for testing different kind of garbage
collecting methods.
Bye,
Ferenc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A simple JFFS3 GC algorithm
2006-03-07 11:04 ` Ferenc Havasi
@ 2006-03-07 11:24 ` Artem B. Bityutskiy
2006-03-07 11:26 ` Artem B. Bityutskiy
0 siblings, 1 reply; 7+ messages in thread
From: Artem B. Bityutskiy @ 2006-03-07 11:24 UTC (permalink / raw)
To: Ferenc Havasi; +Cc: Artem B. Bityutskiy, linux-mtd
On Tue, 2006-03-07 at 12:04 +0100, Ferenc Havasi wrote:
> If we don't work with regions smaller than 256K, than a size of the map
> of a 16G flash is about 786K, which I think is still OK, and also can be
> cached.
Providing this number is correct, indiid, not too much.
> It is stored on the flash somewhere (its position is in the superblock),
> and the changes are logged into a separated journal. When this journal
> is fulled, the new version of map will be written out. If the file
> system is mounted the stored map will be loaded and the events stored in
> the journal are replayed.
Hmm. Could you please add more detailed description to your document
about how we could maintain this map on flash, that journal, etc?
> Anyway, we don't insist on this algorithm, it was only an idea, maybe
> not usefull. We've started to implement a simplified user space
> prototype of JFFS3, specially for testing different kind of garbage
> collecting methods.
>
Cool!
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A simple JFFS3 GC algorithm
2006-03-07 11:24 ` Artem B. Bityutskiy
@ 2006-03-07 11:26 ` Artem B. Bityutskiy
0 siblings, 0 replies; 7+ messages in thread
From: Artem B. Bityutskiy @ 2006-03-07 11:26 UTC (permalink / raw)
To: Ferenc Havasi; +Cc: linux-mtd
On Tue, 2006-03-07 at 14:24 +0300, Artem B. Bityutskiy wrote:
> Providing this number is correct, indiid, not too much.
I meant "indeed" :-)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-03-07 11:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 10:47 A simple JFFS3 GC algorithm Ferenc Havasi
2006-02-21 12:04 ` Artem B. Bityutskiy
2006-03-06 18:19 ` Artem B. Bityutskiy
2006-03-07 7:16 ` Artem B. Bityutskiy
2006-03-07 11:04 ` Ferenc Havasi
2006-03-07 11:24 ` Artem B. Bityutskiy
2006-03-07 11:26 ` Artem B. Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox