arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.03982cs.DCcs.PF
收藏

探讨WebAssembly在HPC中的应用

Exploring the Use of WebAssembly in HPC

Mohak Chadha, Nils Krueger, Jophin John, Anshul Jindal, Michael Gerndt, Shajulin Benedict

摘要:

基于Linux内核提供的命名空间的容器化方法在HPC社区中越来越受欢迎,既可以作为隔离应用程序的方法,也可以作为打包和分发应用程序的格式。然而,它们在HPC系统中的采用和使用面临着一些挑战。其中包括直接在HPC资源上无特权运行和构建科学应用容器映像的困难,HPC架构的异构性增加,以及访问仅在HPC系统上可用的专用网络库。基于容器的HPC应用程序开发的这些挑战与一种名为WebAssembly(Wasm)的新通用中间二进制格式所提供的几个优势密切相关。这些包括轻量级的用户空间隔离机制和跨操作系统和处理器架构的可移植性。在本文中,我们探讨了Wasm作为基于MPI的HPC应用程序的分发格式的使用。为此,我们提出了MPIWasm,一种新的Wasm嵌入器,用于基于MPI的HPC应用程序,使Wasm代码的高性能执行,具有低开销的MPI调用,并支持高性能网络互连HPC系统上存在。我们使用标准化HPC基准测试评估了MPIWasm在生产HPC系统和AWS Graviton 2节点上的性能和开销。我们的实验结果表明,MPIWasm在所有情况下都能提供具有竞争力的本机应用程序性能。此外,我们观察到Wasm二进制文件平均比不同标准化基准的静态链接二进制文件小139.5倍。

英文摘要:

Containerization approaches based on namespaces offered by the Linux kernel have seen an increasing popularity in the HPC community both as a means to isolate applications and as a format to package and distribute them. However, their adoption and usage in HPC systems faces several challenges. These include difficulties in unprivileged running and building of scientific application container images directly on HPC resources, increasing heterogeneity of HPC architectures, and access to specialized networking libraries available only on HPC systems. These challenges of container-based HPC application development closely align with the several advantages that a new universal intermediate binary format called WebAssembly (Wasm) has to offer. These include a lightweight userspace isolation mechanism and portability across operating systems and processor architectures. In this paper, we explore the usage of Wasm as a distribution format for MPI-based HPC applications. To this end, we present MPIWasm, a novel Wasm embedder for MPI-based HPC applications that enables high-performance execution of Wasm code, has low-overhead for MPI calls, and supports high-performance networking interconnects present on HPC systems. We evaluate the performance and overhead of MPIWasm on a production HPC system and AWS Graviton2 nodes using standardized HPC benchmarks. Results from our experiments demonstrate that MPIWasm delivers competitive native application performance across all scenarios. Moreover, we observe that Wasm binaries are 139.5x smaller on average as compared to the statically-linked binaries for the different standardized benchmarks.

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

↑