λ-trim: Optimizing Function Initialization in Serverless Applications With Cost-driven Debloating
Xuting Liu, Spyros Pavlatos, Yuhao Liu, Vincent Liu
Abstract
In this paper, we focus on an often-overlooked component of serverless application cold starts: monetary costs and Function Initialization.Traditionally considered the user's responsibility, Function Initialization is billable and accounts for more than 50% of the monetary cost associated with cold starts in real-world machine-learning applications.We introduce 𝜆-trim, a system that optimizes Python serverless applications by eliminating redundant code while maintaining correctness.To maximize cost savings, 𝜆-trim leverages the typical serverless pricing model to prioritize modules that significantly impact latency and memory usage.𝜆-trim features an automated pipeline comprising a static analyzer, a profiler specialized for the serverless pricing model, and a debloater.The optimized application can be directly deployed on serverless platforms, leading to substantial reductions in both latency and cost for cold starts.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 795fe8f8-d0f5-49e4-8999-cf7749f596faRelated papers
- SPES: Towards Optimizing Performance-Resource Trade-Off for Serverless FunctionsCheryl Lee, Zhouruixin Zhu, Tianyi Yang, Yintong Huo et al.ICDE 2024 · 13 citations
- Fork in the Road: Reflections and Optimizations for Cold Start Latency in Production Serverless SystemsXiaohu Chai, Tianyu Zhou, Keyang Hu, Jianfeng Tan et al.OSDI 2025 · 7 citations
- Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang et al.ASPLOS 2020 · 280 citations
- CodeCrunch: Improving Serverless Performance via Function Compression and Cost-Aware Warmup Location OptimizationRohan Basu Roy, Tirthak Patel, Rohan Garg, Devesh TiwariASPLOS 2024 · 11 citations
- Warming Up a Cold Front-End with IgniteDavid Schall, Andreas Sandberg, Boris GrotMICRO 2023 · 11 citations
