Skip to main content
QUICK REVIEW

[Paper Review] Pangolin: A Fault-Tolerant Persistent Memory Programming Library

Lu Zhang, Steven Swanson|arXiv (Cornell University)|Apr 22, 2019
Advanced Data Storage TechnologiesComputer Science22 citations
TL;DR

Pangolin is a fault-tolerant persistent memory programming library that provides crash consistency and protection against both media and software-induced data corruption in non-volatile main memory (NVMM). It uses a combination of per-object checksums, parity-based redundancy, and micro-buffering to enable online corruption detection and recovery with only 1% storage overhead, outperforming existing solutions like libpmemobj in fault tolerance and efficiency.

ABSTRACT

Non-volatile main memory (NVMM) allows programmers to build complex, persistent, pointer-based data structures that can offer substantial performance gains over conventional approaches to managing persistent state. This programming model removes the file system from the critical path which improves performance, but it also places these data structures out of reach of file system-based fault tolerance mechanisms (e.g., block-based checksums or erasure coding). Without fault-tolerance, using NVMM to hold critical data will be much less attractive. This paper presents Pangolin, a fault-tolerant persistent object library designed for NVMM. Pangolin uses a combination of checksums, parity, and micro-buffering to protect an application's objects from both media errors and corruption due to software bugs. It provides these protections for objects of any size and supports automatic, online detection of data corruption and recovery. The required storage overhead is small (1% for gigabyte-sized pools of NVMM). Pangolin provides stronger protection, requires orders of magnitude less storage overhead, and achieves comparable performance relative to the current state-of-the-art fault-tolerant persistent object library.

Motivation & Objective

  • To address the lack of fault tolerance in persistent object libraries for non-volatile main memory (NVMM), especially under DAX-mapped access.
  • To provide crash consistency and protection against both hardware media errors and software-induced corruption (e.g., buffer overruns).
  • To minimize storage overhead while enabling online detection and recovery of corrupted data.
  • To maintain high performance comparable to existing libraries despite added fault tolerance mechanisms.
  • To support diverse object sizes—from small cache-line objects to large multi-megabyte structures—within a unified, efficient framework.

Proposed method

  • Uses a hybrid data layout combining object-level checksums, parity-based redundancy, and micro-buffering to detect and correct corruption.
  • Employs micro-buffering to isolate object updates and prevent buffer overruns from corrupting adjacent memory, enabling early detection of programming errors.
  • Applies a novel, efficient parity updating scheme that minimizes write amplification and storage overhead.
  • Integrates with existing transactional systems like libpmemobj by extending them with fault-tolerance primitives without requiring changes to the underlying data structure design.
  • Uses SIGSEGV and SIGBUS signal interception to emulate and recover from hardware-uncorrectable media errors and software scribbles during runtime.
  • Supports online recovery by detecting corruption during normal operation and repairing it without taking the object store offline.

Experimental results

Research questions

  • RQ1Can a persistent memory library provide strong fault tolerance against both media errors and software-induced corruption with minimal performance and storage overhead?
  • RQ2How can fault tolerance be integrated into DAX-mapped, user-space persistent object libraries without relying on file system-level redundancy?
  • RQ3Can online corruption detection and recovery be achieved without sacrificing performance or requiring offline maintenance?
  • RQ4What storage-efficient redundancy scheme enables protection for arbitrary-sized objects while maintaining high performance?
  • RQ5How can micro-buffering enhance both correctness and fault tolerance in NVMM-based data structures?

Key findings

  • Pangolin achieves 1% storage overhead for fault tolerance in gigabyte-sized NVMM pools, compared to 100% in libpmemobj, significantly reducing resource costs.
  • It enables online detection and recovery of corrupted data, maintaining system availability without requiring offline repair.
  • The library successfully detects and recovers from both hardware-uncorrectable media errors and software-induced scribbles, including buffer overruns, via signal interception and micro-buffer canaries.
  • Repairing a corrupted page takes only 180 μs in a 100 GB NVMM pool with 1 GB of parity, demonstrating low recovery latency.
  • Pangolin maintains performance comparable to libpmemobj while providing stronger protection and better availability.
  • The integration with AddressSanitizer confirms compatibility with existing memory error detection tools, enhancing developer safety.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.