Skip to main content
QUICK REVIEW

[Paper Review] Don't Persist All : Efficient Persistent Data Structures

Pratyush Mahapatra, Mark D. Hill|arXiv (Cornell University)|May 29, 2019
Parallel Computing and Optimization TechniquesComputer Science8 references9 citations
TL;DR

This paper proposes a partly persistent approach to data structures in persistent memory, where only essential data fields (e.g., next pointers in a linked list) are persisted, while redundant fields (e.g., prev pointers) are reconstructed after a crash. By reducing the number of required flushes, the method achieves up to 165% performance speedup on flush-dominated workloads, with average improvements of 15% over full persistence.

ABSTRACT

Data structures used in software development have inbuilt redundancy to improve software reliability and to speed up performance. Examples include a Doubly Linked List which allows a faster deletion due to the presence of the previous pointer. With the introduction of Persistent Memory, storing the redundant data fields into persistent memory adds a significant write overhead, and reduces performance. In this work, we focus on three data structures - Doubly Linked List, B+Tree and Hashmap, and showcase alternate partly persistent implementations where we only store a limited set of data fields to persistent memory. After a crash/restart, we use the persistent data fields to recreate the data structures along with the redundant data fields. We compare our implementation with the base implementation and show that we achieve speedups around 5-20% for some data structures, and up to 165% for a flush-dominated data structure.

Motivation & Objective

  • To reduce the performance overhead caused by frequent cache flushes in persistent memory systems.
  • To explore whether persisting only essential data fields instead of all redundant fields improves performance in persistent data structures.
  • To design efficient reconstruction algorithms that rebuild redundant fields in volatile memory after system restarts.
  • To evaluate the performance impact of selective persistence on common data structures like doubly linked lists, B+Trees, and hashmaps.
  • To demonstrate that minimizing persistent writes can significantly improve application performance without sacrificing correctness or reliability.

Proposed method

  • Only critical data fields—such as the 'next' pointer in a doubly linked list—are persisted to non-volatile memory, while redundant fields like 'prev' are not.
  • After a crash, the system reconstructs the full data structure in volatile memory using only the persisted fields, leveraging structural invariants of the data structure.
  • The reconstruction process is optimized for performance, with varying times depending on data structure complexity (e.g., 2 seconds for a 1.2 GB linked list, 7 seconds for a similar-sized hashmap).
  • The approach uses a two-phase design: operations occur in volatile memory and are only flushed to persistent memory when necessary, minimizing persistent writes.
  • The implementation uses memory fences and cache flushes selectively, only on essential data fields, reducing overall flush overhead.
  • The system includes correctness checks to ensure flushes target only persistent memory regions and to validate recovery after injected faults.

Experimental results

Research questions

  • RQ1Can reducing the number of persisted data fields in data structures lead to measurable performance improvements in persistent memory systems?
  • RQ2How does selective persistence affect the performance of common data structures like linked lists, B+Trees, and hashmaps under flush-heavy workloads?
  • RQ3What is the performance overhead of reconstructing redundant data fields in volatile memory after a crash, and can it be kept low enough to justify reduced persistent writes?
  • RQ4How does data alignment affect the performance of flush operations in persistent memory, especially when reusing the same cache line?
  • RQ5To what extent can performance gains be achieved by minimizing flushes without compromising data consistency or correctness?

Key findings

  • The partly persistent approach achieved an average performance speedup of 15% over a naive full-persistence implementation.
  • For flush-dominated workloads, the method achieved up to 165% performance improvement by drastically reducing the number of required flushes.
  • Reconstruction of a 1.2 GB hashmap took 7 seconds, while a similar-sized linked list was reconstructed in 2 seconds, indicating reconstruction time is data-structure-dependent.
  • Non-aligned data flushes caused a 61.3% performance slowdown compared to aligned 64-byte flushes, highlighting the importance of cache-line alignment in persistent memory access.
  • The approach maintained correctness under fault injection: injected bugs before flushes were successfully recovered using the reconstruction mechanism.
  • The performance gains were most significant in workloads with high write and flush frequency, where reducing persistent writes had the largest impact.

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.