Skip to main content
QUICK REVIEW

[Paper Review] Replay Debugging of Complex Real-Time Systems: Experiences from Two Industrial Case Studies

Daniel Sundmark, Henrik Thane|arXiv (Cornell University)|Nov 17, 2003
Real-Time Systems SchedulingComputer Science15 references15 citations
TL;DR

This paper demonstrates that deterministic replay debugging is feasible and practical for large-scale industrial real-time systems, using lightweight, system-level instrumentation on off-the-shelf RTOS without specialized hardware. Benchmarking from two case studies—industrial robot control and military radar systems—shows CPU overhead of 0.03–3.0% and memory bandwidth under 2 MB/s, proving the method is both efficient and deployable in production environments.

ABSTRACT

Deterministic replay is a method for allowing complex multitasking real-time systems to be debugged using standard interactive debuggers. Even though several replay techniques have been proposed for parallel, multi-tasking and real-time systems, the solutions have so far lingered on a prototype academic level, with very little results to show from actual state-of-the-practice commercial applications. This paper describes a major deterministic replay debugging case study performed on a full-scale industrial robot control system, as well as a minor replay instrumentation case study performed on a military aircraft radar system. In this article, we will show that replay debugging is feasible in complex multi-million lines of code software projects running on top of off-the-shelf real-time operating systems. Furthermore, we will discuss how replay debugging can be introduced in existing systems without impracticable analysis efforts. In addition, we will present benchmarking results from both studies, indicating that the instrumentation overhead is acceptable and affordable.

Motivation & Objective

  • To evaluate the feasibility of deterministic replay debugging in complex, real-world industrial real-time systems.
  • To assess the performance overhead of system-level instrumentation in full-scale software projects.
  • To demonstrate that replay debugging can be introduced without major rearchitecting or specialized hardware.
  • To validate the method's transparency and portability across different RTOS and hardware platforms.
  • To benchmark CPU and memory utilization under realistic, worst-case conditions.

Proposed method

  • Instrumentation is applied at system call, IPC, and I/O layers to ensure transparency and portability.
  • Control flow and data flow events are recorded during a reference execution using lightweight software probes.
  • Deterministic replay is enabled by replaying recorded events in a debugger environment to reproduce failures exactly.
  • Timestamping of entry and exit points measures instrumentation overhead precisely.
  • Data flow logging is performed per task or message queue, with frequency and size metrics collected.
  • Benchmarking measures CPU cycles, memory bandwidth, and utilization under worst-case scenarios.

Experimental results

Research questions

  • RQ1Can deterministic replay debugging be effectively applied to industrial-scale real-time systems with millions of lines of code?
  • RQ2What is the performance overhead of system-level instrumentation in terms of CPU and memory usage?
  • RQ3Is the instrumentation overhead acceptable for deployment in safety-critical, high-availability systems?
  • RQ4Can replay debugging be implemented without specialized hardware or compilers?
  • RQ5How does the combination of high message frequency and large data sizes affect logging overhead?

Key findings

  • The system-level control flow instrumentation introduced only 0.03–0.05% CPU overhead in both case studies.
  • Data flow instrumentation resulted in 1.9–3.0% CPU utilization, which remains within acceptable limits.
  • The ABB robotics system required 2 MB/s memory bandwidth for logging, well within available system resources.
  • The SAAB Avionics system used approximately 12–15 kB/s for both control and data flow logging, indicating low memory footprint.
  • The highest overhead was observed in a single task (3% CPU) due to high-frequency data logging with large state structures.
  • Benchmarking under worst-case conditions still showed acceptable performance, suggesting real-world deployability.

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.