[Paper Review] Non-intrusive on-the-fly data race detection using execution replay
This paper presents RecPlay, a non-intrusive, on-the-fly data race detection system for parallel programs that leverages execution replay and multilevel bitmaps with snooped matrix clocks to minimize memory overhead. By enabling continuous tracing without performance degradation, it eliminates Heisenbugs and detects genuine data races in real applications, including SPLASH-2 and Athapascan, with no code modification or recompilation.
This paper presents a practical solution for detecting data races in parallel programs. The solution consists of a combination of execution replay (RecPlay) with automatic on-the-fly data race detection. This combination enables us to perform the data race detection on an unaltered execution (almost no probe effect). Furthermore, the usage of multilevel bitmaps and snooped matrix clocks limits the amount of memory used. As the record phase of RecPlay is highly efficient, there is no need to switch it off, hereby eliminating the possibility of Heisenbugs because tracing can be left on all the time.
Motivation & Objective
- To address the challenge of detecting data races in parallel programs without introducing probe effects or requiring code changes.
- To eliminate Heisenbugs by enabling continuous, non-intrusive tracing throughout program execution.
- To reduce memory overhead in data race detection using multilevel bitmaps and snooped matrix clocks.
- To provide a practical, scalable solution for detecting data races in real-world parallel applications on shared-memory systems.
- To demonstrate the effectiveness of execution replay for on-the-fly data race detection in production environments.
Proposed method
- Uses execution replay (RecPlay) to record and replay program executions without modifying the application.
- Employs multilevel bitmaps to compactly represent memory access patterns and reduce storage overhead.
- Applies snooped matrix clocks to track causal relationships between memory accesses across threads efficiently.
- Integrates on-the-fly data race detection during replay by analyzing access order and shared memory conflicts.
- Leverages Lamport’s logical time model to ensure correct ordering of events in distributed execution traces.
- Avoids recompilation or relinking by operating at the binary level, making it transparent to the application.
Experimental results
Research questions
- RQ1Can data race detection be performed on unmodified programs with minimal performance impact?
- RQ2How can memory overhead in data race detection be minimized while maintaining accuracy?
- RQ3Can continuous tracing be sustained without introducing probe effects or Heisenbugs?
- RQ4How effective is execution replay in enabling on-the-fly detection of data races in real parallel applications?
- RQ5Can the combination of replay and efficient clocking mechanisms detect genuine data races in complex benchmarks?
Key findings
- RecPlay successfully detected genuine data races in the SPLASH-2 benchmark suite and the Athapascan parallel programming system.
- The system operates without recompilation or relinking, maintaining full transparency to the application.
- The use of multilevel bitmaps and snooped matrix clocks significantly reduces memory usage during trace recording and replay.
- Continuous tracing is feasible due to the high efficiency of the record phase, eliminating the need to disable tracing and thus preventing Heisenbugs.
- The approach achieves on-the-fly detection with minimal probe effect, enabling reliable detection in production-like environments.
- The method effectively distinguishes data races from intentional synchronization races, focusing only on unintended race conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.