“You should read Engineering Record And Replay For Deployability so you don't need to speculate.”
Engineering Record And Replay For Deployability: Extended Technical Report
rr:纯用户态、低开销的程序执行记录与回放系统的设计与实现
作者提出并实现了 rr,一个完全运行在用户态、使用现成硬件、编译器、运行时和操作系统的记录与回放系统,避免了录制整机虚拟机、修改内核或全面插桩等做法。只要 CPU 和操作系统满足若干不太显然的约束(现代 Intel CPU 与 Linux 恰好满足),rr 就能以较低开销记录并回放低并行度的真实负载,并已成为实际使用的逆向执行调试器。文中还给出性能评估,并指出对硬件和操作系统设计的要求。
每当有人问 rr 如何让多线程程序可确定地重放、如何只记录外部输入、为何开销很低,评论者就指向这份技术报告作为权威解释。
HN 书评
推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及“The full answer is well described in Engineering Record And Replay For Deployability which I'll quote here:”
“It's very well documented in their paper: Engineering Record And Replay For Deployability: Extended Technical Report[2].”
“Engineering Record And Replay For Deployability has more details.”
“rr has an "extended technical report" at Engineering Record And Replay For Deployability which explains the principles it uses.”
“edit: The technical report says that they deterministically schedule threads:”
看全部 10 条 →
“By capturing all external inputs to application, it can replay it many times and results will be always identical.”
“For many workloads the major unavoidable cost is context switching.”
“I believe I read it in the Extended Technical Report from 2017”
“The details about rr are here”
- Engineering Record and Replay for Deployability: Extended Technical Report ↗robin_reala · 2017-05-18 · 1 分
- Engineering Record and Replay(rr) for Deployability Extended Technical Report ↗ahiknsr · 2020-06-18 · 3 分