Skip to content

2. A Skip List Based File System over Nor flash

Zachary edited this page Jan 6, 2017 · 8 revisions

Fundamental Issue

  • Pointer-Update propagation
alt text
  • Garbage collection Deadlock
    • Garbage collection Deadlock
alt text
  • Initialization scan
    • Anchored position: Worn out some block quickly
    • Logical pointer: Scan on boot time
alt text

A Skip List Implementation

  • 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
alt text
  • Physical Pointers and Block Layout
    • Style of pointer update with new layout
alt text
  • Why partition?
    • Reduce mass in-pointers to number of max level of skip list
alt text
  • 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
alt text
  • Garbage collection
    • One pointer update to previous block and next block
alt text
  • Pointer Scrubbing
    • Obstruct pointer propagation and garbage collection deadlock
    • Not frequently involved
alt text
  • Split and Merge action of Partition
    • Objects only locate in one block -> Full block and need space -> split
    • Need free block -> merge
alt text alt text
  • 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
alt text
  • 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
 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:
          1. merge cold blocks
          2. avoid merging the same block that just has been split
        • Stable after merging: avoid non-stable block after merging
      • Algo
 if (no free block in system || block stability == 1)
    merge action
    if (merge action success)
        get one free block
    else
        merge failed 
alt text

Clone this wiki locally