Chiosa
SYSTEMS · learning path

Measure the destination cost before moving serving work or data

7 min3 papersbeginner
Updated
Default TBN prefetching mechanism (Ganguly et al., 2019).
Default TBN prefetching mechanism (Ganguly et al., 2019).Figure 2 · Ember keeps oversized GPU workloads moving with adaptive placement · Senad-Leandro Lemes Galera et al. · CC BY 4.0

A serving system can run short of GPU memory, CPU time for preparing requests, or bandwidth for retrieving cached model state. Moving data or work addresses each pressure differently and introduces a cost at its destination.

The useful first step is to name the constrained resource and choose an outcome that tests it. The studies report generated-token rates, frontend request capacity, and a calculated cache-transfer threshold. Those measures answer different questions; none alone establishes a general serving gain.

What you will understand

  • Which resource is under pressure before a serving system moves work or data?

  • Why can generated tokens per second, sustained frontend requests per second, and a calculated bandwidth threshold lead to different placement decisions?

  • What fixed costs must be considered before treating remote cache reuse as faster than recomputation?

Name the pressured resource

Imagine a coding assistant that repeatedly sends its growing conversation back to a model. A prefix cache can reuse earlier model computation, yet the serving system still has to turn the incoming text into token IDs before checking that cache.

Long, mostly repeated requests can therefore expose work at the frontend even when the model has little new text to process. Moving that preparation work may help the frontend, but the useful outcome to check is how many requests it can handle within its latency target.

Now suppose the model’s working data exceeds the GPU’s own memory. In the GPU memory study, ordinary managed memory can pull data into the device on demand; once full, it must also make room, and those moves can stall computation.

Leaving data in host memory avoids some moves, but GPU reads then cross the connection to the host. This is a different pressure from text preparation: a placement choice must balance access speed against the cost of repeatedly moving data.

A third pressure appears when a server saves model state from an earlier prompt in a remote cache. The saved state can spare the GPU from rebuilding it, but fetching it consumes transfer time and incurs other work even on a cache hit.

The three situations share a practical question: what resource does a proposed move relieve, what does the destination charge, and which outcome would show whether the exchange helped? Their answers require different measurements rather than one combined performance score.

Where the lesson goes next

  • Keep demanded data in GPU memory

  • Move text preparation through the GPU

  • Price a remote cache hit

  • Test the outcome the placement is meant to change