Home / Learn / AI Infrastructure / Why GPUs Wait for Data

On this pageA simple pictureCause 1: StorageCause 2: CPU preprocessingCause 3: The networkCause 4: MemoryHow to tell which cause appliesA caution about utilization figuresWhat helpsFixing one reveals the nextCommon questionsRelated guides

Why GPUs Wait for Data

GPUs in AI systems often sit idle waiting for data. A GPU can only compute on what it has been given, and four things commonly fail to supply it fast enough: storage, the network, CPU preprocessing and memory. Because GPUs are the most expensive part of an AI system, the time they spend waiting is costly. Finding out which of the four is responsible is the first step toward fixing it.

A simple picture

Think of a GPU as a very fast machine on a production line. It can process material far quicker than anything else in the factory. If the conveyor feeding it is slow, the machine stands still between deliveries. Buying a faster machine does not help. The conveyor is the problem.

In an AI system, the conveyor has several stages. Data is read from storage, prepared by CPUs, transferred to the GPU and, in large systems, exchanged with other GPUs over a network. A delay at any stage leaves the GPU with nothing to do.

Cause 1: Storage

Training requires a steady stream of data. A dataset may be read many times over the course of a run.

  • Throughput. The storage system may not deliver enough data per second.
  • Small files. Datasets of millions of small files, such as images, are slowed by the overhead of locating and opening each one.
  • Random access. Training typically reads data in shuffled order, which is harder on storage than reading sequentially.
  • Checkpoints. Saving the state of a large model writes a great deal of data, and training may pause while it completes.
  • Distance. Data held in remote or slow storage tiers takes longer to fetch.

Cause 2: CPU preprocessing

Data from storage is usually not in the form a model needs. Images are decompressed, cropped and resized. Audio is transformed. Text is converted to tokens. Random variations are applied to improve training.

This work is traditionally done by CPUs. A modern server may contain several GPUs, each able to consume data much faster than the available CPU cores can prepare it. The CPUs run at full load and the GPUs wait.

This cause is common and easy to miss, because the GPUs and storage both appear to be working correctly.

Cause 3: The network

When a model is trained across many GPUs in different servers, they must exchange results at every step.

  • Synchronization. A training step completes only when all the GPUs have received what they need. The slowest transfer determines when everyone can continue.
  • Congestion. AI traffic comes in large synchronized bursts, which can overwhelm parts of the network.
  • Uneven path use. If traffic is not spread well across available links, some become overloaded while others are idle.
  • Packet loss. A lost packet that has to be resent introduces a delay that is long compared with the computation.

In distributed training, the network frequently accounts for a meaningful share of the total time.

Cause 4: Memory

Even with data on hand, a GPU can be limited from within.

  • Memory bandwidth. The arithmetic units need numbers faster than memory can supply them. For large models, this is often the true limit on throughput.
  • Memory capacity. If the model and its working data do not fit, the system must use smaller batches or move data in and out, both of which lower efficiency.
  • Transfers from host memory. Moving data from the server’s main memory into GPU memory takes time, and inefficient handling adds copies.

In language model inference, the memory holding the state of each conversation grows with the conversation’s length and limits how many users one GPU can serve.

How to tell which cause applies

ObservationLikely cause
GPU utilization low, CPU cores at full loadCPU preprocessing
GPU utilization low, storage at its limitStorage
GPU utilization dips in a regular pattern during trainingCheckpointing or data loading
Throughput per GPU falls as more GPUs are addedNetwork
GPU reports high utilization but throughput is below expectationMemory bandwidth
Out-of-memory errors or forced small batch sizesMemory capacity

Profiling tools break down each training step into data loading, transfer, computation and communication. Measuring first avoids spending money on the wrong component.

A caution about utilization figures

The utilization figure commonly reported for a GPU shows the share of time during which it was doing any work at all. It does not show how much of the GPU’s capacity was used during that time. A GPU can report high utilization while much of its arithmetic hardware is underused because of a memory limit. Throughput, measured in samples or tokens per second, is the more reliable indicator.

What helps

For storage

  • Faster storage media and parallel file systems
  • Dataset formats that pack many small items into larger files
  • Local caching of frequently used data
  • Direct transfer from storage to GPU memory

For preprocessing

  • Performing preprocessing on GPUs
  • Preparing data in advance
  • More efficient data loading pipelines
  • Moving infrastructure work off the CPUs so they have more capacity for data preparation

For the network

  • Higher-bandwidth, lower-latency networks built for AI traffic
  • Remote direct memory access
  • Better load balancing and congestion control

For memory

  • Accelerators with more and faster memory
  • Lower-precision number formats that reduce the data to be moved
  • Memory tiering, which holds less urgent data on cheaper media

Fixing one reveals the next

These causes interact. Once storage is fast enough, preprocessing may become the limit. Once that is solved, the network may be next. Improvement is a matter of repeatedly measuring, removing the largest bottleneck and measuring again.

Common questions

Why would an expensive GPU be idle?

Because it depends on other parts of the system to supply data. If storage, CPUs, the network or memory cannot keep up, the GPU has nothing to work on.

Does adding more GPUs solve the problem?

Usually not. More GPUs need even more data. If the supply was already insufficient, each GPU will simply be idle for longer.

Is this only a training problem?

No. Inference has its own versions, particularly limits on memory and delays in moving model state, although the details differ.

Related guides