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

Chenxi Mao, Yuxin Su, Shiwen Shan, Dan Li
{"title":"eWAPA: An eBPF-based WASI Performance Analysis Framework for WebAssembly Runtimes","authors":"Chenxi Mao, Yuxin Su, Shiwen Shan, Dan Li","doi":"arxiv-2409.10252","DOIUrl":null,"url":null,"abstract":"WebAssembly (Wasm) is a low-level bytecode format that can run in modern\nbrowsers. With the development of standalone runtimes and the improvement of\nthe WebAssembly System Interface (WASI), Wasm has further provided a more\ncomplete sandboxed runtime experience for server-side applications, effectively\nexpanding its application scenarios. However, the implementation of WASI varies\nacross different runtimes, and suboptimal interface implementations can lead to\nperformance degradation during interactions between the runtime and the\noperating system. Existing research mainly focuses on overall performance\nevaluation of runtimes, while studies on WASI implementations are relatively\nscarce. To tackle this problem, we propose an eBPF-based WASI performance\nanalysis framework. It collects key performance metrics of the runtime under\ndifferent I/O load conditions, such as total execution time, startup time, WASI\nexecution time, and syscall time. We can comprehensively analyze the\nperformance of the runtime's I/O interactions with the operating system.\nAdditionally, we provide a detailed analysis of the causes behind two specific\nWASI performance anomalies. These analytical results will guide the\noptimization of standalone runtimes and WASI implementations, enhancing their\nefficiency.","PeriodicalId":501278,"journal":{"name":"arXiv - CS - Software Engineering","volume":"24 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Software Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.10252","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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.
eWAPA:基于 eBPF 的 WebAssembly 运行时 WASI 性能分析框架
WebAssembly (Wasm) 是一种可在现代浏览器中运行的低级字节码格式。随着独立运行时的发展和 WebAssembly 系统接口(WASI)的改进,Wasm 进一步为服务器端应用程序提供了更完整的沙盒运行时体验,有效地扩展了其应用场景。然而,不同运行时对 WASI 的实现各不相同,次优的接口实现可能会导致运行时与操作系统交互过程中的性能下降。现有研究主要关注运行时的整体性能评估,而对 WASI 实现的研究相对较少。为了解决这个问题,我们提出了一个基于 eBPF 的 WASI 性能分析框架。它收集了运行时在不同 I/O 负载条件下的关键性能指标,如总执行时间、启动时间、WASI 执行时间和系统调用时间。此外,我们还对两个特定的 WASI 性能异常背后的原因进行了详细分析。这些分析结果将指导独立运行时和 WASI 实现的优化,从而提高效率。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信