Seeing wasted GPUs is not the same as cutting them. Every cluster I look at wastes 60-70% of its GPU budget on idle or over-allocated resources, and the fixes are all documented, but they are documented in four different places with four different caveats. Here is the whole picture in one place.
There are three levers. They solve different problems and most clusters need two of them.
Lever 1: Time-slicing, for dev and CI
Time-slicing lets N pods share one physical GPU by time-multiplexing it. You configure the NVIDIA device plugin to advertise, say, 8 replicas per GPU:
# nvidia-device-plugin config version : v1 sharing : timeSlicing : resources : - name : nvidia.com/gpu replicas : 8
Enter fullscreen mode
Exit fullscreen mode
Now eight dev notebooks or CI jobs can each request nvidia.com/gpu: 1 and land on one card.
The catch that bites everyone: there is no memory isolation. One pod can OOM the other seven.…