Lune

ISCA2022顶会

Lukewarm serverless functions: characterization and optimization

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

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with Jiagu 引用了 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 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Warming Up a Cold Front-End with Ignite 引用了 Firecracker: Lightweight Virtualization for Serverless Applications
  • Warming Up a Cold Front-End with Ignite 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Warming Up a Cold Front-End with Ignite 引用了 A Storage-Effective BTB Organization for Servers
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • MXFaaS: Resource Sharing in Serverless Environments for Parallelism and Efficiency 引用了 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 引用了 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
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. Harmonizing Efficiency and Practicability: Optimizing Resource Utilization in Serverless Computing with JiaguQingyuan Liu, Yanning Yang, Dong Du, Yubin Xia 等USENIX ATC 2024 · 39 次引用
  2. MXFaaS: Resource Sharing in Serverless Environments for Parallelism and EfficiencyJovan Stojkovic, Tianyin Xu, Hubertus Franke, Josep TorrellasISCA 2023 · 39 次引用
  3. PDIP: Priority Directed Instruction PrefetchingBhargav Reddy Godala, Sankara Prasad Ramesh, Gilles A. Pokam, Jared Stark 等ASPLOS 2024 · 17 次引用
  4. A Storage-Effective BTB Organization for ServersTruls Asheim, Boris Grot, Rakesh KumarHPCA 2023 · 12 次引用
  5. Warming Up a Cold Front-End with IgniteDavid Schall, Andreas Sandberg, Boris GrotMICRO 2023 · 11 次引用

它引用的 Paper6

  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 等USENIX ATC 2020 · 946 次引用
  2. Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 次引用
  3. Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang 等ASPLOS 2020 · 280 次引用
  4. Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservicesZhipeng Jia, Emmett WitchelASPLOS 2021 · 218 次引用
  5. Firecracker: Lightweight Virtualization for Serverless ApplicationsAlexandru Agache, Marc Brooker, Alexandra Iordache, Anthony Liguori 等NSDI 2020 · 197 次引用

相关 Paper

  1. SPES: Towards Optimizing Performance-Resource Trade-Off for Serverless FunctionsCheryl Lee, Zhouruixin Zhu, Tianyi Yang, Yintong Huo 等ICDE 2024 · 13 次引用
  2. CodeCrunch: Improving Serverless Performance via Function Compression and Cost-Aware Warmup Location OptimizationRohan Basu Roy, Tirthak Patel, Rohan Garg, Devesh TiwariASPLOS 2024 · 11 次引用
  3. Benchmarking, analysis, and optimization of serverless function snapshotsDmitrii Ustiugov, Plamen Petrov, Marios Kogias, Edouard Bugnion 等ASPLOS 2021 · 162 次引用
  4. Concurrency-Informed Orchestration for Serverless FunctionsQichang Liu, Yue Cheng, Haiying Shen, Ao Wang 等ASPLOS 2025 · 7 次引用
  5. RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and SharingHanfei Yu, Rohan Basu Roy, Christian Fontenot, Devesh Tiwari 等ASPLOS 2024 · 69 次引用
黄昏的海面,两侧是细线勾勒的悬崖