Repository navigation
Open
Labels
component/gpu-kubelet-pluginfeature-gate/MPSSupportneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.size/medium
Milestone
Description
Component
gpu-kubelet-plugin
Problem Statement
Overview
In #1257, MPS (Multi-Process Service) was explicitly disallowed when ConsumableShares is enabled to unblock the PR. This tracking issue is created to design and implement compatibility between MPS and Consumable Shares.
Reference discussion: PR #1257 Comment
Challenges
When ConsumableShares is enabled, multiple ResourceClaim objects can request fractional or shared access to the same physical GPU or dynamic MIG instance. Integrating MPS daemon management into this model introduces several architectural and lifecycle challenges:
- CUDA Runtime Pipe Restriction (
CUDA_MPS_PIPE_DIRECTORY):- The CUDA runtime relies on
CUDA_MPS_PIPE_DIRECTORY(e.g./tmp/nvidia-mps) to locate the MPS control daemon pipe. A single container process can only connect to one MPS server pipe at a time. - If a workload requests multiple GPUs managed by separate MPS daemons, mounting multiple pipe directories causes collision, or the client application is unable to communicate with more than one MPS server simultaneously.
- The CUDA runtime relies on
- MPS Daemon Lifecycle & Scope:
- Per-Claim Daemons: Launching a daemon per
ResourceClaim(e.g.mps-control-daemon-<claim-uid>) results in multiple daemons running on the same underlying physical GPU, causing pipe directory conflicts and competing CUDA contexts. - Multi-GPU / Multi-Device Daemons: Grouping multiple GPUs under a single MPS daemon creates a single fault domain where a CUDA error in one client process could reset the MPS server and impact unrelated GPUs.
- Per-Claim Daemons: Launching a daemon per
- Node Restart & Determinism:
- Allowing the first
ResourceClaimprepared on a node to dynamically set the scope of an MPS daemon (CUDA_VISIBLE_DEVICES) introduces non-deterministic behavior across node reboots or driver restarts, potentially disrupting previously running workloads if prepare ordering changes.
- Allowing the first
Proposed Solution
Based on initial discussions in #1257:
- Option A: Per-Device / Per-MIG MPS Daemons (Restricted to Single-Device/MIG Claims)
- Scope each MPS daemon strictly to an individual GPU or dynamic MIG instance (i.e.
CUDA_VISIBLE_DEVICES=<GPU-UUID>). - Restrict MPS sharing with
ConsumableSharesto single-device requests (1 GPU or 1 MIG instance per claim). - Multiple claims allocating from the exact same single GPU share that GPU’s dedicated MPS daemon.
- Avoids multi-GPU pipe collisions and limits fault domain to the single physical GPU/MIG instance.
- Scope each MPS daemon strictly to an individual GPU or dynamic MIG instance (i.e.
- Option B: Dynamic Daemon Scope per Device Set
- Allow the first prepared claim to define the MPS daemon scope (single GPU or multi-GPU set).
- Reject subsequent claims requiring overlapping, non-identical device sets.
- Requires persistent state management to preserve daemon scope across driver restarts.
Alternatives Considered
No response
Scope
Medium: New capability behind existing feature gate
Upstream Kubernetes Dependencies
No response
Additional Context
No response
Metadata
Metadata
Assignees
Labels
component/gpu-kubelet-pluginfeature-gate/MPSSupportneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.size/medium
Type
Projects
- StatusShow more project fieldsBacklog
Activity
guptaNswati commentedon Oct 20, 2026
Option A (one MPS daemon per GPU, and each claim can only request 1 GPU) seems more straightforward:
Few things to think about for claims sharing the same GPU:
defaultActiveThreadPercentageand pinned memory limits are set daemon-wide at startup. If two claims ask for different values, which one wins, or is the second claim rejected?EXCLUSIVE_PROCESSmode, so while the daemon runs, no non-MPS process (time-slicing or default claim) can create a CUDA context on that GPU.gpu-kubelet-plugin: wait for a terminating MPS control daemon
templates: quit the MPS control daemon on pod termination
tests/bats: verify MPS with consumable shares on a real GPU