Optimize gVisor GPU checkpoint restore#1779
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The gVisor patch is isolated in
beam-cloud/gvisorat4272182band is also open upstream as google/gvisor#13753. It prefaults only MemoryFile ranges mapped by restored CUDA processes before NVIDIA process resume. There are no vLLM-specific flags, KV-cache changes, eager mode, or workload-state reduction.Staging results
RTX 5090, untouched
Qwen/Qwen2.5-1.5B-InstructBF16 vLLM deployment, existing 7.3 GiB automatic checkpoint:The exact release artifact and original checkpoint produced HTTP 200 responses with exact requested completion text. The checkpoint remained available and no replacement snapshot was created.
Verification
go test ./pkg/runtime ./pkg/worker//pkg/sentry/mm:mm_test//pkg/sentry/pgalloc:pgalloc_test//runsc:runscgvisorDocker stage build with checksum and version verification/v1/chat/completionsSummary by cubic
Optimize
gVisorGPU checkpoint/restore by using its native NVIDIA path and making auto-checkpoints terminal, overlapping CPU page loading with CUDA resume. Cuts restore time on RTX 5090vLLMfrom ~26–29s to ~6.2–6.6s without changing checkpoints.New Features
gVisornvproxyvia a GPU bundle annotation; bindcuda-checkpoint; pass--cuda-checkpoint-pathon checkpoint and--nvproxyon restore; remove per-PID CUDA freezing.restore --background, wait for completion, and add safe force-delete cleanup.gVisorauto-checkpoints as terminal (same asrunc); addVLLM_HOST_IPandVLLM_LOOPBACK_IPloopback env vars for service checkpoints.Dependencies
runsctobeam-cloud/gvisorrelease-20260714.0-beam.1with SHA-512 digest verification; keep officialgVisorrelease for arm64.Written for commit f59099b. Summary will update on new commits.