Fork in the Road: Reflections and Optimizations for Cold Start Latency in Production Serverless Systems
Xiaohu Chai, Tianyu Zhou, Keyang Hu, Jianfeng Tan, Tiwei Bie, Anqi Shen, Dawei Shen, Qi Xing, Shun Song, Tongkai Yang, Le Gao, Feng Yu
摘要
Serverless computing has seen widespread adoption in public cloud environments. However, it continues to suffer from long cold start latency, which remains a key performance bottleneck. We have conducted an in-depth investigation of existing cold start optimizations and evaluated their effectiveness in large-scale industrial deployments. Our study reveals several common limitations in prior research: (1) reliance on simplified assumptions that overlook the complexities of large-scale systems; (2) a narrow focus on optimizing isolated components of the cold start process, while ignoring end-toend workflow interactions; and (3) insufficient attention to the challenges introduced by concurrent execution environments. As a result, despite incorporating prior techniques, cold start latency on the Ant Group serverless platform remains in the range of hundreds of milliseconds to several seconds. This paper identifies three previously overlooked sources of latency: (1) control path latency, stemming from interactions within the serverless runtime; (2) resource contention latency, arising under high concurrency and sustained execution; and
(3) user code initialization latency, which reflects the trade-off between resource efficiency and startup performance. To address these challenges, we propose a suite of novel techniques that overcome key limitations in existing approaches. These techniques are designed to be both adaptable to real-world workloads and scalable to large deployments. Our system, AFaaS (short for Ant FaaS), reduces cold start latency to the millisecond level. AFaaS has been deployed in production for over 18 months and has consistently demonstrated stable performance at scale.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- How Soon is Now? Preloading Images for Virtual Disks with ThinkAhead 引用了 FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function Compute
- How Soon is Now? Preloading Images for Virtual Disks with ThinkAhead 引用了 SEUSS: skip redundant paths to make serverless fast
- FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function Compute 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function Compute 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function Compute 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- Rethinking Process Snapshots for Near-Warm Serverless Cold Starts 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- Rethinking Process Snapshots for Near-Warm Serverless Cold Starts 引用了 FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function Compute
- Rethinking Process Snapshots for Near-Warm Serverless Cold Starts 引用了 SEUSS: skip redundant paths to make serverless fast
- Rethinking Process Snapshots for Near-Warm Serverless Cold Starts 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Rethinking Process Snapshots for Near-Warm Serverless Cold Starts 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- 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
- KUBEDIRECT: Unleashing the Full Power of the Cluster Manager for Serverless Computing 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- KUBEDIRECT: Unleashing the Full Power of the Cluster Manager for Serverless Computing 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
引用它的顶会 Paper4
- GPU Checkpoint/Restore Made Fast and LightweightShaoxun Zeng, Tingxu Ren, Jiwu Shu, Youyou LuFAST 2026 · 5 次引用
- How Soon is Now? Preloading Images for Virtual Disks with ThinkAheadXinqi Chen, Yu Zhang, Erci Xu, Changhong Wang 等FAST 2026 · 1 次引用
- Rethinking Process Snapshots for Near-Warm Serverless Cold StartsBen Holmes, Baltasar Dinis, Lana Honcharuk, Adam Belay 等OSDI 2026
- KUBEDIRECT: Unleashing the Full Power of the Cluster Manager for Serverless ComputingSheng Qi, Zhiquan Zhang, Xuanzhe Liu, Xin JinNSDI 2026
它引用的 Paper34
- 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 次引用
- FaaSNet: Scalable and Fast Provisioning of Custom Serverless Container Runtimes at Alibaba Cloud Function ComputeAo Wang, Shuai Chang, Huangshi Tian, Hongqi Wang 等USENIX ATC 2021 · 171 次引用
- SEUSS: skip redundant paths to make serverless fastJames Cadden, Thomas Unger, Yara Awad, Han Dong 等EuroSys 2020 · 156 次引用
相关 Paper
- SPES: Towards Optimizing Performance-Resource Trade-Off for Serverless FunctionsCheryl Lee, Zhouruixin Zhu, Tianyi Yang, Yintong Huo 等ICDE 2024 · 13 次引用
- HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public CloudsChiheng Lou, Sheng Qi, Chao Jin, Dapeng Nie 等NSDI 2026 · 22 次引用
- λ-trim: Optimizing Function Initialization in Serverless Applications With Cost-driven DebloatingXuting Liu, Spyros Pavlatos, Yuhao Liu, Vincent LiuASPLOS 2025
- Serverless Cold Starts and Where to Find ThemArtjom Joosen, Ahmed Hassan, Martin Asenov, Rajkarn Singh 等EuroSys 2025 · 30 次引用
- XFaaS: Hyperscale and Low Cost Serverless Functions at MetaAlireza Sahraei, Soteris Demetriou, Amirali Sobhgol, Haoran Zhang 等SOSP 2023 · 32 次引用
