The GPU Sharing Problem in Kubernetes
GPU sharing in Kubernetes forces a direct trade-off: pack more workloads onto expensive hardware, or guarantee that each workload gets predictable, isolated compute. Neither time-slicing nor MIG resolves that tension without cost. The choice you make determines your blast radius when a workload misbehaves.
Time-slicing is a software scheduler. The GPU driver rotates compute access between processes, context-switching between applications rather than running them in parallel. NVIDIA’s GPU Operator documentation confirms that this model provides no memory or fault isolation between workloads sharing a GPU. One process can allocate the full GPU memory, starving every other slice on the same card. GKE addresses this specifically by enforcing address isolation on time-shared GPUs to avoid out-of-memory failures (GPU time-sharing on GKE), but that guard only helps if you are on GKE. Bare-metal or self-managed clusters carry the full exposure.
MIG partitions the physical GPU into hardware-enforced slices with dedicated memory and compute engines. Kubernetes gained MIG support in 2020. Each partition behaves like an independent device, so a runaway workload on one partition cannot consume memory allocated to another. The trade-off is granularity: MIG partitions are fixed sizes, and unused partition capacity cannot be borrowed by a neighboring workload. Teams running A100 instances with MIG see lower wasted idle spend because hard partitions prevent partial utilization from blocking other workloads, but per-workload costs rise because spare capacity stays locked.
A third mechanism, MPS (Multi-Process Service), changes the equation differently. MPS enables CUDA kernels from different processes to execute in parallel on the GPU, unlike time-slicing which context-switches between applications (NVIDIA Developer Blog). Parallelism instead of scheduling rotation means lower latency at the cost of shared fault domains.

Noisy-neighbor failure. Time-slicing without memory limits lets any single workload consume the full GPU memory. The result is OOM failures that land on a different tenant’s pod, making root cause analysis difficult because the offending workload and the failed workload carry separate Kubernetes identities.
Oversubscription ceiling. Pushing time-slicing replicas beyond 8x produces diminishing returns. NVIDIA’s time-slicing scheduler does not prioritize by workload priority, so context-switching overhead grows as more slices compete, and no slice can preempt another.
Batch and inference conflict. Mixing batch jobs and latency-sensitive inference on the same time-sliced GPU produces unpredictable latency spikes. Batch jobs consume long, uninterrupted GPU cycles. Inference requests arrive at irregular intervals and expect fast responses. Without preemption guarantees, a batch kernel in progress blocks every inference request queued behind it.
The specific next step is to audit which workload types share each GPU node pool today. If any node pool mixes batch and inference, that pool is a latency incident waiting for a busy batch job to trigger it.
How Time-Slicing Works, and Where It Breaks Down
GPU time-slicing is a scheduler, not a partitioner. The GPU driver grants each registered process a fixed time slice of compute access, then context-switches to the next process in the queue. No memory boundaries are enforced between those processes. That single architectural fact is the root cause of every noisy-neighbor failure pattern that follows.
The scheduling model is equal-share by design. The driver rotates through active processes without reference to workload priority, job type, or memory pressure. A low-priority batch job receives the same slice duration as a latency-critical inference process queued behind it. Because NVIDIA’s GPU Operator documentation confirms there is no memory or fault isolation between workloads sharing a GPU, any process can allocate the full physical memory on the card. When that happens, every other slice on the same GPU starves, and OOM failures land on tenants who never triggered the allocation.
GKE enforces address isolation on time-shared GPUs specifically to block this failure mode. The fix is managed address isolation at the platform layer. This works when GKE controls the runtime. It breaks on self-managed clusters and bare-metal nodes because no equivalent enforcement layer exists by default.
Time-slicing also covers hardware that MIG cannot. The mechanism is straightforward: older GPU generations that do not support MIG have no hardware partitioning capability at all, so time-slicing is the only multi-tenant option available.
The table below maps each failure mode to its causal mechanism.
| Failure Mode | Causal Mechanism |
|---|---|
| Noisy-neighbor OOM | No memory isolation; one process claims full GPU memory |
| Latency spikes on inference | No preemption; batch kernel in progress blocks queued requests |
| Diminishing returns above 8x replicas | Context-switching overhead grows; scheduler ignores workload priority |
| Unpredictable fault attribution | Offending and failed workloads carry separate Kubernetes pod identities |
The memory isolation gap. Time-slicing is a software construct over a single physical memory space. When one workload allocates memory up to the physical limit, the kernel driver does not evict other slices to reclaim space. The other processes simply fail. This is structurally different from a CPU cgroup limit, where the kernel enforces a ceiling. GPU memory has no equivalent cgroup enforcement outside of platform-specific additions like GKE’s address isolation or explicit device plugin memory limits.
The oversubscription ceiling. Pushing replicas beyond 8x produces diminishing returns because the NVIDIA time-slicing scheduler does not prioritize by workload importance. Each additional replica adds one more context switch per rotation. By sprint 3 of a typical ML platform buildout, teams discover that throughput plateaus well before GPU utilization does, because the scheduler spends a growing fraction of wall time on context switching rather than useful compute.
The batch-inference collision. Batch jobs consume long, uninterrupted GPU cycles by design. Inference workloads arrive at irregular intervals and require fast completions. Without preemption guarantees in the time-slicing model, a batch kernel already running cannot be interrupted by an inference request. The inference request queues. Latency climbs. The fix is explicit node pool separation by workload class, not scheduling hints or priority classes, because priority is ignored at the GPU scheduler level.

The specific next action is to check every GPU node pool for pods with both batch and serving workload labels scheduled onto the same nodes. After collecting GPU metrics data, any node pool where P99 inference latency correlates with batch job start times is a confirmed collision point that node pool separation will resolve.
MIG Delivers Isolation but Introduces New Tradeoffs
MIG partitions a physical GPU into hardware-enforced slices, and that enforcement is precisely what makes it both more reliable and more expensive to operate than time-slicing.
MIG support arrived in Kubernetes in 2020. The hardware mechanism is distinct from any software scheduler: each MIG partition receives a fixed allocation of memory bandwidth, L2 cache, and compute engines at the silicon level. A process running inside one partition cannot read or write memory belonging to another partition, and a fault inside one partition does not propagate to its neighbors. That boundary is enforced by the GPU hardware itself, not by a kernel driver policy that a privileged container might bypass.
The isolation guarantee changes the failure calculus. With time-slicing, one misbehaving workload can trigger OOM failures across every other tenant on the card. With MIG, the blast radius stops at the partition boundary. The tradeoff is that partition sizes are fixed at provisioning time. Spare capacity inside an idle partition cannot be borrowed by a workload in an adjacent partition, even when that capacity would otherwise sit unused. Teams running A100 instances with MIG accept higher per-workload costs in exchange for eliminating the cross-tenant failure mode.

Hard isolation, fixed granularity. MIG partitions behave as independent devices inside Kubernetes. The scheduler sees each partition as a separate allocatable resource. This works cleanly when workload memory requirements align with the available partition sizes on your GPU model. It breaks when your workloads are irregular in size, because a workload smaller than the nearest partition size wastes the remainder, and that remainder stays locked for the partition’s lifetime.
Fragmentation accumulates at the node level. When a cluster runs mixed workload sizes, some partitions will be allocated while others sit idle, unable to absorb demand from neighboring partitions. The Kubernetes cluster autoscaler does not currently account for MIG partition fragmentation when evaluating whether a node is idle enough to scale down. A node with three allocated partitions and one idle partition may never qualify for scale-down, because Kubernetes sees the node as partially occupied. The idle partition generates cost with no corresponding compute output.
Hardware generation dependency. MIG is not available on every GPU. Teams running older hardware that pre-dates MIG support have no access to partition-level isolation, regardless of operator configuration. The NVIDIA MIG User Guide lists supported GPU models explicitly. Any governance policy that mandates MIG for isolation must first verify hardware eligibility across every node pool, or the policy will silently fail on unsupported nodes.
| Dimension | MIG | Time-Slicing |
|---|---|---|
| Memory isolation | Hardware-enforced per partition | None |
| Fault containment | Partition boundary | None |
| Idle capacity reuse | Not possible across partitions | Shared across all slices |
| Hardware requirement | Specific GPU models only | Any NVIDIA GPU |
The specific next action is to list every GPU node pool, cross-reference the GPU model against the MIG-supported hardware list, and flag any pool where workload memory variance exceeds the smallest available partition size. Those flagged pools are where fragmentation will accumulate first, and they need a sizing policy before MIG is enabled on them.
Four Failure Patterns Teams Hit in Production
Four production failure patterns repeat across teams that choose the wrong GPU sharing strategy, and each one has a different root cause, a different blast radius, and a different fix.
OOM failures from invisible memory contention. GPU time-slicing provides no memory or fault isolation between workloads sharing a GPU. The physical memory space is flat and unguarded. When one pod allocates aggressively, it fills that shared space without triggering any eviction of neighboring allocations. The other pods receive out-of-memory errors that trace back to the offending workload only through careful log correlation. The fix is either GKE-managed address isolation, explicit device plugin memory limits, or hard partition boundaries via MIG. Without one of those three controls, any pod on the card is a potential OOM trigger for every other pod on the card.
Latency spikes from non-preemptive scheduling. The time-slicing scheduler rotates through active processes in fixed intervals with no preemption. A batch kernel already in flight runs to its natural completion before the scheduler advances. An inference request arriving mid-kernel waits for the entire batch cycle to finish. By the first deployment week on a mixed-workload node pool, P99 latency for inference requests climbs in direct proportion to the duration of batch kernels running beside them. This breaks service-level objectives that assume consistent single-digit millisecond response times. The fix is physical node pool separation, not Kubernetes priority classes, because priority annotations have no effect on the GPU scheduler itself.
Oversubscription overhead above the 8x replica ceiling. The NVIDIA GPU Operator documentation shows that one GPU configured with four time-sliced replicas advertises four logical devices. Teams extending this logic to high replica counts discover that each additional replica adds one more context-switch round to every scheduling rotation, because NVIDIA’s time-slicing scheduler does not prioritize by workload priority. The NVIDIA time-slicing scheduler does not prioritize by workload importance, so every added replica imposes overhead on every other replica equally. Throughput plateaus before replica count does, because the scheduler spends a growing fraction of wall time on context switching rather than compute.
Monitoring blind spots from false device counts. When a machine has two GPUs each configured with four time-sliced replicas, the node advertises eight allocatable GPU resources. Cluster-level dashboards see eight devices, all appearing healthy. No standard metric distinguishes a logical slice from a physical card. Teams correlating GPU utilization against pod-level performance data hit a structural gap: the utilization percentage reported by nvidia-smi reflects the physical device, not the individual slice. A physical GPU at high utilization could mean one pod consuming everything or multiple pods sharing time fairly, because unlike MIG, GPU time-slicing provides no memory or fault isolation between workloads sharing a GPU (GPU Sharing with Time-Slicing in NVIDIA GPU Operator). After collecting sufficient data, any team relying solely on device-level utilization metrics will have made capacity decisions against numbers that cannot be decomposed by workload, because DCGM-Exporter does not support associating metrics to containers when GPU time-slicing is enabled with the NVIDIA Kubernetes Device Plugin.

| Failure Pattern | Root Cause | Fix |
|---|---|---|
| OOM across tenants | No memory isolation between slices | Address isolation or MIG partitions |
| Inference latency spikes | Batch kernels run non-preemptively | Dedicated node pools per workload class |
| Throughput plateau at high replica counts | Context-switch overhead, priority-blind scheduler | Cap replicas; measure throughput at each increment |
| Utilization metric blindness | Physical device metrics mask per-slice behavior | Instrument at pod level using DCGM exporter per-process metrics |
The specific next action is to deploy NVIDIA’s DCGM Exporter with per-process profiling enabled. Without that instrumentation, the third and fourth failure patterns are operationally invisible, and capacity decisions will consistently overprovision or misattribute cost.
Choosing the Right Strategy: A Decision Framework
The choice between time-slicing and MIG is not a preference decision. It is a decision tree with hard gates at hardware generation, workload class, and isolation requirements.
Call this framework the Partition Eligibility Gate: before evaluating scheduling strategy, verify hardware, then workload class, then replica ceiling. Each gate eliminates one option before you reach the next. Teams that skip the first gate spend engineering time configuring MIG on hardware that does not support it, discover the failure silently at deployment, and revert under pressure.

Hardware gate first. Time-slicing provides shared GPU access for older generation GPUs that do not support MIG. If your node pool runs hardware outside the MIG-supported list, MIG is off the table entirely. The only sharing mechanism available is time-slicing, and your governance policy must accept the absence of memory isolation as a fixed constraint, not a gap to close later through configuration.
Isolation requirement gate second. When workloads require memory fault containment, specifically multi-tenant inference serving or any workload where an OOM in one pod must not propagate to its neighbors, MIG is the correct answer on supported hardware. Time-slicing provides no memory or fault isolation between workloads sharing a GPU, so a single misbehaving pod can consume the full physical memory and trigger failures in every other pod on that card. This gate is binary. If isolation is required and hardware supports MIG, there is no middle path.
Workload class gate third. Mixing batch and inference workloads on the same time-sliced GPU produces unpredictable latency spikes because GPU compute time is shared without preemption guarantees. The fix is node pool separation, not replica adjustment. No amount of fine-tuning replica counts resolves a scheduler that cannot interrupt a running batch kernel when an inference request arrives. This gate applies even when hardware does not support MIG: separate the workload classes at the node pool level.
Replica ceiling gate fourth. For uniform, low-priority batch workloads where isolation is not required, time-slicing is operationally simpler and costs less per GPU-hour. The ceiling is 8x replicas. Beyond that threshold, context-switching overhead grows because NVIDIA’s time-slicing scheduler does not prioritize by workload importance, so every added replica taxes every other replica equally. Each pod also receives an equal share of GPU compute time regardless of how many replicas it requested, which means a pod requesting two replicas receives identical throughput to a pod requesting one. That scheduling behavior makes replica count a poor proxy for performance guarantees.
One additional operational detail deserves a dedicated check: when time-slicing is active, the node label for the GPU product name gains a -SHARED suffix, for example A100-SXM4-40GB-SHARED. Node selectors and affinity rules that target the base product name without that suffix will fail to match time-sliced nodes silently, routing pods to unintended hardware.
| Decision Gate | Condition | Outcome |
|---|---|---|
| Hardware generation | GPU not in MIG-supported list | Time-slicing only |
| Isolation requirement | Multi-tenant or fault-sensitive workload | MIG on supported hardware |
| Workload class mix | Batch and inference on same pool | Separate node pools regardless of method |
| Replica ceiling | Above 8x replicas per GPU | Separate pools or reduce replica count |
| Node selector accuracy | Time-slicing active | Update selectors to include -SHARED suffix |
The first action is to pull the GPU model for every node pool and check it against the NVIDIA MIG User Guide supported hardware list. That check takes one afternoon and closes the hardware gate permanently, so every subsequent strategy discussion starts from verified options rather than assumed ones.
