通过基于突变的推断调试WebAssembly运行时的性能问题
Debugging Performance Issues in WebAssembly Runtimes via Mutation-based Inference
AI总结:
本文提出WarpL方法,通过突变推断识别WebAssembly运行时性能问题的根源,成功解决12个实际问题中的10个,其中6个此前未被发现。
摘要:
WebAssembly运行时的性能调试对于确保其鲁棒性至关重要,尤其是由于性能问题频繁发生,可能显著降低托管服务的能力。许多WebAssembly运行时的性能问题源于输入Wasm程序的次优编译,现有针对应用级效率问题的调试方法不适用。本文提出WarpL,一种基于突变的方法,旨在识别导致性能问题的精确次优指令序列,从而缩小根本原因。具体而言,WarpL生成一个功能相似的突变体,其中性能问题不显现,并通过比较原始和突变程序的机器代码来隔离精确的次优指令。我们实现了WarpL作为开源工具,并在三个广泛使用的Wasm运行时上评估了12个真实世界性能问题。WarpL在12个问题中的10个中找到了确切原因。值得注意的是,我们使用WarpL成功诊断了六个此前未知的Wasmtime性能问题。
英文摘要:
Performance debugging in WebAssembly (Wasm) runtimes is essential for ensuring the robustness of Wasm, especially since performance issues have frequently occurred in Wasm runtimes, which can significantly degrade the capabilities of hosted services. Many performance issues in Wasm runtimes result from suboptimal compilation of input Wasm programs, for which existing performance debugging methods primarily designed for application-level inefficiencies are not well-suited. In this paper, we present WarpL, a novel mutation-based approach that aims to identify the exact suboptimal instruction sequences responsible for the performance issues in Wasm runtimes, thereby narrowing down the root causes. Specifically, WarpL obtains a functionally similar mutant in which the performance issue does not manifest, and isolates the exact suboptimal instructions by comparing the machine code of the original and mutated programs. We implement WarpL as an open-source tool and evaluate it on 12 real-world performance issues across three widely used Wasm runtimes. WarpL identified the exact causes in 10 out of 12 issues. Notably, we have used WarpL to successfully diagnose six previously unknown performance issues in Wasmtime.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。