Skip to main content
QUICK REVIEW

[Paper Review] Persistent Memory Transactions

Virendra J. Marathe, Achin Mishra|arXiv (Cornell University)|Mar 9, 2018
Distributed systems and fault toleranceComputer Science20 references16 citations
TL;DR

This paper presents a comprehensive performance analysis of three transaction runtime systems for persistent memory—undo logging, redo logging, and copy-on-write—evaluating their trade-offs across workload access patterns, persistence domain configurations, cache locality, and bookkeeping overheads. It finds no single runtime dominates across all settings, with performance highly dependent on workload characteristics and system-level factors like persist barrier latency and memory hierarchy design.

ABSTRACT

This paper presents a comprehensive analysis of performance trade offs between implementation choices for transaction runtime systems on persistent memory. We compare three implementations of transaction runtimes: undo logging, redo logging, and copy-on-write. We also present a memory allocator that plugs into these runtimes. Our microbenchmark based evaluation focuses on understanding the interplay between various factors that contribute to performance differences between the three runtimes -- read/write access patterns of workloads, size of the persistence domain (portion of the memory hierarchy where the data is effectively persistent), cache locality, and transaction runtime bookkeeping overheads. No single runtime emerges as a clear winner. We confirm our analysis in more realistic settings of three "real world" applications we developed with our transactional API: (i) a key-value store we implemented from scratch, (ii) a SQLite port, and (iii) a persistified version of memcached, a popular key-value store. These findings are not only consistent with our microbenchmark analysis, but also provide additional interesting insights into other factors (e.g. effects of multithreading and synchronization) that affect application performance.

Motivation & Objective

  • To systematically evaluate the performance trade-offs between undo logging, redo logging, and copy-on-write transaction runtimes in persistent memory systems.
  • To analyze how workload characteristics—particularly read/write access patterns—interact with system-level factors such as persistence domain design and cache locality.
  • To develop and integrate a memory allocator optimized to reduce persist barrier overheads across all three transaction runtime models.
  • To validate microbenchmark findings in real-world applications, including a key-value store, SQLite port, and memcached persistification.
  • To provide actionable insights for system designers on selecting transaction runtimes based on workload and hardware configuration.

Proposed method

  • Design and implement three transaction runtime systems based on undo logging, redo logging, and copy-on-write semantics for persistent memory.
  • Introduce a new taxonomy of persistence domains based on hardware and software support for effective persistence in memory hierarchies.
  • Develop a memory allocator that decouples allocation tracking from transaction logs, enabling reuse across all three runtime models.
  • Optimize all runtimes to minimize the number of persist barrier instructions required per transaction commit.
  • Conduct microbenchmarking on Intel’s Software Emulation Platform across varying read/write ratios and persist barrier latencies.
  • Validate findings using three real-world applications: a custom key-value store, a ported SQLite, and a persistified memcached.

Experimental results

Research questions

  • RQ1How do different transaction runtime strategies (undo, redo, copy-on-write) perform across varying read/write access patterns in persistent memory?
  • RQ2What is the impact of persistence domain configuration on transaction runtime performance, particularly in terms of persist barrier overheads?
  • RQ3How do cache locality and transaction runtime bookkeeping overheads influence end-to-end transaction performance?
  • RQ4To what extent do real-world applications reflect the performance trends observed in microbenchmarks?
  • RQ5How do multithreading and synchronization overheads affect transaction performance in concurrent workloads?

Key findings

  • No single transaction runtime (undo, redo, or copy-on-write) consistently outperforms the others across all workloads and system configurations.
  • Copy-on-write transactions exhibit high latency due to memory allocation and copying overhead, making them unsuitable for high-throughput workloads.
  • Undo logging shows significantly higher latency in put operations (over 200 microseconds) under high write mixes, especially in multi-threaded settings like memcached.
  • Redo logging performs well in read-heavy workloads but suffers from lookup overhead in read-after-write scenarios, particularly when persist barrier latency is high.
  • Transaction performance is highly sensitive to the interplay between workload access patterns, persistence domain design, and cache locality, with no one-size-fits-all solution.
  • Real-world applications such as memcached and the key-value store confirm microbenchmark trends, revealing additional performance bottlenecks from synchronization and networking overheads.

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.