Lune

ASPLOS2021Top-tier venue

Benchmarking, analysis, and optimization of serverless function snapshots

Dmitrii Ustiugov, Plamen Petrov, Marios Kogias, Edouard Bugnion, Boris Grot

Abstract

Serverless computing has seen rapid adoption due to its high scalability and flexible, pay-as-you-go billing model. In serverless, developers structure their services as a collection of functions, sporadically invoked by various events like clicks. High inter-arrival time variability of function invocations motivates the providers to start new function instances upon each invocation, leading to significant cold-start delays that degrade user experience. To reduce cold-start latency, the industry has turned to snapshotting, whereby an image of a fully-booted function is stored on disk, enabling a faster invocation compared to booting a function from scratch.

This work introduces vHive, an open-source framework for serverless experimentation with the goal of enabling researchers to study and innovate across the entire serverless stack. Using vHive, we characterize a state-of-the-art snapshot-based serverless infrastructure, based on industry-leading Containerd orchestration framework and Firecracker hypervisor technologies. We find that the execution time of a function started from a snapshot is 95% higher, on average, than when the same function is memoryresident. We show that the high latency is attributable to frequent page faults as the function's state is brought from disk into guest memory one page at a time. Our analysis further reveals that functions access the same stable working set of pages across different invocations of the same function. By leveraging this insight, we build REAP, a light-weight software mechanism for serverless hosts that records functions' stable working set of guest memory pages and proactively prefetches it from disk into memory. Compared to baseline snapshotting, REAP slashes the cold-start delays by 3.7×, on average.

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.

26 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Serverless computing on heterogeneous computers cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Serverless computing on heterogeneous computers cites SEUSS: skip redundant paths to make serverless fast
  • Serverless computing on heterogeneous computers cites Firecracker: Lightweight Virtualization for Serverless Applications
  • Serverless computing on heterogeneous computers cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Serverless computing on heterogeneous computers cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Making Kernel Bypass Practical for the Cloud with Junction cites Firecracker: Lightweight Virtualization for Serverless Applications
  • Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing cites SEUSS: skip redundant paths to make serverless fast
  • Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing cites SEUSS: skip redundant paths to make serverless fast
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites SEUSS: skip redundant paths to make serverless fast
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless Computing
  • RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless Computing cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless Computing cites Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing
  • RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless Computing cites Firecracker: Lightweight Virtualization for Serverless Applications
  • RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless Computing cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers26

  1. Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container SharingZijun Li, Linsong Guo, Quan Chen, Jiagan Cheng et al.USENIX ATC 2022 · 135 citations
  2. ServerlessLLM: Low-Latency Serverless Inference for Large Language ModelsYao Fu, Leyang Xue, Yeqi Huang, Andrei-Octavian Brabete et al.OSDI 2024 · 125 citations
  3. RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless ComputingZijun Li, Jiagan Cheng, Quan Chen, Eryu Guan et al.USENIX ATC 2022 · 106 citations
  4. Serverless computing on heterogeneous computersDong Du, Qingyuan Liu, Xueqiang Jiang, Yubin Xia et al.ASPLOS 2022 · 68 citations
  5. Making Kernel Bypass Practical for the Cloud with JunctionJoshua Fried, Gohar Irfan Chaudhry, Enrique Saurez, Esha Choukse et al.NSDI 2024 · 57 citations

Builds on6

  1. 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
  2. Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 citations
  3. Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang et al.ASPLOS 2020 · 280 citations
  4. Firecracker: Lightweight Virtualization for Serverless ApplicationsAlexandru Agache, Marc Brooker, Alexandra Iordache, Anthony Liguori et al.NSDI 2020 · 197 citations
  5. SEUSS: skip redundant paths to make serverless fastJames Cadden, Thomas Unger, Yara Awad, Han Dong et al.EuroSys 2020 · 156 citations

Related papers

  1. Faast: An Efficient Serverless Framework Made Snapshot-based Function Response FastYongshu Bai, Zhihui Yang, Feng GaoHPDC 2024 · 3 citations
  2. Rethinking Process Snapshots for Near-Warm Serverless Cold StartsBen Holmes, Baltasar Dinis, Lana Honcharuk, Adam Belay et al.OSDI 2026
  3. Fireworks: a fast, efficient, and safe serverless framework using VM-level post-JIT snapshotWonseok Shin, Wook-Hee Kim, Changwoo MinEuroSys 2022 · 20 citations
  4. FaaSnap: FaaS made fast using snapshot-based VMsLixiang Ao, George Porter, Geoffrey M. VoelkerEuroSys 2022 · 59 citations
  5. Sabre: Hardware-Accelerated Snapshot Compression for Serverless MicroVMsNikita Lazarev, Varun Gohil, James Tsai, Andy Anderson et al.OSDI 2024 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines