NVIDIAElizabeth GoodmanAnnouncement
Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
Summary
Many AI workloads need only a fraction of a GPU, and sharing GPUs lets platform teams serve more workloads with existing infrastructure instead of leaving capacity idle. CUDA 13.4 enforces memory boundaries transparently in a new time-sharing mode, allowing workloads to request exact memory amounts or burst into an optional limit. A new open-source Kubernetes operator, gpu-fractioning hosted under the KAI Scheduler organization, runs on each node to apply per-container memory limits and compute modes set via Pod annotations. KAI Scheduler v0.18.0 integrates with this operator using a NvFractions mode that selects GPUs based on free memory, avoids mixing compute modes on the same GPU, and supports time-slicing or sm-sharing compute modes. Workloads can request memory as an absolute size or as a portion of a GPU, with the limit optional and equal to the request if omitted, and the operator measures resource use per fraction.
Context
GPUs are often underutilized because many AI workloads only need a fraction of a device. Existing sharing approaches like MIG, time-slicing, and MPS have trade-offs but no memory enforcement in time-sharing. CUDA 13.4 adds transparent memory boundaries for time-sharing, and a new open-source operator enables this in Kubernetes.
Approach / What changed
Deploy the GPU Fractioning Operator alongside the NVIDIA GPU Operator on each node. Configure Pod annotations for memory request (absolute size or portion of a GPU), optional memory limit, compute mode (time-slicing or sm-sharing), and number of devices. Use KAI Scheduler v0.18.0 with NvFractions mode enabled to select GPUs and write the annotations; the operator then enforces memory limits and measures per-fraction usage.
Takeaways
CUDA 13.4 enforces GPU memory boundaries transparently in time-sharing mode, allowing workloads to request exact memory amounts with optional bursting limits.
The GPU Fractioning Operator applies per-container memory limits and compute modes by reading Pod annotations set by a scheduler like KAI Scheduler.
Time-slicing runs workloads serially with full error isolation, while sm-sharing runs them concurrently across streaming multiprocessors but in a single error domain.
FAQ
How does CUDA 13.4 enforce memory in time-sharing?
CUDA 13.4 introduces a new time-sharing mode that enforces a memory boundary transparent to the application. A workload asks for a memory size and CUDA holds it there; allocations above that size fail, just as they would on a smaller GPU.
What annotations does the GPU Fractioning Operator read?
It reads per-container annotations including nvidia.com/container.<name>.gpu-memory.request, gpu-memory.limit, gpu-compute.mode, and gpus.devices. These are set by the scheduler to request guaranteed memory, maximum growth, compute mode, and assigned devices.
How does compute sharing differ between time-slicing and sm-sharing?
Time-slicing runs workloads serially on the whole GPU, each getting about 1/n of time with full error isolation. SM-sharing splits streaming multiprocessors between workloads that run concurrently, but they share a single error domain.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.