PhoenixOS:采用经过验证的推测实现并发的操作系统级 GPU 检查点与恢复
PhoenixOS: Concurrent OS-level GPU Checkpoint and Restore with Validated Speculation
AI总结:
本文提出 PhoenixOS,通过基于 kernel 启动参数的推测与二进制插桩验证检测 GPU 内存访问,并以软写时复制等软件机制实现并发 OS 级 GPU C/R,性能显著优于现有系统。
摘要:
PHOENIXOS(PHOS)是首个能够并发地对 GPU 进程进行检查点与恢复(C/R)的操作系统服务,而 C/R 是容错、进程迁移和快速启动等关键任务的一项基础能力。尽管并发 C/R 在 CPU 上已经非常成熟,但它在 GPU 上面临独特挑战,因为 GPU 缺少高效追踪并发内存读写所需的关键特性,例如特定硬件能力(如脏位)以及由操作系统介入的数据路径(如写时复制)。为确保并发 C/R 的正确性,PHOS 通过一个两步过程主动检测 GPU 内存读写:首先,它根据启动 GPU kernel 时使用的参数推测 GPU 内存访问;随后,它在运行时利用二进制插桩高效验证这些访问。借助这种经过验证的推测,PHOS 通过基于软件的方法(包括软写时复制、软重复制和软按需恢复)将基于 CPU 的并发 C/R 改造并适用于 GPU。PHOS 进一步提出若干面向 GPU 的高效 GPU C/R 技术,包括协同检查点数据传输和执行上下文池。对于将 C/R 用于容忍故障、在机器之间迁移进程以及加速无服务器计算中冷启动的下游任务,PHOS 实现了比 NVIDIA cuda-checkpoint 等最先进的操作系统级 GPU C/R 系统高出数个数量级的性能。
英文摘要:
PHOENIXOS (PHOS) is the first OS service that can concurrently checkpoint and restore (C/R) GPU processes--a fundamental capability for critical tasks such as fault tolerance, process migration, and fast startup. While concurrent C/R is well-established on CPUs, it poses unique challenges on GPUs due to their lack of essential features for efficiently tracing concurrent memory reads and writes, such as specific hardware capabilities (e.g., dirty bits) and OS-mediated data paths (e.g., copy-on-write). To ensure correct concurrent C/R, PHOS proactively detects GPU memory reads and writes through a two-step process: first, it speculates about GPU memory accesses based on the arguments used when launching GPU kernels; then, it validates these accesses efficiently at runtime using binary instrumentation. With this validated speculation, PHOS retrofits CPU-based concurrent C/R for GPUs through software-based approaches, including soft copy-on-write, soft recopy, and soft on-demand restore. PHOS further proposes several GPU-aware techniques for efficient GPU C/R, including coordinated checkpoint data transfer and execution context pool. For downstream tasks that use C/R for tolerating failures, migrating processes between machines, and accelerating cold starts in serverless computing, PHOS achieves orders of magnitude higher performance than state-of-the-art OS-level GPU C/R systems like NVIDIA cuda-checkpoint.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。