Lune

SC2022Top-tier venue

SFS: Smart OS Scheduling for Serverless Functions

Yuqi Fu, Li Liu, Haoliang Wang, Yue Cheng, Songqing Chen

Abstract

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.

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.

5 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

  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • ALPS: An Adaptive Learning, Priority OS Scheduler for Serverless Functions cites 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 cites ALPS: An Adaptive Learning, Priority OS Scheduler for Serverless Functions
  • Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS Scheduling cites Making Serverless Pay-For-Use a Reality with Leopard
  • Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS Scheduling cites 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 cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless Research cites FaasCache: keeping serverless computing alive with greedy-dual caching
  • FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless Research 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 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing cites Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing cites FaasCache: keeping serverless computing alive with greedy-dual caching
  • EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable Computing cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Making Serverless Pay-For-Use a Reality with Leopard cites Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • Making Serverless Pay-For-Use a Reality with Leopard cites FaasCache: keeping serverless computing alive with greedy-dual caching
  • Making Serverless Pay-For-Use a Reality with Leopard 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 papers5

  1. EcoLife: Carbon-Aware Serverless Function Scheduling for Sustainable ComputingYankai Jiang, Rohan Basu Roy, Baolin Li, Devesh TiwariSC 2024 · 14 citations
  2. ALPS: An Adaptive Learning, Priority OS Scheduler for Serverless FunctionsYuqi Fu, Ruizhe Shi, Haoliang Wang, Songqing Chen et al.USENIX ATC 2024 · 12 citations
  3. Making Serverless Pay-For-Use a Reality with LeopardTingjia Cao, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-Dusseau, Tyler Caraza-HarterNSDI 2025 · 11 citations
  4. FaaSRail: Employing Real Workloads to Generate Representative Load for Serverless ResearchChristos Katsakioris, Chloe Alverti, Konstantinos Nikas, Dimitrios Siakavaras et al.HPDC 2024 · 5 citations
  5. Demystifying Serverless Costs on Public Platforms: Bridging Billing, Architecture, and OS SchedulingChangyuan Lin, Yuanzhi Ma, Mohammad ShahradEuroSys 2026 · 3 citations

Builds on12

  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. Borg: the next generationMuhammad Tirmazi, Adam Barker, Nan Deng, Md E. Haque et al.EuroSys 2020 · 323 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. FaasCache: keeping serverless computing alive with greedy-dual cachingAlexander Fuerst, Prateek SharmaASPLOS 2021 · 223 citations
  5. Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservicesZhipeng Jia, Emmett WitchelASPLOS 2021 · 218 citations

Related papers

  1. Metronome: Differentiated Delay Scheduling for Serverless FunctionsZhuangbin Chen, Juzheng Zheng, Zibin ZhengICSE 2026 · 1 citation
  2. StepConf: SLO-Aware Dynamic Resource Configuration for Serverless Function WorkflowsZhaojie Wen, Yishuo Wang, Fangming LiuINFOCOM 2022 · 72 citations
  3. SpecFaaS: Accelerating Serverless Applications with Speculative Function ExecutionJovan Stojkovic, Tianyin Xu, Hubertus Franke, Josep TorrellasHPCA 2023 · 16 citations
  4. LaSS: Running Latency Sensitive Serverless Computations at the EdgeBin Wang, Ahmed Ali-Eldin, Prashant J. ShenoyHPDC 2021 · 74 citations
  5. SEUSS: skip redundant paths to make serverless fastJames Cadden, Thomas Unger, Yara Awad, Han Dong et al.EuroSys 2020 · 156 citations
Dusk over the sea between two cliffs drawn in fine vertical lines