Skip to main content
QUICK REVIEW

[论文解读] Pangolin: A Fault-Tolerant Persistent Memory Programming Library

Lu Zhang, Steven Swanson|arXiv (Cornell University)|Apr 22, 2019
Advanced Data Storage TechnologiesComputer Science被引用 22
一句话总结

Pangolin 是一个容错持久内存编程库,提供崩溃一致性,并能抵御非易失性主内存(NVMM)中的介质错误和软件引发的数据损坏。它结合了每对象校验和、基于奇偶校验的冗余以及微缓冲机制,仅以 1% 的存储开销实现在线数据损坏检测与恢复,其容错性和效率优于现有方案(如 libpmemobj)。

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.

研究动机与目标

  • 解决非易失性主内存(NVMM)持久对象库在 DAX 映射访问下缺乏容错能力的问题。
  • 提供崩溃一致性,并抵御硬件介质错误和软件引发的损坏(例如缓冲区溢出)。
  • 在实现在线损坏检测与恢复的同时,将存储开销降至最低。
  • 在增加容错机制的前提下,保持与现有库相当的高性能。
  • 在一个统一且高效的框架中,支持从小到大(从缓存行大小对象到数兆字节结构)的多样化对象尺寸。

提出的方法

  • 采用混合数据布局,结合对象级校验和、基于奇偶校验的冗余以及微缓冲机制,实现损坏的检测与纠正。
  • 使用微缓冲机制隔离对象更新,防止缓冲区溢出污染相邻内存,从而实现对编程错误的早期检测。
  • 应用一种新颖且高效的奇偶校验更新方案,最大限度减少写放大和存储开销。
  • 通过扩展现有事务系统(如 libpmemobj)并引入容错原语,实现与底层数据结构设计无关的集成,无需修改其设计。
  • 通过拦截 SIGSEGV 和 SIGBUS 信号,实现在运行时对硬件不可纠正介质错误和软件误写操作的模拟与恢复。
  • 通过在正常操作期间检测损坏并在不使对象存储离线的情况下修复,实现在线恢复。

实验结果

研究问题

  • RQ1能否在仅付出极低性能和存储开销的前提下,使持久内存库对介质错误和软件引发的损坏提供强容错能力?
  • RQ2如何在不依赖文件系统级冗余的前提下,将容错机制集成到 DAX 映射的用户空间持久对象库中?
  • RQ3能否在不牺牲性能或无需离线维护的前提下,实现在线损坏检测与恢复?
  • RQ4何种存储高效的冗余方案可为任意大小的对象提供保护,同时保持高性能?
  • RQ5微缓冲机制如何提升基于 NVMM 的数据结构在正确性和容错性方面的表现?

主要发现

  • Pangolin 在千兆字节规模的 NVMM 存储池中仅以 1% 的存储开销实现容错,相比 libpmemobj 的 100%,显著降低了资源成本。
  • 它支持在系统运行期间检测并恢复损坏数据,无需离线修复,从而保持系统可用性。
  • 该库通过信号拦截和微缓冲哨兵机制,成功检测并恢复了硬件不可纠正的介质错误和软件引发的误写(包括缓冲区溢出)。
  • 在 100 GB 的 NVMM 存储池中,使用 1 GB 奇偶校验数据修复损坏页仅需 180 μs,表明恢复延迟极低。
  • Pangolin 在提供更强保护和更高可用性的同时,性能与 libpmemobj 相当。
  • 与 AddressSanitizer 的集成验证了其与现有内存错误检测工具的兼容性,进一步提升了开发人员的安全保障。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。