Repository navigation
2. A Skip List Based File System over Nor flash
Zachary edited this page Jan 6, 2017
·
8 revisions
- Pointer-Update propagation
- Garbage collection Deadlock
- Garbage collection Deadlock
- Initialization scan
- Anchored position: Worn out some block quickly
- Logical pointer: Scan on boot time
- Physical Pointers and Block Layout
- Context area
- store the object data with context
- Pointer area
- All object in the same block share the pointer area
- Ex: delete an object
- Physical Pointers and Block Layout
- Style of pointer update with new layout
- Why partition?
- Reduce mass in-pointers to number of max level of skip list
- Garbage collection and Partition
- Threads
- Carry on the level of the pointer list searching from previous block’s objects
- Previous and next block list
- Reduce the number of pointer updates to two pointer
- The two pointers also share the pointer area
- Threads
- Garbage collection
- One pointer update to previous block and next block
- Pointer Scrubbing
- Obstruct pointer propagation and garbage collection deadlock
- Not frequently involved
- Split and Merge action of Partition
- Objects only locate in one block -> Full block and need space -> split
- Need free block -> merge
- Strategy for Split and merge
- Hot/cold data control the stability of block
- Define:
- Block stability: The upper bound of the utilization of block being stable
- Stable block: The utilization of the block is less then block stability of the block
- Two operations
- decrement the block stability, when splitting or gc
- increment the block stability, when meeting aging time
- Split and Merge action of Partition
- Split policy
- Idea: Split non-stable block
- Reason: More non-stable block à hotter block à more hotter data in the block
- Algo
- Split policy
if (the block is full)
if (the block is non-stable)
split the block
if (split success)
dec block stability
else
flash has no space
else
garbage collection on the block
- Split and Merge action of Partition
- Merge policy
- Idea: Merge the least recently split and mergible blocks, and be sure the merged block is stable after merging the blocks
- Reasons:
- LRS:
- merge cold blocks
- avoid merging the same block that just has been split
- Stable after merging: avoid non-stable block after merging
- LRS:
- Algo
- Merge policy
if (no free block in system || block stability == 1)
merge action
if (merge action success)
get one free block
else
merge failed