LESSON 27.06 · 5 STAGES · 2 CONTROLS · 2 CHECKSPRO · PREVIEW
Pinned and unified memory
Watch 8 pages cross from host RAM to the GPU in four ways.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 2 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 27.06 · COPY BAY8 PAGES · 16 MB · PCIe 4.0 · 80 µs A PAGE
01
Stage 1 of 5 · Pageable pages
Host RAM holds a 16 MB tensor in 8 pageable memory pages. The OS can move any page to swap.
Explain it simply
You see host RAM, the CPU's memory, cut into 8 pages of 2 MB. The operating system may move a pageable page to disk at any time, like the arrow down to swap. The GPU's DMA engine reads fixed addresses, so it can't trust such a page. One page needs 80 microseconds on the link.
Host RAM holds 8 pageable pages of 2 MB. An arrow goes from page 8 to swap. GPU memory is empty. A PCIe 4.0 link at 25 GB/s joins them.
page, DMA copyCPU copy, link, pinnedpage faultCPU waitskernel, run timefree CPU, empty slot
Toy: 8 pages of 2 MB, a CPU copy at 10 GB/s, a 45 µs fault
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
One page takes its size divided by the rate of each hop.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 2 live controls
- 2 mix-up cards and 2 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.