可部署性的工程记录和回放:扩展技术报告
Engineering Record And Replay For Deployability: Extended Technical Report
摘要:
以低开销记录和重放程序执行的能力使许多应用成为可能,例如反向执行调试、难以再现的测试故障的调试以及对部署的系统中的故障的“黑盒”取证分析。现有的记录和重放方法通过记录整个虚拟机(重量级)、修改操作系统内核(增加部署和维护成本)、需要普遍的代码插装(施加显著的性能和复杂性开销)或修改编译器和运行时系统(限制通用性)来限制可部署性。我们研究了是否有可能建立一个实用的记录和重放系统,避免所有这些问题。答案是肯定的--如果CPU和操作系统满足某些不明显的约束。幸运的是,现代英特尔CPU、Linux内核和用户空间框架确实满足这些限制,尽管这只是最近才成为现实。通过一些新颖的优化,我们的系统“RR”记录和重放现实世界的低并行工作负载,开销低,完全用户空间实现,使用股票硬件,编译器,运行时和操作系统。“rr”构成了在实践中有重要用途的开源反向执行调试器的基础。我们提出的设计和实施的“RR”,描述其性能的各种工作负载,并确定硬件和操作系统设计的限制,以支持我们的方法。
英文摘要:
The ability to record and replay program executions with low overhead enables many applications, such as reverse-execution debugging, debugging of hard-to-reproduce test failures, and "black box" forensic analysis of failures in deployed systems. Existing record-and-replay approaches limit deployability by recording an entire virtual machine (heavyweight), modifying the OS kernel (adding deployment and maintenance costs), requiring pervasive code instrumentation (imposing significant performance and complexity overhead), or modifying compilers and runtime systems (limiting generality). We investigated whether it is possible to build a practical record-and-replay system avoiding all these issues. The answer turns out to be yes - if the CPU and operating system meet certain non-obvious constraints. Fortunately modern Intel CPUs, Linux kernels and user-space frameworks do meet these constraints, although this has only become true recently. With some novel optimizations, our system 'rr' records and replays real-world low-parallelism workloads with low overhead, with an entirely user-space implementation, using stock hardware, compilers, runtimes and operating systems. "rr" forms the basis of an open-source reverse-execution debugger seeing significant use in practice. We present the design and implementation of 'rr', describe its performance on a variety of workloads, and identify constraints on hardware and operating system design required to support our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。