LibProf:一种用于改善无服务器应用中冷启动性能的 Python 分析器
LibProf: A Python Profiler for Improving Cold Start Performance in Serverless Applications
AI总结:
本文提出 Python 分析器 LibProf,通过动态程序分析识别无服务器应用中的低效库初始化,在 15 个应用上实现冷启动最高 2.26 倍加速和 1.51 倍内存降低。
摘要:
无服务器计算抽象了服务器管理,实现了自动扩展和高效的资源利用。然而,冷启动延迟仍然是一个重大挑战,影响端到端性能。我们的初步研究表明,低效的库初始化和使用是 Python 无服务器应用中冷启动延迟的主要因素。我们引入了 LibProf,一个使用动态程序分析来识别低效库初始化的 Python 分析器。LibProf 通过统计采样和调用路径分析收集库使用数据,然后生成报告以指导开发者处理四类低效模式。在 15 个无服务器应用上的系统评估表明,LibProf 能有效识别低效问题。LibProf 引导的优化使冷启动执行时间最高加速 2.26 倍,内存使用减少 1.51 倍。
英文摘要:
Serverless computing abstracts away server management, enabling automatic scaling and efficient resource utilization. However, cold-start latency remains a significant challenge, affecting end-to-end performance. Our preliminary study reveals that inefficient library initialization and usage are major contributors to this latency in Python-based serverless applications. We introduce LibProf, a Python profiler that uses dynamic program analysis to identify inefficient library initializations. LibProf collects library usage data through statistical sampling and call-path profiling, then generates a report to guide developers in addressing four types of inefficiency patterns. Systematic evaluations on 15 serverless applications demonstrate that LibProf effectively identifies inefficiencies. LibProf guided optimization results up to 2.26x speedup in cold-start execution time and 1.51x reduction in memory usage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。