The Scheduler Did Not Change. The Invoice Did.

Notes from Udesh Udayakumar’s GDG Kuwait session, “Scaling AI on GKE: Provisioning and Optimizing GPU & TPU Workloads in Production,” read against my upcoming CPU series.

The scheduler did not change. The invoice did.

Eighteen percent. That was the sustained GPU duty cycle on one of Udesh’s slides, for a plain Kubernetes cluster running one pod per GPU on static node pools. You pay for the whole H100. You use under a fifth of its time. The next bar, GKE time-sharing plus container image streaming, read 58%. The last one, MIG partitioning plus Kueue plus Dynamic Workload Scheduler flex-start, read 86%.

I have spent the last few weeks writing a five-part series on CPUs: scheduling, time slicing, vCPUs, NUMA. It is not published yet, so treat the post numbers below as a preview of what is coming. Sitting in that room, I kept recognizing slides. Every mechanism Udesh showed had a twin in that series. GPU time-sharing is the CPU time slice. MIG is partitioning. Gang provisioning is the cure for lock-holder preemption. Topology-aware placement is NUMA with racks instead of sockets.

So is a GPU cluster just a CPU cluster with bigger numbers? Not quite, and the gap is where the money goes. Three things make the old problems more expensive on accelerators. Kubernetes hands out GPUs in whole units. Distributed training needs every worker at once. And the gauge everyone watches measures time, not work. This post walks the talk in that order, then answers the questions I asked that the room left open.

A disclosure first. I work in presales with a Google Cloud partner, and my on-premises preference is Nutanix. I will mark where that shows.

Who was talking?

Udesh Udayakumar is a Google Developer Expert in Cloud, a cloud architect at Aviato Consulting, and a mentor with Google for Startups in MENA. He runs a YouTube channel called The Cloud Pilot and writes at pilotudesh.medium.com. He opened by saying that almost every company is burning money just running AI hardware. Then he spent the session on how to burn less.

Why does a GPU start at 18%?

Because Kubernetes was never built to share one. The Kubernetes GPU documentation is blunt: containers do not share GPUs, GPUs are not overcommitted, and a container cannot request a fraction of one. Your CPU request can be 250m. Your GPU request is 1 or nothing.

Udesh’s evolution slide called this stage “integer locks.” Post 4 of the CPU series drew the same line for vCPUs: weights share, quotas cap, and only pinning partitions. Partitioning buys isolation, and a pinned core sits idle whenever its guest does. Stage 2 Kubernetes pins every inference pod to a whole GPU. A notebook that runs one cell an hour holds 80 GB of HBM the entire time.

The middle bar paired time-sharing with container image streaming, which attacks a quieter waste: a GPU node sitting idle while a multi-gigabyte CUDA image downloads.

Is 18% an exaggeration? I could not find a published source for the 18, 58 and 86 split, so treat it as the speaker’s illustration. Independent data points the same way. Microsoft studied two months of its Philly training cluster, around 100,000 jobs, and found that even with most GPUs allocated, the GPUs in use averaged only about 52% hardware utilization. Allocated ≠ used.

The 4.5x throughput label on the last bar does have a source. Google’s own GPU sharing post reports a 4.5x throughput increase on A100s from GPU sharing.

Weight, sibling, or partition?

The sharing slide is the one to keep. It listed four strategies, and three of them map straight onto the CPU series.

GKE strategy What tenants share Isolation CPU series twin
GPU time-sharing The whole GPU, in turns, up to 48 clients No memory limit enforcement, no fault isolation Time slicing and weights (posts 2 and 4)
NVIDIA MPS SMs at the same moment, plus memory bandwidth, caches and capacity No error isolation; each client’s SM share can be capped SMT siblings (posts 3 and 5)
MIG Nothing inside a slice: about 1/7 of the SMs, about 1/8 of memory with its controllers Memory QoS enforced in hardware Partitioning and pinning (post 4)

Time-sharing is a weight. GKE’s sharing guide says it provides no memory limit enforcement between shared jobs and that the rapid context switching may add overhead. NVIDIA’s time-slicing docs say it trades MIG’s memory and fault isolation for more users per GPU. Everyone gets turns. Nobody gets a wall. And unlike a KVM guest, a time-shared pod has no st column. I know of no standard per-tenant metric that tells a pod how long it waited for the GPU. Its kernels just take longer.

MPS is a sibling. Two hyperthreads on one core run at the same moment and fight over the same caches. MPS does that with CUDA processes. NVIDIA’s MIG guide says MPS offers no error isolation between clients, and that memory bandwidth, caches and capacity are all shared. You can cap each client’s share of SMs, but the scheduling hardware stays shared. Post 5 said the same about SMT: siblings share a core, and isolating them costs throughput you have to measure.

MIG is a partition. The same guide defines a memory slice as roughly one eighth of the GPU’s memory resources, capacity and bandwidth both, including the memory controllers and cache that go with it. An SM slice is roughly one seventh of the SMs. A GPU instance gets memory QoS. On an H100 80GB, NVIDIA’s GPU Operator reports a 1g.10gb instance as 16 SMs and 9,984 MiB. That is not a time slice. It is a smaller GPU with its own memory path, which is Post 5’s argument in miniature: memory you do not share is memory you can predict.

Time-sharing is concurrency. MIG is parallelism. MPS is parallelism without walls.

So should a private cloud SLA run on MIG?

That was my question to Udesh, close to word for word. I said I had an SLA to meet and asked whether MIG was the answer. He answered with hybrid cloud: fall back between public and private when one of them fails. Good advice for availability. It answers a different question.

My answer is yes, MIG for latency SLAs, with three costs written into the proposal. First, shapes are fixed. You get NVIDIA’s published profiles, not arbitrary sizes, so you bin-pack and you strand capacity. Second, NVIDIA’s comparison table lists MIG reconfiguration as “When Idle.” You drain a GPU to reshape it. Third, not every GPU supports MIG. Check the exact model on your BoQ against NVIDIA’s list before you promise anything.

A worked example shows the first cost. Llama 3.1 8B in BF16 is about 16 GB of weights. It does not fit a 1g.10gb slice. It fits a 2g.20gb slice, which the GPU Operator reports as 20,096 MiB, with roughly 2.7 GiB left once vLLM claims its default 90% of the slice. At 128 KiB of KV cache per token, that is about 22,000 tokens: five concurrent 4K conversations, fewer once activations take their share. Isolation > density. Price the density loss honestly.

Another attendee asked the on-premises version: compliance keeps his models local, so how do several share one GPU? Scale idle ones to zero, Udesh said. That frees the GPU and bills you at the next request. A 70B model in FP8 is 70.6 GB; at 2 GB/s of storage reads, that is 35 seconds before the first token. NAI’s endpoint hibernation, which I covered in The Model Is the Easy Part, makes the same trade on Nutanix.

Why does a training job need all its GPUs at once?

Because the slowest worker sets the pace. Data-parallel training ends each step with an all-reduce, and an all-reduce waits for every rank. Twelve of sixteen GPUs is not 75% of a job. It is twelve idle GPUs waiting for four that are not coming.

Post 4 called this lock-holder preemption. Inside a guest, vCPU 2 holds a spinlock and the host deschedules it. vCPUs 0, 1 and 3 spin on a lock whose owner is not running. Swap the vCPUs for pods and the spinlock for a collective, and you have the GPU version. The Philly paper names the requirement directly: deep learning frameworks require gang scheduling, which reduces how flexibly a cluster can schedule.

Udesh’s slide showed the fix in four steps: suspend the job, request capacity, boot all nodes together, release them after the job. Here is the mechanism under it. You create a Job with suspend: true and a Kueue queue label. Kueue reserves quota, then creates a ProvisioningRequest through its provisioning admission check. GKE’s Dynamic Workload Scheduler fills that request all at once or not at all. Only then does Kueue admit the job and flip suspend to false. Per GKE’s flex-start docs, those nodes run for at most seven days, and a GPU request waits up to 14 days by default.

Two corrections to the slide’s manifest. Its comment said the job is “Released by DWS.” DWS supplies the nodes; Kueue releases the job. And it put limits straight under spec. A batch/v1 Job has no such field. The GPU limit lives on the container. Here is the pair as I would type it, trimmed from GKE’s queued provisioning guide:

gcloud container node-pools create dws-a3 \
  --cluster=ai-prod-cluster \
  --location=LOCATION \
  --machine-type=a3-highgpu-8g \
  --accelerator=type=nvidia-h100-80gb,count=8,gpu-driver-version=latest \
  --flex-start \
  --enable-queued-provisioning \
  --enable-autoscaling --num-nodes=0 --total-max-nodes=16 \
  --no-enable-autorepair
apiVersion: batch/v1
kind: Job
metadata:
  generateName: train-
  labels:
    kueue.x-k8s.io/queue-name: dws-q
  annotations:
    provreq.kueue.x-k8s.io/maxRunDurationSeconds: "86400"
spec:
  parallelism: 2          # two a3-highgpu-8g nodes, 16 GPUs
  completions: 2
  suspend: true           # Kueue sets this to false on admission
  template:
    spec:
      tolerations:
      - key: cloud.google.com/gke-queued
        operator: Exists
        effect: NoSchedule
      containers:
      - name: trainer
        image: <your-training-image>
        resources:
          limits:
            nvidia.com/gpu: 8
      restartPolicy: Never

Notice --no-enable-autorepair. GKE’s own example disables auto-repair on queued-provisioning pools, because repairing a node can disrupt the workload running on it. The talk’s telemetry slide listed node auto-repair and checkpointing side by side. For a gang, checkpointing is the part that saves you.

What does 86% actually measure?

Time. Not work.

The duty cycle behind nvidia-smi‘s GPU-Util and DCGM’s DCGM_FI_DEV_GPU_UTIL is the share of the sample period during which at least one kernel was running. One kernel on one SM counts the same as every SM at full load. Brendan Gregg made the CPU version of this argument in 2017, in CPU Utilization is Wrong: %CPU counts cycles stalled on memory as busy. Duty cycle is the same mistake at a coarser grain.

LLM decode makes it worse, because decode is bound by memory bandwidth. Every generated token streams the weights out of HBM. A 70B model in FP8 is 70.6 GB. At the H100 SXM’s 3.35 TB/s, one stream at batch size 1 tops out near 47 tokens per second, whatever the tensor cores could do. The GPU reads 100% busy while its tensor pipes mostly wait.

To be fair to the talk, the telemetry slide listed tensor core activity and VRAM saturation next to duty cycle. Chart them together. DCGM’s profiling fields DCGM_FI_PROF_SM_ACTIVE, DCGM_FI_PROF_PIPE_TENSOR_ACTIVE and DCGM_FI_PROF_DRAM_ACTIVE tell you how wide, how useful and how memory-bound the busy time was. A dashboard that shows only duty cycle will always agree with your purchase order.

Where does the GPU sit?

Post 5 opened with “Memory has a location.” So does a GPU. So does a TPU chip. So does a rack.

Philly’s second lesson was locality: spreading one job across servers lowered utilization, so the authors told schedulers to trade queueing delay for locality. Kueue’s Topology Aware Scheduling is that advice as an API. Label nodes with block and rack, annotate a PodSet with kueue.x-k8s.io/podset-required-topology, and the job waits until one rack can hold all of it. That is numactl --membind with a forklift.

The TPU slide needs one fix. It described Cloud TPU v5e and Trillium with a 3D torus. Google’s v6e documentation lists both v5e and v6e as a 2D torus of 256 chips. The 3D torus belongs to v5p. The difference matters for the same reason sockets matter: hop count sets the cost of every collective.

Inside one A3 node, the question shrinks back to Post 5’s scale: eight H100s, CPU sockets, and NICs hanging off PCIe switches. Run nvidia-smi topo -m before you blame the network. A data loader on the wrong side of that map is a remote memory access with extra steps.

Which of my questions deserved a longer answer?

The first was sizing. Here is the exchange, close to the transcript.

Me: How can you size this kind of workload on Google Cloud? Are there any tools from Google or another vendor that offer this?

Udesh: You’re asking for a trade secret here.

He added that he had not tested any tool enough to endorse one. Fair. So here is the method I use, and it needs no tool. Size memory, then concurrency, then bandwidth.

Weights are parameters times bytes per parameter. KV cache per token is 2 × layers × KV heads × head dimension × bytes. Llama 3.1 70B’s config gives 80 layers, 8 KV heads and a head dimension of 128.

Weights, FP8:        70.6B params x 1 byte              = 70.6 GB (65.8 GiB)
KV per token, BF16:  2 x 80 x 8 x 128 x 2 bytes         = 320 KiB
One 4K sequence:     4,096 x 320 KiB                    = 1.25 GiB

Concurrency, Little's Law (L = arrival rate x time in system):
  4 requests/s x 6 s average latency                    = 24 in flight
  24 x 1.25 GiB                                         = 30 GiB of KV cache

One H100 80GB at vLLM's default 90% cap                 ~ 72 GiB
  minus FP8 weights                                     ~ 6 GiB left

The model fits on one GPU. Its users do not. One H100 holds about a fifth of that traffic, before activations and runtime overhead take their cut, so this endpoint is two GPUs, not one. Bandwidth then sets your latency floor, as the 47 tokens per second above shows.

Then the P95. I asked whether “peak” meant the 95th percentile, and he said yes. I would add two words: of concurrency. A P95 of requests per second hides how long each request stays. Little’s Law turns rate into occupancy, and occupancy is what fills HBM. On-premises, the peak you size for is the one you refuse to queue. Everything above it waits.

The second was the OS tax. I said Kubernetes “eliminates the hardware tax of the operating system.” He said “Correct.” We were both half right. Containers drop the guest kernel that a VM carries, and my earlier post showed how small even the hypervisor’s share can be. But the node still pays Kubernetes. GKE’s node sizing page reserves 25% of the first 4 GiB of memory, 20% of the next 4 GiB, and another 100 MiB for eviction. Take the other attendee’s example of one CPU and 8 GB. On GKE, that node gives up about 1.9 GiB, close to 24% of its memory, before your first pod lands. OpenShift’s community build, OKD, uses the same tiers. The tax moved. It did not disappear.

Does any of this travel to NKP?

My last question was how GKE’s orchestration layer compares with OpenShift or the Nutanix Kubernetes Platform. Udesh said to benchmark against your own use case. True. Here is the concrete version.

The scheduling logic is upstream, so it travels. Kueue, JobSet and the NVIDIA GPU Operator, with its time-slicing, MPS and MIG modes, run on any conformant cluster. The NKP datasheet lists GPU Operator support in the Pro edition, and NKP runs on Nutanix, VMware, bare metal, AWS, Azure and GCP. NKP 2.16 added vGPU node pools alongside passthrough. And Kubernetes 1.34 made Dynamic Resource Allocation generally available, the API that lets a pod claim a device by its attributes instead of an integer count.

What does not travel is the capacity pool. DWS works because Google owns buildings full of GPUs it can lend you for seven days. On-premises, your flex-start is the BoQ you signed last year. Kueue will still give you fair-share quotas, gang admission and rack-aware placement on Nutanix. It will not conjure a ninth GPU. That is why the sizing math matters more on your own racks than in the cloud. In GKE, a bad estimate costs money. On-premises, it costs the SLA. One caveat from my own notes: NVIDIA’s AI Enterprise matrix does not support partial-GPU passthrough on Nutanix, so confirm MIG and vGPU support for your exact GPU, driver and hypervisor before you write either into a contract.

Two footnotes I checked afterward

Neither changes the talk’s argument. Kubernetes was not renamed in 2015. Joe Beda checked in the first public commit on June 6, 2014, Google announced it at DockerCon four days later, and 1.0 shipped in July 2015. The system running Google’s own services was Borg; Kubernetes is its open-source successor. And JobSet is not for scheduled database backups, which is a CronJob’s job. JobSet groups Jobs into one distributed workload, a leader and its workers, which is why it belongs on a training slide.

One more time

The scheduler did not change. The invoice did.

Time slices, siblings, partitions, gangs, locality. You met all of them on a CPU, where a wasted slice cost microseconds. On an H100 the same mistake is billed by the hour, eight GPUs at a time. Learn the CPU version first. Then read the GPU bill.

Thanks to Udesh for the session, and to GDG Kuwait for hosting it.

What to do on Monday

  1. Chart SM activity and tensor-pipe activity next to duty cycle, because duty cycle measures time, not work.
  2. Use MIG for latency SLAs and time-sharing for dev notebooks, and price the stranded capacity of fixed profiles.
  3. Put distributed training behind Kueue with gang admission; a partial allocation is a full bill.
  4. Size LLM endpoints as weights plus KV cache at Little’s Law concurrency, then check bandwidth.
  5. Subtract kubelet reservations before you promise allocatable memory on a small node.
  6. Confirm MIG and vGPU support for your exact GPU, driver and hypervisor before it goes in an SLA.

Published November 8, 2026