Skip to main navigation Skip to search Skip to main content

Memory Efficient WebAssembly Containers

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

7 Downloads (Pure)

Abstract

WebAssembly (Wasm) is a portable, high-performance binary instruction format originally designed for web browsers. It is rapidly gaining traction in server-side applications, including containerized environments orchestrated by Kubernetes. However, the performance impact of a widespread WebAssembly adoption in containerized environments remains unclear. Solutions relying on suboptimal WebAssembly runtimes may increase performance and memory overhead, especially in high-density deployment settings.In this paper, we explore the impact of WebAssembly runtimes on containerized application deployment in Kubernetes. Through an in-depth analysis of existing Wasm container runtimes, we identify inefficiencies in memory usage and startup times, limiting Wasm's viability in large-scale deployments. We propose a new integration of the lightweight WebAssembly Micro Runtime (WAMR) into the crun container runtime to resolve the identified inefficiencies of Wasm containers. Benchmark evaluations demonstrate that our WAMR integration reduces memory usage by 11% to 78% per container compared to existing Wasm runtimes while outperforming 4 of 6 benchmarked runtimes in container startup time. Furthermore, our integration reduces memory usage compared to Python containers by at least 16% and startup time by 3% to 18%. Our findings show that Wasm containers are a competitive alternative to traditional non-Wasm container solutions, especially in dense container deployments, and highlight the importance of runtime optimization in cloud-native environments. Our work is open-source and available at https://github.com/atlarge-research/continuum/tree/wasm.

Original languageEnglish
Title of host publication2025 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW)
Subtitle of host publication[Proceedings]
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1058-1065
Number of pages8
ISBN (Electronic)9798331526436
ISBN (Print)9798331526443
DOIs
Publication statusPublished - 2025
Event2025 IEEE International Parallel and Distributed Processing Symposium Workshops, IPDPSW 2025 - Milan, Italy
Duration: 3 Jun 20257 Jun 2025

Conference

Conference2025 IEEE International Parallel and Distributed Processing Symposium Workshops, IPDPSW 2025
Country/TerritoryItaly
CityMilan
Period3/06/257/06/25

Bibliographical note

Publisher Copyright:
© 2025 IEEE.

Keywords

  • Cloud-Native
  • Containers
  • Kubernetes
  • Memory efficiency
  • Performance
  • WebAssembly

Fingerprint

Dive into the research topics of 'Memory Efficient WebAssembly Containers'. Together they form a unique fingerprint.

Cite this