| ISSUE 103/456 · COMPUTER SCIENCE |
~4 MIN |
FOUNDATION / CS · MEMORY BANDWIDTH · READING DATE 2027-01-12 · JANUARY 2027 — MOTION AND COMPUTING FOUNDATIONS
Why copying data can keep a fast chip waiting
START HERE
A photo editor may need to read every picture value before it can write an adjusted copy. Memory bandwidth is the amount of data that can move between memory and a computing chip per unit of time. A chip can run short of incoming data even when it has unused capacity for arithmetic.
|
/ WHY NOW
This helps explain a disappointing upgrade: making calculations faster does little for a step mostly occupied with moving bytes. First distinguish storage capacity, which is how much fits, from bandwidth, which is how quickly it can be moved.
|
/ THE IDEA
A byte is a unit of stored data, here eight choices each read as 0 or 1. Reading a byte and writing a byte both use a data path. For a simple copy that reads a whole block and writes another, the useful traffic is therefore twice the block’s size. Divide traffic by bandwidth available to the operation to bound the time demanded by that traffic. Use a rate achievable on the relevant path, not an unrelated specification-sheet maximum. Data movement and arithmetic can sometimes overlap, but arithmetic cannot finish using information that has not arrived.
THE FORMAL IDEA
t_move ≥ (D_read + D_written) / B
| t_move = seconds, s, needed for the counted traffic; D_read and D_written = bytes transferred. | | B = available bandwidth in bytes per second. ≥ means at least: other delays can add time. MB means one million bytes, so MB/s means million bytes per second. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Toy copy: read 400 MB and write 400 MB; available bandwidth = 4,000 MB/s. Counted traffic = 400+400 = 800 MB; minimum movement time = 800/4,000 = 0.20 s. Change only bandwidth to 8,000 MB/s: the bound becomes 0.10 s. Doubling arithmetic speed alone leaves the original 0.20 s movement bound unchanged.
|
The calculation counts both sides of the copy, rather than timing only the input size. A transformation that writes less, reuses already-read data or avoids making a needless intermediate copy can reduce traffic without changing the processor’s arithmetic ability.
/ SO WHAT?
Suppose the editor creates three full temporary copies during one adjustment. Keeping values nearby while several operations use them may remove some trips through a slower memory path. The important question is not simply how many calculations the app performs, but how often the same data must travel to support them.
ONE CAVEAT |
| Actual hardware moves data in blocks and may add hidden traffic, caching and shared-path contention. This original toy example uses decimal MB consistently and does not predict a particular device’s speed. |
KEEP THIS
When data movement dominates, reduce the bytes moved or improve the relevant path; unused arithmetic capacity cannot supply missing data.
|
NEXT: Why one ball stops when the next starts moving
|