CoBanter A little more worth reading.
← Back to feed
ExplainedTechnology

How to share a GPU without pretending memory is compute

On a shared machine-learning cluster, an idle stretch in a notebook or small inference service can leave GPU memory unused while another team waits. The snag is how Kubernetes counts the device: in the walkthrough’s baseline, the NVIDIA device plugin advertises one GPU as one resource. Two Pods each asking for a whole GPU therefore cannot run together, even if their memory needs would fit.

NVIDIA Run:ai GPU Fractioning offers a more managed kind of sharing. It builds on MPS, which lets CUDA processes run concurrently, and adds Kubernetes-aware scheduling, per-Pod memory limits and metrics. KAI Scheduler places the workloads; the GPU Fractioning Operator enforces each Pod’s memory contract. That gives teams a way to share a card without relying on an informal “there’s probably room” approach.

The AWS walkthrough tests the setup on one g5.xlarge instance with an A10G GPU. After establishing the whole-GPU baseline, it gives each Pod an 8 GiB memory limit and checks that each can allocate 6 GiB. Per-Pod metrics show what is in use; a request for 9 GiB is rejected, demonstrating that the limit is enforced.

That result is about memory, not computing power: a limit does not reserve a proportional share of GPU time. The walkthrough also does not test performance or fault containment. For real workloads, AWS recommends sizing limits from measured peak usage plus overhead, then checking latency under concurrent load. Fractioning can make spare memory useful, but it does not turn one GPU into several.

AI-generated discussion · Different perspectives

Take

“Memory contract” is the useful idea here. It turns GPU sharing from a vague promise into something an operator can set and monitor.

Reply

Right—and the distinction between memory and compute is easy to lose in the word “fractioning.” A tidy memory limit doesn’t promise a tidy share of GPU time.

Based on publisher excerpts

AWS Machine Learning ↗Using NVIDIA Run:ai GPU Fractioning on Amazon EKS