public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* UBIFS in-place vs out-of-place GC
@ 2010-09-01 16:08 Russ Dill
  2010-09-02 11:45 ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Dill @ 2010-09-01 16:08 UTC (permalink / raw)
  To: Linux-MTD Mailing List

I'm doing a bit of research on UBIFS and something I read from a few
sources has me confused regarding garbage collection:

http://osl.sed.hu/~havasi/ubifs/#gc

>> Out-place mode:
>>
>> This mode deletes the active nodes from the tree and inserts them
>> again into a new location. Because of the wandering algorithm it
>> makes dirty nodes as well. After garbage collection, it can be
>> possible that an erase block has more dirty space created than freed
>> up.In-place mode:
>>
>> This method copies the active nodes into an empty erase block
>> and creates a displacement table to its beginning. Afterwards, it
>> logically swaps these two erase blocks, so the active nodes will
>> be accessible at the same place as before, thus modifying other
>> parts of the tree is not necessary. A big advantage of this method
>> is that it can convert all dirty space in the erase block to free space.
>> Its disadvantage is that it can cause fragmentation.
>>
>> The default GC mode of the UBIFS is in-place mode and it will
>> use a heuristic method to detect fragmentation and call out-place
>> mode.

Looking at the source, I can find the code that does the out of place
updates, but I can't find any references to in place updates or
displacement tables. What gives?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-02 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 16:08 UBIFS in-place vs out-of-place GC Russ Dill
2010-09-02 11:45 ` Artem Bityutskiy
2010-09-02 23:06   ` Russ Dill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox