{"title":"WarmSwap: Sharing Dependencies for Accelerating Cold Starts in Serverless Functions","authors":"Rui Li, Devesh Tiwari, Gene Cooperman","doi":"arxiv-2409.09202","DOIUrl":null,"url":null,"abstract":"This work presents WarmSwap, a novel provider-side cold-start optimization\nfor serverless computing. This optimization reduces cold-start time when\nbooting and loading dependencies at runtime inside a function container.\nPrevious approaches to the optimization of cold starts tend to fall into two\ncategories: optimizing the infrastructure of serverless computing to benefit\nall serverless functions; or function-specific tuning for individual serverless\nfunctions. In contrast, WarmSwap offers a broad middle ground, which optimizes\nentire categories of serverless functions. WarmSwap eliminates the need to\ninitialize middleware or software dependencies when launching a new serverless\ncontainer, by migrating a pre-initialized live dependency image to the new\nfunction instance. WarmSwap respects the provider's cache constraints, as a\nsingle pre-warmed dependency image in the cache is shared among all serverless\nfunctions requiring that software dependency image. WarmSwap has been tested on\nseven representative functions from FunctionBench. The functions are chosen to\ncompare with previous work. In those tests, WarmSwap accelerates cold-start\nexecutions for those serverless functions with large dependency requirements by\na factor ranging from 1.2 to 2.2.","PeriodicalId":501422,"journal":{"name":"arXiv - CS - Distributed, Parallel, and Cluster Computing","volume":"19 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Distributed, Parallel, and Cluster Computing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.09202","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This work presents WarmSwap, a novel provider-side cold-start optimization
for serverless computing. This optimization reduces cold-start time when
booting and loading dependencies at runtime inside a function container.
Previous approaches to the optimization of cold starts tend to fall into two
categories: optimizing the infrastructure of serverless computing to benefit
all serverless functions; or function-specific tuning for individual serverless
functions. In contrast, WarmSwap offers a broad middle ground, which optimizes
entire categories of serverless functions. WarmSwap eliminates the need to
initialize middleware or software dependencies when launching a new serverless
container, by migrating a pre-initialized live dependency image to the new
function instance. WarmSwap respects the provider's cache constraints, as a
single pre-warmed dependency image in the cache is shared among all serverless
functions requiring that software dependency image. WarmSwap has been tested on
seven representative functions from FunctionBench. The functions are chosen to
compare with previous work. In those tests, WarmSwap accelerates cold-start
executions for those serverless functions with large dependency requirements by
a factor ranging from 1.2 to 2.2.