Fault Tolerance of Persistent Memory

2022/09/29 PM

In this article, we will list several papers on local NVM/PM fault tolerance.

note:

  • the fault tolerance in some paper may indicate crash consistency, but here we mainly focus on device failures.
  • fault tolerance across networks is not in the scope here. Related works mostly use replications, from Mojim (ASPLOS ‘15) to Rowan-KV (OSDI ‘23)

ps: quite a long time since the last update… struggling to build systems and write a paper…🥲

changelog:

  • 2/17 add Kamino-Tx
  • 2/24 add TENET

problems

Define data reliability problems on PM:

  • media errors
    • cell wear out
    • bit flip
  • software scribbles
    • bugs in firmware level
    • exposed addresses
  • crash inconsistency

ECC is only useful for small-scale media errors.

existing works

System

seems like lots of works focus on transactional persistent memory, but lib details won’t be mentioned below. check papers to know more

Replication Style

  • libpmemobj-R
    • replication across different PM devices (pm pools)
    • more details
  • Kamino-Tx (EuroSys ‘17)
    • image.png
    • Async backup to prevent additional data copy in the critical path of atomic ops.
      • only for write-intensive hot data to save some PM space
    • extend to chain replication (fault tolerance)
      • backup for crash consistency + replication for fault tolerance: merge them, and only keep backup for the head of the chain
      • to ensure the characteristic of chain replication, space cost is $(f+1+1+α)*datasize$ (note: backup and the head are in the same node)
        • 1 for recovering non-head node
        • α for backup
  • Romulus (SPAA ‘18)
    • async 2 reps for txn by only 4 fences (just like Kamino-Tx)
  • TENET (FAST ‘23)
    • TimeStone (ASPLOS ‘20)
      • MVCC (logging) to scale performance. timestamp version control, non-blocking read and etc…
        • version chain in DRAM (TLog), a compressed checkpoint version (group commit) in PM (CLog), Obj in PM (maybe stale).
        • So that recovery can use small op log (params to replay txn) to replay txn
      • [more details from GHC 6023]: “TimeStone is essentially redo log + DRAM Buffer + group commit + operation logging.
    • TENET builds on TimeStone to create protections for spatial safety & temporal safety of memory access
    • use local SSD replication:
      • sync replications: Clog and op log
      • async replications: data obj

Coding Style

  • NOVA-Fortis (SOSP ‘17) from NVSL
    • CRC32 checksums to detect errors (including silent errors unlike TENET)
    • replicated metadata
    • replicated checksums of data
    • RAID-4 style parity to hide parity bits from application’s address space
    • as NOVA is based on CoW, update is “allocates new pages, populates them with the written data, computes the checksums and parity, and finally commits the write with an atomic log appending operation
    • image.png
    • eval on PMEP: 1) the cost of checking and maintaining checksums and parity for file data incurs a steep cost for both reads and writes. 2) …
    • more details
  • Pangolin (ATC ‘19) from NVSL
    • replicated metadata
    • 1% XOR parities for 99% objects (with checksums)
    • in-place delta update data with replicated redo logging in PM
      • So Cocytus (FAST ‘16)…
    • Adler32 for incremental checksums
    • build a lib like libpmemobj on Opatne PM
    • Concurrent updating of data is not supported, but concurrent updating of parity is supported (data in the same stripe but not in the same txn)
      • atomic XOR is a simple solution but cannot be vectorized, on the other hand, vectorized XOR needs range locks => hybrid approach on an 8KB threshold

        but page size is 4KB?

    • image.png
    • more details
  • Vilamb (arXiv ‘20) from Rajat Kateja, Andy Pavlo. (also named ANON I guess)
    • Palingon sync-update parities -> expensive -> how to loosen guarantee?
    • two background threads for async: one for check parities, and one for update. pros:
      1. checksums are in page granularity -> read amplification. async process can merge several ops to save BW.
      2. utilize wasted “dirty” bits in the page table
    • rich experiments but on emulated NVM
    • more details

Architecture

Arch papers on PM fault tolerance are usually about hacking ECC modules…

  • TVARAK (ISCA ‘20) from Rajat Kateja
    • calculating parities like Pangolin is too slow (may lead to 50% drops)
    • add a new HW controller beside LLC to offload computation (maintain parities)
    • simulation on zsim
  • Polymorphic Compressed Replication (SYSTOR ‘20)
    • for columnar storage models on hybrid memory
    • use compression to reduce writes to NVM as replications
  • ECP (ISCA ‘10)
    • Error-Correcting Pointers (ECP) to remap locations instead of ECC, for the ECC blocks wearing out problem
    • and so many works on this approach, like zombie memory, chipkill, etc. more
  • WoLFRaM (ICCD ‘20)
    • wear-leveling + fault tolerance with programming address decoder (PRAD)

questions left (or opportunities)

todo

  • LB + fault tolerance
  • fault domains level
  • real error patterns of persistent memory
  • not that ec style?
  • not that optane style?
  • only txn make sense?

Search

    Table of Contents