SFS: Smart OS Scheduling for Serverless Functions
摘要
Serverless computing enables a new way of building and scaling cloud applications by allowing developers to write fine-grained serverless or cloud functions. The execution duration of a cloud function is typically short-ranging from a few milliseconds to hundreds of seconds. However, due to resource contentions caused by public clouds' deep consolidation, the function execution duration may get significantly prolonged and fail to accurately account for the function's true resource usage. We observe that the function duration can be highly unpredictable with huge amplification of more than 50× for an open-source FaaS platform (OpenLambda). Our experiments show that the OS scheduling policy of cloud functions' host server can have a crucial impact on performance. The default Linux scheduler, CFS (Completely Fair Scheduler), being oblivious to workloads, frequently context-switches short functions, causing a turnaround time that is much longer than their service time.
We propose SFS (Smart Function Scheduler), which works entirely in the user space and carefully orchestrates existing Linux FIFO and CFS schedulers to approximate Shortest Remaining Time First (SRTF). SFS uses two-level scheduling that seamlessly combines a new FILTER policy with Linux CFS, to trade off increased duration of long functions for significant performance improvement for short functions. We implement SFS in the Linux user space and port it to OpenLambda. Evaluation results show that SFS significantly improves short functions' duration with a small impact on relatively longer functions, compared to CFS.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- ALPS: An Adaptive Learning, Priority OS Scheduler for Serverless Functions 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS Scheduling 引用了 ALPS: An Adaptive Learning, Priority OS Scheduler for Serverless Functions
- Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS Scheduling 引用了 Making Serverless Pay-For-Use a Reality with Leopard
- Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS Scheduling 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless Research 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless Research 引用了 FaasCache: keeping serverless computing alive with greedy-dual caching
- FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless Research 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- FaasCache: keeping serverless computing alive with greedy-dual caching 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- FaasCache: keeping serverless computing alive with greedy-dual caching 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
- EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
- EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing 引用了 FaasCache: keeping serverless computing alive with greedy-dual caching
- EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Making Serverless Pay-For-Use a Reality with Leopard 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
- Making Serverless Pay-For-Use a Reality with Leopard 引用了 FaasCache: keeping serverless computing alive with greedy-dual caching
- Making Serverless Pay-For-Use a Reality with Leopard 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
引用它的顶会 Paper5
- EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable ComputingYankai Jiang, Rohan Basu Roy, Baolin Li, Devesh TiwariSC 2024 · 14 次引用
- ALPS: An Adaptive Learning, Priority OS Scheduler for Serverless FunctionsYuqi Fu, Ruizhe Shi, Haoliang Wang, Songqing Chen 等USENIX ATC 2024 · 12 次引用
- Making Serverless Pay-For-Use a Reality with LeopardTingjia Cao, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-Dusseau, Tyler Caraza-HarterNSDI 2025 · 11 次引用
- FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless ResearchChristos Katsakioris, Chloe Alverti, Konstantinos Nikas, Dimitrios Siakavaras 等HPDC 2024 · 5 次引用
- Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS SchedulingChangyuan Lin, Yuanzhi Ma, Mohammad ShahradEuroSys 2026 · 3 次引用
它引用的 Paper12
- 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 次引用
- Borg: the next generationMuhammad Tirmazi, Adam Barker, Nan Deng, Md E. Haque 等EuroSys 2020 · 323 次引用
- Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang 等ASPLOS 2020 · 280 次引用
- FaasCache: keeping serverless computing alive with greedy-dual cachingAlexander Fuerst, Prateek SharmaASPLOS 2021 · 223 次引用
- Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservicesZhipeng Jia, Emmett WitchelASPLOS 2021 · 218 次引用
相关 Paper
- Metronome: Differentiated Delay Scheduling for Serverless FunctionsZhuangbin Chen, Juzheng Zheng, Zibin ZhengICSE 2026 · 1 次引用
- StepConf: SLO-Aware Dynamic Resource Configuration for Serverless Function WorkflowsZhaojie Wen, Yishuo Wang, Fangming LiuINFOCOM 2022 · 72 次引用
- SpecFaaS: Accelerating Serverless Applications with Speculative Function ExecutionJovan Stojkovic, Tianyin Xu, Hubertus Franke, Josep TorrellasHPCA 2023 · 16 次引用
- LaSS: Running Latency Sensitive Serverless Computations at the EdgeBin Wang, Ahmed Ali-Eldin, Prashant J. ShenoyHPDC 2021 · 74 次引用
- SEUSS: skip redundant paths to make serverless fastJames Cadden, Thomas Unger, Yara Awad, Han Dong 等EuroSys 2020 · 156 次引用
