CZone: memory-efficient serverless container management with MCPV model
Chenyang WU , Zijun LI , Chuhao XU , Quan CHEN , Minyi GUO
Front. Comput. Sci. ›› 2026, Vol. 20 ›› Issue (5) : 2005105
Serverless computing usually employs secure containers, which are encapsulated within lightweight microVMs, to isolate function invocations across different tenants. For high security guarantees, such Single-Container-Per-VM (SCPV) model results in large memory waste, as each microVM includes a guestOS, even though they are identical. For memory efficiency of the secure container architecture, we advocate for the dynamic Multi-Containers-Per-VM (MCPV) model. Adopting the MCPV model, a microVM can accommodate multiple containers for the same functions, and the microVM’s memory space adjusts dynamically based on workload.
However, implementing this model necessitates efficient memory hot-plug and hot-unplug techniques. Existing methods either significantly impair function performance within containers or fail to adequately unplug all required pages. To address this challenge, we propose CZone, a dedicated memory hot-plug and hot-unplug design specifically tailored to support the dynamic MCPV model. CZone ensures that the used memory pages of a container are located in contiguous physical memory regions, with each region exclusively allocated to a single container. Experimental results demonstrate that MCPV with CZone brings an 81.81% reduction in startup latency and an 89.87% reduction in memory footprint when compared to the existing SCPV model that utilizes microVM templating, with negligible system performance impact.
serverless / function-as-a-service / secure container runtime / memory hot-plug
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
AWS Lambda. See aws.amazon.com/lambda/ website, 2024 |
| [9] |
Google Cloud Functions. See cloud.google.com/functions website, 2024 |
| [10] |
Microsoft Azure Functions. See azure.microsoft.com/en-us/services/functions website, 2024 |
| [11] |
Alibaba Function Compute. See alibabacloud.com/product/function-compute website, 2024 |
| [12] |
|
| [13] |
Kata Containers. See katacontainers.io/ website, 2024 |
| [14] |
|
| [15] |
|
| [16] |
gVisor: protecting GKE and serverless users in the real world. See cloud.google.com/blog/products/containers-kubernetes/how-gvisor-protects-google-cloud-services-from-cve-2020-14386 website, 2024 |
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
Azure Functions Traces. See github.com/Azure/AzurePublicDataset website, 2024 |
| [21] |
|
| [22] |
Lambda: the state of serverless. See www.datadoghq.com/state-of-serverless-2020/ website, 2024 |
| [23] |
Docker. See www.docker.com/ website, 2024 |
| [24] |
Linux Container Runtime. See linuxcontainers.org/ website, 2024 |
| [25] |
|
| [26] |
|
| [27] |
|
| [28] |
|
| [29] |
VirtIO Memory Ballooning. See pmhahn.github.io/virtio-balloon/ website, 2024 |
| [30] |
|
| [31] |
Introduction to ACPI based memory hot-plug. See events.static.linuxfound.org/sites/events/files/lcjp13_chen.pdf website, 2024 |
| [32] |
|
| [33] |
Memory bandwidth benchmark. See github.com/raas/mbw website, 2024 |
| [34] |
CORAL benchmark codes. See asc.llnl.gov/coral-benchmarks website, 2024 |
| [35] |
|
| [36] |
|
| [37] |
|
| [38] |
|
| [39] |
|
| [40] |
|
| [41] |
|
| [42] |
|
| [43] |
|
| [44] |
|
| [45] |
Dragonball-Sandbox. See github.com/openanolis/dragonball-sandbox website, 2024 |
| [46] |
|
| [47] |
Overview of DLPAR. See www.ibm.com/docs/sk/powerha-aix/7.2?topic=cluster-overview-dlpar-cod website, 2024 |
| [48] |
Xen Project. See xenproject.org/ website, 2024 |
| [49] |
Oracle VM VirtualBox. See www.virtualbox.org/ website, 2024 |
| [50] |
Hyper-V. See en.wikipedia.org/wiki/Hyper-V website, 2024 |
| [51] |
VMware. See www.vmware.com/ website, 2024 |
| [52] |
Du D, Yu T, Xia Y, Zang B, Yan G, Qin C, Wu Q, Chen H. Catalyzer: sub-millisecond startup for serverless computing with initialization-less booting. In: Proceedings of the 25th International Conference on Architectural Support for Programming Languages and Operating Systems. 2020, 467−481 |
| [53] |
|
Higher Education Press
/
| 〈 |
|
〉 |