Skip to main content
Torqheart
← Foundations

Computer science

The memory hierarchy

The closer memory is to the chip, the faster and smaller it is: registers → cache → RAM → storage. Fast work is work whose data sits close.

See it first

3D teardown

Inside a computer

Open full screen
FreeParts, How far is the data🔒 In an upcoming courseAI on a robotDrag to turn, use the buttons to take it apart. Numbers come from published research; our own estimates are marked on the page. A model for learning, not a product spec.

The teardown opens on its “How far is the data” mode, which shows this principle. Drag to turn it.

One step at a time

Step by step

The memory hierarchy

Step 1 of 5

Registers

A few dozen values inside the core. Fastest.

In words

A processor computes many times faster than RAM can feed it, so a small cache sits beside it. Data in cache keeps work flowing; data out of it leaves the chip waiting.

An AI model on a robot must read almost all its weights every time it thinks, so its speed is usually capped by memory bandwidth, not by the TOPS on the box. A model larger than RAM does not run at all.

The formula

time per step ≈ bytes read / memory bandwidth

Where you meet this in a robot

In the computer teardown, see whether models of different sizes fit in memory: the first question when choosing a robot's computer.