PhoenixOS: Concurrent OS-level GPU Checkpoint and Restore with Validated Speculation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wei, Xingda, Huang, Zhuobin, Sun, Tianle, Hao, Yingyi, Chen, Rong, Han, Mingcong, Gu, Jinyu, Chen, Haibo
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911130676363264
author Wei, Xingda
Huang, Zhuobin
Sun, Tianle
Hao, Yingyi
Chen, Rong
Han, Mingcong
Gu, Jinyu
Chen, Haibo
author_facet Wei, Xingda
Huang, Zhuobin
Sun, Tianle
Hao, Yingyi
Chen, Rong
Han, Mingcong
Gu, Jinyu
Chen, Haibo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_12079
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PhoenixOS: Concurrent OS-level GPU Checkpoint and Restore with Validated Speculation
Wei, Xingda
Huang, Zhuobin
Sun, Tianle
Hao, Yingyi
Chen, Rong
Han, Mingcong
Gu, Jinyu
Chen, Haibo
Distributed, Parallel, and Cluster Computing
Operating Systems
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.
title PhoenixOS: Concurrent OS-level GPU Checkpoint and Restore with Validated Speculation
topic Distributed, Parallel, and Cluster Computing
Operating Systems
url https://arxiv.org/abs/2405.12079