WarmSwap: Sharing Dependencies for Accelerating Cold Starts in Serverless Functions
<|reference_start|>WarmSwap: Sharing Dependencies for Accelerating Cold Starts in Serverless Functions: 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.<|reference_end|>
@article{li2024warmswap:,
    title={WarmSwap: Sharing Dependencies for Accelerating Cold Starts in
  Serverless Functions},
    author={Rui Li, Devesh Tiwari, and Gene Cooperman},
    journal={arXiv preprint arXiv:2409.09202},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.09202},
    primaryClass={cs.DC}
}