TGViewer
DevOps&SRE Library DevOps&SRE Library @devopslibrary · 19.9K subscribers
Post #7557 2.95K
GPU Starvation in Kubernetes: How Dynamic MIG Partitioning Saved Our GPU Budget

In Kubernetes clusters, GPUs are expensive. Really expensive. And when your data science team is fighting over GPU resources like it’s Black Friday at Best Buy, you know something’s broken.

That was the challenge I faced a few years ago. I implemented this solution back then, and though it’s been a while, I thought now would be a great time to share the experience.

We had a k8s cluster with 8 NVIDIA A100 GPUs, and our data scientists were… unhappy. Small model training jobs waited hours for GPU access while large distributed training jobs hogged entire GPUs at 30% utilization.

The culprit? GPU allocation granularity. Kubernetes treats GPUs as atomic resources, you either get a whole GPU or nothing. There’s no middle ground.

I needed to fix this. And the solution wasn’t what I expected.


https://medium.com/@nscharan1/gpu-starvation-in-kubernetes-how-dynamic-mig-partitioning-saved-our-gpu-budget-d242d6e56581
More from @devopslibrary
  1. Sep 25, 2026kstack Kstack is a skill pack for Claude Code that helps you perform monitoring, troublesh…
  2. Sep 25, 2026Klarity Klarity is an open-source, enterprise-grade Kubernetes observability dashboard bui…
  3. Sep 24, 2026✨ Как настроить PostgreSQL для продакшен-нагрузок При переходе к продакшен-нагрузкам важно…
  4. Sep 24, 2026IPMan - IPSec Connection Manager for Kubernetes IPMan is a Kubernetes operator that simpli…
  5. Sep 24, 2026Autoscalable GitLab runners on AWS EC2 This article shares our experience of getting rid o…
  6. Sep 23, 2026From Ingress to Gateway API: How We Modernized Networking on Our GKE Cluster We recently m…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →