All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Security
Security
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Reverse-engineering NVIDIA's cuda-checkpoint: Achieving 4x faster CUDA process restoration

This article reverse-engineers NVIDIA's closed-source cuda-checkpoint utility, which allows freezing a running CUDA process, serializing its GPU state to host memory, and restoring it later. The authors investigate why checkpoint transfers fail to saturate PCIe bandwidth, and use their understanding of the driver's internals to develop techniques that restore CUDA processes up to 4x faster. The work builds on earlier findings where they sped up SGLang server startup by up to 70x using this checkpoint/restore mechanism.

Fergus Finn4h ago17 min readenInsight
Read on blog.doubleword.ai

Key quotes

There's a little known feature in the closed-source NVIDIA driver that lets you freeze a running CUDA process, serialize its GPU state into host memory, and later restore it to the GPU exactly as it was.
One very frustrating aspect, that dogs anyone trying to use it to checkpoint complex GPU processes, is that the checkpoint transfers come nowhere close to saturating PCIe bandwidth.
understanding that lets us restore CUDA processes up to 4x faster.

From the article

Freezing a live CUDA process to host memory and thawing it again, what the driver does — and doesn't — do to make that work, and how understanding that lets us restore CUDA processes up to 4x faster.
Continue reading on blog.doubleword.ai

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.