轻量级用户空间记录和重放
Lightweight User-Space Record And Replay
摘要:
以低开销记录和重放程序执行的能力使许多应用成为可能,例如反向执行调试、难以再现的测试故障的调试以及对部署的系统中的故障的“黑盒”取证分析。现有的记录和重放方法依赖于记录整个虚拟机(这是重量级的),修改操作系统内核(这增加了部署和维护成本),或普遍的代码插装(这带来了显着的性能和复杂性开销)。我们研究了是否有可能建立一个实用的记录和重放系统,避免所有这些问题。答案是肯定的-如果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 rely on recording an entire virtual machine (which is heavyweight), modifying the OS kernel (which adds deployment and maintenance costs), or pervasive code instrumentation (which imposes significant performance and complexity overhead). 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 meet these constraints, although this has only become true recently. With some novel optimizations, our system RR records and replays real-world workloads with low overhead with an entirely user-space implementation running on stock hardware 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分析而来,可能存在错误,请以论文正文为准。