arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.10252cs.SE
收藏

eWAPA:一种基于eBPF的面向WebAssembly运行时的WASI性能分析框架

eWAPA: An eBPF-based WASI Performance Analysis Framework for WebAssembly Runtimes

Chenxi Mao, Yuxin Su, Shiwen Shan, Dan Li

AI总结:

针对现有研究对WebAssembly运行时中WASI实现性能分析不足的问题,提出基于eBPF的WASI性能分析框架eWAPA,可采集多类I/O负载下的关键性能指标,分析I/O交互性能与异常成因,指导运行时及WASI的优化。

摘要:

WebAssembly(Wasm)是一种可在现代浏览器中运行的低级字节码格式。随着独立运行时的发展以及WebAssembly系统接口(WebAssembly System Interface,WASI)的完善,Wasm进一步为服务端应用提供了更完善的沙箱运行时体验,有效拓展了其应用场景。然而,不同运行时的WASI实现存在差异,欠佳的接口实现会导致运行时与操作系统交互过程中出现性能下降。现有研究主要聚焦于运行时的整体性能评估,针对WASI实现的研究相对匮乏。为解决这一问题,我们提出了一种基于eBPF的WASI性能分析框架eWAPA。该框架采集不同I/O负载条件下运行时的关键性能指标,例如总执行时间、启动时间、WASI执行时间以及系统调用时间,能够全面分析运行时与操作系统进行I/O交互的性能。此外,我们针对两起特定的WASI性能异常背后的成因进行了详细分析。这些分析结果将为独立运行时与WASI实现的优化提供指导,提升其运行效率。

英文摘要:

WebAssembly (Wasm) is a low-level bytecode format that can run in modern browsers. With the development of standalone runtimes and the improvement of the WebAssembly System Interface (WASI), Wasm has further provided a more complete sandboxed runtime experience for server-side applications, effectively expanding its application scenarios. However, the implementation of WASI varies across different runtimes, and suboptimal interface implementations can lead to performance degradation during interactions between the runtime and the operating system. Existing research mainly focuses on overall performance evaluation of runtimes, while studies on WASI implementations are relatively scarce. To tackle this problem, we propose an eBPF-based WASI performance analysis framework. It collects key performance metrics of the runtime under different I/O load conditions, such as total execution time, startup time, WASI execution time, and syscall time. We can comprehensively analyze the performance of the runtime's I/O interactions with the operating system. Additionally, we provide a detailed analysis of the causes behind two specific WASI performance anomalies. These analytical results will guide the optimization of standalone runtimes and WASI implementations, enhancing their efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑