Memory deduplication for serverless computing with Medes
Divyanshu Saxena, Tao Ji, Arjun Singhvi, Junaid Khalid, Aditya Akella
Abstract
Serverless platforms today impose rigid trade-offs between resource use and user-perceived performance. Limited controls, provided via toggling sandboxes between warm and cold states and keep-alives, force operators to sacrifice significant resources to achieve good performance. We present a serverless framework, Medes, that breaks the rigid trade-off and allows operators to navigate the trade-off space smoothly. Medes leverages the fact that the warm sandboxes running on serverless platforms have a high fraction of duplication in their memory footprints. We exploit these redundant chunks to develop a new sandbox state, called a dedup state, that is more memory-efficient than the warm state and faster to restore from than the cold state. We develop novel mechanisms to identify memory redundancy at minimal overhead while ensuring that the dedup containers' memory footprint is small. Finally, we develop a simple sandbox management policy that exposes a narrow, intuitive interface for operators to trade-off performance for memory by jointly controlling warm and dedup sandboxes. Detailed experiments with a prototype using real-world serverless workloads demonstrate that Medes can provide up to 1×-2.75× improvements in the end-to-end latencies. The benefits of Medes are enhanced in memory pressure situations, where Medes can provide up to 3.8× improvements in end-to-end latencies. Medes achieves this by reducing the number of cold starts incurred by 10--50% against the state-of-the-art baselines.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
16 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMs cites Firecracker: Lightweight Virtualization for Serverless Applications
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMs cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and Sharing cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and Sharing cites FaasCache: keeping serverless computing alive with greedy-dual caching
- RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and Sharing cites Firecracker: Lightweight Virtualization for Serverless Applications
- RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and Sharing cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- FaasCache: keeping serverless computing alive with greedy-dual caching cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- FaasCache: keeping serverless computing alive with greedy-dual caching cites Firecracker: Lightweight Virtualization for Serverless Applications
- FaasCache: keeping serverless computing alive with greedy-dual caching cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Serialization/Deserialization-free State Transfer in Serverless Workflows cites Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
- Serialization/Deserialization-free State Transfer in Serverless Workflows cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Serialization/Deserialization-free State Transfer in Serverless Workflows cites No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing
- No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing cites Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
- No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing cites FaasCache: keeping serverless computing alive with greedy-dual caching
- No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing cites Firecracker: Lightweight Virtualization for Serverless Applications
- No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- BlitzScale: Fast and Live Large Model Autoscaling with O(1) Host Caching cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- BlitzScale: Fast and Live Large Model Autoscaling with O(1) Host Caching cites No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing
Cited by top-tier papers16
- No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless ComputingXingda Wei, Fangming Lu, Tianxia Wang, Jinyu Gu et al.OSDI 2023 · 78 citations
- RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and SharingHanfei Yu, Rohan Basu Roy, Christian Fontenot, Devesh Tiwari et al.ASPLOS 2024 · 69 citations
- Serialization/Deserialization-free State Transfer in Serverless WorkflowsFangming Lu, Xingda Wei, Zhuobin Huang, Rong Chen et al.EuroSys 2024 · 31 citations
- BlitzScale: Fast and Live Large Model Autoscaling with O(1) Host CachingDingyan Zhang, Haotian Wang, Yang Liu, Xingda Wei et al.OSDI 2025 · 29 citations
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMsBenjamin Holmes, Jason Waterman, Dan WilliamsASPLOS 2024 · 14 citations
Builds on7
- Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud ProviderMohammad Shahrad, Rodrigo Fonseca, Iñigo Goiri, Gohar Irfan Chaudhry et al.USENIX ATC 2020 · 946 citations
- Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang et al.ASPLOS 2020 · 280 citations
- FaasCache: keeping serverless computing alive with greedy-dual cachingAlexander Fuerst, Prateek SharmaASPLOS 2021 · 223 citations
- Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservicesZhipeng Jia, Emmett WitchelASPLOS 2021 · 218 citations
- Firecracker: Lightweight Virtualization for Serverless ApplicationsAlexandru Agache, Marc Brooker, Alexandra Iordache, Anthony Liguori et al.NSDI 2020 · 197 citations
Related papers
- MXFaaS: Resource Sharing in Serverless Environments for Parallelism and EfficiencyJovan Stojkovic, Tianyin Xu, Hubertus Franke, Josep TorrellasISCA 2023 · 39 citations
- Concurrency-Informed Orchestration for Serverless FunctionsQichang Liu, Yue Cheng, Haiying Shen, Ao Wang et al.ASPLOS 2025 · 7 citations
- A Secure, Fast, and Resource-Efficient Serverless Platform with Function REWINDJaehyun Song, Bumsuk Kim, Minwoo Kwak, Byoungyoung Lee et al.USENIX ATC 2024 · 5 citations
- TrEnv: Transparently Share Serverless Execution Environments Across Different Functions and NodesJialiang Huang, Mingxing Zhang, Teng Ma, Zheng Liu et al.SOSP 2024 · 14 citations
- Lukewarm serverless functions: characterization and optimizationDavid Schall, Artemiy Margaritov, Dmitrii Ustiugov, Andreas Sandberg et al.ISCA 2022 · 36 citations
