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

用于大型容器镜像的有限内存并行镜像拉取

Bounded-Memory Parallel Image Pulling for Large Container Images

Amazon Web Services(亚马逊云科技)

Sri Saran Balaji Vellore Rajakumar, Henry Wang, Ankur Singh, James Thompson

AI总结:

研究大型容器镜像冷拉取问题,提出磁盘支持的并行拉取(DBPP)方法,替代containerd 2.2内存中有序重新组装方式,消除顺序依赖性并限制内存,实验表明DBPP能减少峰值内存,提升内存受限节点拉取能力。

摘要:

人工智能/机器学习工作负载越来越多地以容器形式运行,在工作负载启动前必须将容器镜像下载到主机。每当训练或推理作业扩展规模或主机更新时,这种冷镜像拉取就会出现在关键路径上,对于GPU工作负载,随着人工智能/机器学习镜像压缩后达到31 - 48GiB,它已成为启动时间的主要组成部分。我们提出了磁盘支持的并行拉取(DBPP),它替代了上游容器运行时containerd 2.2中使用的内存中有序重新组装。containerd将层拆分为通过HTTP范围请求并发获取的块,但乱序到达的块会在运行时堆中累积,直到顺序消费者按顺序耗尽它们。这种积压随着镜像大小而增长,在与框架和模型权重共享主机内存的GPU节点上,会导致运行时本身因内存不足(OOM)而终止。DBPP将每个块直接写入磁盘上的目标字节偏移量,消除了顺序依赖性,并且无论镜像大小如何都能限制内存。由于每层作为一个完整的、可查找的文件落在磁盘上,DBPP同时运行SHA - 256摘要验证和解压缩,而containerd必须依次运行这两个步骤。在对五个生产规模镜像(最大48.5GiB)的控制实验中,DBPP将守护进程峰值内存减少了8.7 - 25.3倍,同时保持了可比的拉取吞吐量。在内存受限的节点上,containerd 2.2在拉取31.4GiB镜像时因OOM被终止,而DBPP完成了相同的拉取。其基本思想不仅适用于容器镜像:任何仅为强制顺序而在内存中缓冲数据的管道,一旦后备存储足够快,都可以将该缓冲区移动到磁盘,用丰富的资源换取稀缺的、有竞争的资源。

英文摘要:

AI/ML workloads increasingly run as containers, where a container image must be downloaded to the host before the workload can start. This cold image pull lands on the critical path whenever a training or inference job scales up or a host is updated, and for GPU workloads it has become the dominant component of startup time as AI/ML images reach 31--48~GiB compressed. We present Disk-Backed Parallel Pull (DBPP), an alternative to the in-memory ordered reassembly used by containerd~2.2, the upstream container runtime. containerd splits layers into chunks fetched concurrently over HTTP range requests, but chunks that arrive out of order accumulate in the runtime heap until a sequential consumer drains them in order. This backlog grows with image size, and on GPU nodes where host memory is shared with frameworks and model weights, it leads to out of memory (OOM) termination of the runtime itself. DBPP writes each chunk directly to its target byte offset on disk, eliminating the ordering dependency and bounding memory regardless of image size. Because each layer lands on disk as a complete, seekable file, DBPP runs SHA-256 digest verification and decompression simultaneously, two passes containerd must run one after the other. In controlled experiments across five production-scale images (up to 48.5~GiB), DBPP reduces peak daemon memory by 8.7--25.3$\times$ while maintaining comparable pull throughput. On a memory-constrained node, containerd~2.2 is OOM-killed pulling a 31.4~GiB image while DBPP completes the same pull. The underlying idea reaches past container images: any pipeline that buffers data in memory only to enforce ordering can move that buffer to disk once the backing store is fast enough, trading a scarce, contended resource for an abundant one.

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

↑