Skip to content
StackDecode
System Design
19. AI System Design and LLM InfrastructureAnimated

GPU Resource Scheduling

Sharing GPUs fairly and efficiently.

The idea

Schedulers queue jobs, pack them and support priorities and preemption.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Job queueSchedulerGPU pool AGPU pool BGPU pool C
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Jobs wait with their requirements: GPUs, memory, priority.

step:
1/4
at:
Job queue
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Jobs request GPUs
  2. 2The scheduler queues them
  3. 3Places by availability and priority
  4. 4Releases on completion

Where it is used

Shared clusters.

Watch out for

Fragmentation leaves GPUs idle.

Related