Lune

ISCA2022Top-tier venue

Lukewarm serverless functions: characterization and optimization

David Schall, Artemiy Margaritov, Dmitrii Ustiugov, Andreas Sandberg, Boris Grot

Abstract

Serverless computing has emerged as a widely-used paradigm for running services in the cloud. In serverless, developers organize their applications as a set of functions, which are invoked ondemand in response to events, such as an HTTP request. To avoid long start-up delays of launching a new function instance, cloud providers tend to keep recently-triggered instances idle (or warm) for some time after the most recent invocation in anticipation of future invocations. Thus, at any given moment on a server, there may be thousands of warm instances of various functions whose executions are interleaved in time based on incoming invocations.

This paper observes that (1) there is a high degree of interleaving among warm instances on a given server; (2) the individual warm functions are invoked relatively infrequently, often at the granularity of seconds or minutes; and (3) many function invocations complete within a few milliseconds. Interleaved execution of rarely invoked functions on a server leads to thrashing of each function's microarchitectural state between invocations. Meanwhile, the short execution time of a function impedes amortization of the warmup latency of the cache hierarchy, causing a 31-114% increase in CPI compared to execution with warm microarchitectural state. We identify on-chip misses for instructions as a major contributor to the performance loss. In response we propose Jukebox, a record-and-replay instruction prefetcher specifically designed for reducing the start-up latency of warm function instances. Jukebox requires just 32KB of metadata per function instance and boosts performance by an average of 18.7% for a wide range of functions, which translates into a corresponding throughput improvement.

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.

13 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

  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu cites Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Warming Up a Cold Front-End with Ignite cites Firecracker: Lightweight Virtualization for Serverless Applications
  • Warming Up a Cold Front-End with Ignite cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Warming Up a Cold Front-End with Ignite cites A Storage-Effective BTB Organization for Servers
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency cites Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with JiaguQingyuan Liu, Yanning Yang, Dong Du, Yubin Xia et al.USENIX ATC 2024 · 39 citations
  2. MXFaaS: Resource Sharing in Serverless Environments for Parallelism and EfficiencyJovan Stojkovic, Tianyin Xu, Hubertus Franke, Josep TorrellasISCA 2023 · 39 citations
  3. PDIP: Priority Directed Instruction PrefetchingBhargav Reddy Godala, Sankara Prasad Ramesh, Gilles A. Pokam, Jared Stark et al.ASPLOS 2024 · 17 citations
  4. A Storage-Effective BTB Organization for ServersTruls Asheim, Boris Grot, Rakesh KumarHPCA 2023 · 12 citations
  5. Warming Up a Cold Front-End with IgniteDavid Schall, Andreas Sandberg, Boris GrotMICRO 2023 · 11 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. Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservicesZhipeng Jia, Emmett WitchelASPLOS 2021 · 218 citations
  5. Firecracker: Lightweight Virtualization for Serverless ApplicationsAlexandru Agache, Marc Brooker, Alexandra Iordache, Anthony Liguori et al.NSDI 2020 · 197 citations

Related papers

  1. SPES: Towards Optimizing Performance-Resource Trade-Off for Serverless FunctionsCheryl Lee, Zhouruixin Zhu, Tianyi Yang, Yintong Huo et al.ICDE 2024 · 13 citations
  2. CodeCrunch: Improving Serverless Performance via Function Compression and Cost-Aware Warmup Location OptimizationRohan Basu Roy, Tirthak Patel, Rohan Garg, Devesh TiwariASPLOS 2024 · 11 citations
  3. Benchmarking, analysis, and optimization of serverless function snapshotsDmitrii Ustiugov, Plamen Petrov, Marios Kogias, Edouard Bugnion et al.ASPLOS 2021 · 162 citations
  4. Concurrency-Informed Orchestration for Serverless FunctionsQichang Liu, Yue Cheng, Haiying Shen, Ao Wang et al.ASPLOS 2025 · 7 citations
  5. RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and SharingHanfei Yu, Rohan Basu Roy, Christian Fontenot, Devesh Tiwari et al.ASPLOS 2024 · 69 citations
Dusk over the sea between two cliffs drawn in fine vertical lines