arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.15214cs.PF
收藏

分解Docker容器启动性能:一项针对异构基础设施的三级测量研究

Decomposing Docker Container Startup Performance: A Three-Tier Measurement Study on Heterogeneous Infrastructure

GlobalLogic (Hitachi Group)(GlobalLogic(日立集团))

Shamsher Khan

AI总结:

研究通过三级测量分析,揭示了Docker容器启动延迟受存储层级、hypervisor层及文件系统影响,发现运行时开销主导启动性能,存储层级选择显著增加启动时间。

摘要:

容器启动延迟是CI/CD流水线、服务器less计算和自动扩展系统的关键性能指标,然而从业者缺乏关于基础设施选择如何影响此延迟的实证指导。我们提出了一项系统性的测量研究,该研究将Docker容器启动分解为三个异构基础设施层级中的构成操作:Azure Premium SSD(云SSD)、Azure Standard HDD(云HDD)和macOS Docker Desktop(开发工作站在基于虚拟化的hypervisor层)。使用一个可重复的基准测试套件,在10个性能维度上执行50次迭代测试,我们量化了基础设施配置与容器运行时行为之间的先前未被特征化的关系。我们的关键发现包括:(1)容器启动主要由运行时开销而非镜像大小主导,SSD上从5MB到155MB的镜像之间仅有2.5%的启动变化;(2)存储层级选择导致启动延迟增加2.04倍(HDD 1157毫秒 vs. SSD 568毫秒);(3)Docker Desktop的hypervisor层导致启动延迟增加2.69倍,并比原生Linux高9.5倍的CPU throttling变化;(4)在SSD支持的存储上,OverlayFS写性能下降高达两个数量级,相比卷挂载;(5)Linux命名空间创建仅贡献8-10毫秒(<1.5%)的总启动时间。所有测量脚本、原始数据和分析工具均已公开可用。

英文摘要:

Container startup latency is a critical performance metric for CI/CD pipelines, serverless computing, and auto-scaling systems, yet practitioners lack empirical guidance on how infrastructure choices affect this latency. We present a systematic measurement study that decomposes Docker container startup into constituent operations across three heterogeneous infrastructure tiers: Azure Premium SSD (cloud SSD), Azure Standard HDD (cloud HDD), and macOS Docker Desktop (developer workstation with hypervisor-based virtualization). Using a reproducible benchmark suite that executes 50 iterations per test across 10 performance dimensions, we quantify previously under-characterized relationships between infrastructure configuration and container runtime behavior. Our key findings include: (1) container startup is dominated by runtime overhead rather than image size, with only 2.5% startup variation across images ranging from 5 MB to 155 MB on SSD; (2) storage tier selection imposes a 2.04x startup penalty (HDD 1157 ms vs. SSD 568 ms); (3) Docker Desktop's hypervisor layer introduces a 2.69x startup penalty and 9.5x higher CPU throttling variance compared to native Linux; (4) OverlayFS write performance collapses by up to two orders of magnitude compared to volume mounts on SSD-backed storage; and (5) Linux namespace creation contributes only 8-10 ms (<1.5%) of total startup time. All measurement scripts, raw data, and analysis tools are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑