Skip to main content
QUICK REVIEW

[Paper Review] Distributed Order Recording Techniques for Efficient Record-and-Replay of Multi-threaded Programs

Xiang Fu, Shiman Meng|arXiv (Cornell University)|Feb 17, 2026
Parallel Computing and Optimization TechniquesComputer Science0 citations
TL;DR

This paper introduces Distributed Clock (DC) and Distributed Epoch (DE) recording to efficiently record and replay OpenMP programs by reducing synchronization and I/O overhead, achieving up to 5.6x replay speedup and up to 29% lower record overhead in HPC benchmarks; it also integrates ReOMP with ReMPI for MPI+OpenMP workloads.

ABSTRACT

After all these years and all these other shared memory programming frameworks, OpenMP is still the most popular one. However, its greater levels of non-deterministic execution makes debugging and testing more challenging. The ability to record and deterministically replay the program execution is key to address this challenge. However, scalably replaying OpenMP programs is still an unresolved problem. In this paper, we propose two novel techniques that use Distributed Clock (DC) and Distributed Epoch (DE) recording schemes to eliminate excessive thread synchronization for OpenMP record and replay. Our evaluation on representative HPC applications with ReOMP, which we used to realize DC and DE recording, shows that our approach is 2-5x more efficient than traditional approaches that synchronize on every shared-memory access. Furthermore, we demonstrate that our approach can be easily combined with MPI-level replay tools to replay non-trivial MPI+OpenMP applications. We achieve this by integrating oolname into ReMPI, an existing scalable MPI record-and-replay tool, with only a small MPI-scale-independent runtime overhead.

Motivation & Objective

  • Address non-determinism in hybrid MPI+OpenMP HPC applications complicating debugging and testing.
  • Reduce overheads in record-and-replay of shared-memory accesses without sacrificing replay correctness.
  • Develop scalable techniques that decouple per-thread recording from global synchronization and enable parallel I/O.
  • Demonstrate compatibility and practicality by integrating with existing MPI record-and-replay tools (ReMPI) and evaluating on real HPC workloads.

Proposed method

  • Instrument shared-memory regions with gate_in/gate_out to capture access order during record/replay.
  • Replace serialized thread ID recording with Distributed Clock (DC) recording to log when threads enter shared-memory regions using per-thread clock files.
  • Introduce Distributed Epoch (DE) recording to allow concurrent loads/stores by grouping instructions into epochs under defined parallel conditions, reducing serialization.
  • Define Condition 1 to allow certain reorderings of loads/stores (loads can swap; stores can interchange under specific patterns) while preserving replay correctness.
  • Compute epochs from clock values and memory-history to enable parallel replay of load/store sequences, while maintaining correctness.
  • Implement ReOMP as an OpenMP-focused record-and-replay tool; instrument OpenMP constructs via Clang/LLVM and integrate with libreomp.so for gate_in/out handling.
Figure 1 : The $\tt{gate\_in/out}$ functions
Figure 1 : The $\tt{gate\_in/out}$ functions

Experimental results

Research questions

  • RQ1How can we reduce the overhead of recording shared-memory accesses in OpenMP programs during record-and-replay?
  • RQ2Can we safely relax serialization and synchronization in replay without compromising determinism and correctness for common OpenMP patterns?
  • RQ3What are the performance benefits of DC and DE approaches compared to traditional serialized thread ID recording?
  • RQ4How well do DC/DE techniques integrate with MPI-level replay tools to support MPI+OpenMP workloads?

Key findings

  • DC/DE recording substantially reduce I/O and inter-thread synchronization overhead compared to serialized thread ID recording.
  • DE recording enables concurrent execution of certain loads/stores under Condition 1, reducing replay overhead.
  • Experiments show up to 29% overhead reduction in record runs and up to approximately 5.6x replay speedup for a real HPC application (HACC) with 112 threads.
  • ST recording incurs more inter-thread communication during replay than DC/DE, especially as thread counts grow across NUMA domains.
  • DC recording enables parallel I/O and overlapping of I/O with computation, improving throughput over ST in many cases.
  • DE recording provides additional replay performance gains in data-race-prone or benign data-race scenarios by allowing epoch-level parallelism.
Figure 2 : Design overview
Figure 2 : Design overview

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.