Benchmarking, analysis, and optimization of serverless function snapshots
Dmitrii Ustiugov, Plamen Petrov, Marios Kogias, Edouard Bugnion, Boris Grot
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 26 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Serverless computing on heterogeneous computers 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- Serverless computing on heterogeneous computers 引用了 SEUSS: skip redundant paths to make serverless fast
- Serverless computing on heterogeneous computers 引用了 Firecracker: Lightweight Virtualization for Serverless Applications
- Serverless computing on heterogeneous computers 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Serverless computing on heterogeneous computers 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- Making Kernel Bypass Practical for the Cloud with Junction 引用了 Firecracker: Lightweight Virtualization for Serverless Applications
- Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing 引用了 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 引用了 SEUSS: skip redundant paths to make serverless fast
- Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container Sharing 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing 引用了 SEUSS: skip redundant paths to make serverless fast
- ServerlessLLM: Low-Latency Serverless Inference for Large Language Models 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- ServerlessLLM: Low-Latency Serverless Inference for Large Language Models 引用了 SEUSS: skip redundant paths to make serverless fast
- ServerlessLLM: Low-Latency Serverless Inference for Large Language Models 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- ServerlessLLM: Low-Latency Serverless Inference for Large Language Models 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- ServerlessLLM: Low-Latency Serverless Inference for Large Language Models 引用了 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 引用了 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 引用了 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 引用了 Firecracker: Lightweight Virtualization for Serverless Applications
- RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless Computing 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
引用它的顶会 Paper26
- Help Rather Than Recycle: Alleviating Cold Startup in Serverless Computing Through Inter-Function Container SharingZijun Li, Linsong Guo, Quan Chen, Jiagan Cheng 等USENIX ATC 2022 · 135 次引用
- ServerlessLLM: Low-Latency Serverless Inference for Large Language ModelsYao Fu, Leyang Xue, Yeqi Huang, Andrei-Octavian Brabete 等OSDI 2024 · 125 次引用
- RunD: A Lightweight Secure Container Runtime for High-density Deployment and High-concurrency Startup in Serverless ComputingZijun Li, Jiagan Cheng, Quan Chen, Eryu Guan 等USENIX ATC 2022 · 106 次引用
- Serverless computing on heterogeneous computersDong Du, Qingyuan Liu, Xueqiang Jiang, Yubin Xia 等ASPLOS 2022 · 68 次引用
- Making Kernel Bypass Practical for the Cloud with JunctionJoshua Fried, Gohar Irfan Chaudhry, Enrique Saurez, Esha Choukse 等NSDI 2024 · 57 次引用
它引用的 Paper6
- Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud ProviderMohammad Shahrad, Rodrigo Fonseca, Iñigo Goiri, Gohar Irfan Chaudhry 等USENIX ATC 2020 · 946 次引用
- Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 次引用
- Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang 等ASPLOS 2020 · 280 次引用
- Firecracker: Lightweight Virtualization for Serverless ApplicationsAlexandru Agache, Marc Brooker, Alexandra Iordache, Anthony Liguori 等NSDI 2020 · 197 次引用
- SEUSS: skip redundant paths to make serverless fastJames Cadden, Thomas Unger, Yara Awad, Han Dong 等EuroSys 2020 · 156 次引用
相关 Paper
- Faast: An Efficient Serverless Framework Made Snapshot-based Function Response FastYongshu Bai, Zhihui Yang, Feng GaoHPDC 2024 · 3 次引用
- Rethinking Process Snapshots for Near-Warm Serverless Cold StartsBen Holmes, Baltasar Dinis, Lana Honcharuk, Adam Belay 等OSDI 2026
- Fireworks: a fast, efficient, and safe serverless framework using VM-level post-JIT snapshotWonseok Shin, Wook-Hee Kim, Changwoo MinEuroSys 2022 · 20 次引用
- FaaSnap: FaaS made fast using snapshot-based VMsLixiang Ao, George Porter, Geoffrey M. VoelkerEuroSys 2022 · 59 次引用
- Sabre: Hardware-Accelerated Snapshot Compression for Serverless MicroVMsNikita Lazarev, Varun Gohil, James Tsai, Andy Anderson 等OSDI 2024 · 13 次引用
