NUMA and chiplets, in 18 keywords

One machine, many distances: where a thread runs relative to its data decides its speed.

Your win today You can explain the 18 keywords, compute the slowdown when a thread uses memory or cache on another socket or chiplet, and argue whether a data structure can be split across chiplets. That covers the exam questions on Chiplets p.28. About 40 minutes.

1 · Why CPUs went parallel

Moore’s law
The number of transistors on a chip doubles roughly every two years Chiplets p.4. It kept going after 2005. What stopped was clock speed and power, not the growth in transistor count p.5.
Dennard scaling
As transistors shrink, their power density stays constant, so power grows only with chip area p.4. It ended around 2005. Since then, extra transistors go into more cores instead of higher clock speeds p.3.
implicit vs explicit parallelism
Implicit (vertical): instruction/data parallelism and SMT inside one core, done by the hardware, an “(almost) free lunch”. Explicit (horizontal): multicore, multi-socket and distributed systems, where “you must work hard to exploit it” pp.6–9. Using more cores only speeds things up if your software is written to use them.
SMT simultaneous multithreading
Several hardware threads share the execution cycles of one core p.6. Two SMT threads on the same core share its L1 and L2, so they communicate the fastest (<5 ns) pp.13–14.

What ended around 2005 and pushed CPUs towards multicore?

Transistor counts kept doubling; constant power density did not Chiplets pp.3–5.

Which of these is implicit parallelism?

Vertical parallelism inside a core is done by hardware, an “(almost) free lunch” p.7.

2 · NUMA: memory has an address and a distance

NUMA non-uniform memory access
In a multi-socket machine, each CPU has its own local DRAM. Reaching the other socket's DRAM is slower p.10; see also 0002, MemoryAndCache p.7. Threads communicate through memory. On the same core that goes via L1/L2, on the same CPU via L3, and across CPUs via main memory p.13.
directory-based coherence
A directory records which caches hold each line. It can be centralised or distributed, and it costs extra hardware and latency. It is used across NUMA regions and for CXL devices, because PCIe on its own is not cache-coherent p.12. Broadcast snooping (0002) does not scale. Coordination cost grows faster than linearly with the number of cores and sockets p.13.
1:2 latency · 2:1–3:1 bandwidth
Communication latency: same core <5 ns, same socket ~80 ns, other socket ~160 ns, so about 1:2 local to remote. Bandwidth: local 60–90 GB/s vs remote 20–30 GB/s, so about 2:1 to 3:1 pp.14–15. These are the numbers to use in calculation questions.
first-touch allocation
Linux places a physical page on the NUMA node of the thread that touches it first. By default, processes are scheduled on any CPU, and they can move p.16. If a thread fills its data on node 0 and is later moved to node 1, every access becomes remote.
numactl
numactl -H shows the nodes, their CPUs and memory sizes, and the node distances (10 = local, 21 = remote). --cpunodebind=0 --membind=0 pins a process and its memory to node 0 p.16. A distance of 21 vs 10 roughly predicts that remote access costs about 2× local.

A thread initialises a big array on node 0 and is then moved by the scheduler to node 1. What happens?

With first touch, the pages were placed on node 0 when the thread first wrote them. After the move, the thread pays the remote ~160 ns and 20–30 GB/s pp.14–16.

Two threads exchange data constantly. Which placement is fastest?

Same core: <5 ns via L1/L2; same socket ~80 ns; other socket ~160 ns pp.13–14.

numactl -H shows distances 10 and 21. Remote access costs about…

21/10 ≈ 2, matching the 1:2 latency rule pp.14, 16.

3 · Chiplets: one CPU made of several dies

chiplet die · tile · CCD
A modular silicon block with a defined interface. Several chiplets are packaged together and look like one CPU. AMD Zen popularised it in 2017; Intel, Apple (an Ultra is 2 Max chips) and Arm vendors now do the same p.19. To software it looks like one CPU, but “the physics underneath is now a micro-network” p.20.
yield
The fraction of manufactured dies that work. It falls exponentially with die size, and a single defect can make a whole monolithic die unusable. Dies are also limited to ~800–850 mm² p.19. With chiplets, a defect costs one small die instead of the whole CPU. This is the main economic reason for chiplets.
I/O die / mixed process nodes
The compute dies use the newest, expensive process node. I/O, memory controllers and analog parts use an older, cheaper node pp.19, 24. This makes “Lego” CPUs possible: fast and efficient cores, accelerator dies, even dies from other vendors p.24.
2D · 2.5D · 3D packaging
2D: an MCM on a substrate, with SerDes links such as AMD Infinity Fabric (~100+ GB/s per link). 2.5D: a silicon bridge between dies (Intel EMIB). 3D: dies stacked on top of each other (Foveros, V-Cache) p.20. Each die-to-die hop adds latency, so it matters which die a thread and its data are on.
UCIe
Universal Chiplet Interconnect Express (2022+), an open standard for die-to-die links, “PCIe for chiplets” pp.20, 24. It is the first way to combine silicon from different vendors in one package.

What is the main reason to build a CPU from chiplets?

Yield falls exponentially with die size; small dies waste less silicon p.19.

Which packaging stacks dies on top of each other?

Foveros and V-Cache are 3D; EMIB is a 2.5D bridge p.20.

4 · Chiplets bring NUMA inside one socket

“shared” LLC
A datasheet's “64 MB shared L3” is really the sum of the per-chiplet L3s, e.g. 2 × 32 MB. A thread has 32 MB near and 32 MB far, and the far part costs ~2× p.21. If your working set is larger than one chiplet's L3, the location of the thread starts to matter.
sub-NUMA chiplet-scale NUMA · SNC
The NUMA effects seen between sockets reappear inside one socket. Vendors expose this: AMD can report each L3 as a NUMA node, and Intel SNC (Sapphire Rapids) reports each die cluster as its own node. Cross-die coherence uses a directory with a home node per line, and a cross-die line transfer costs >2× on-die pp.22–23. NUMA now happens at three scales: core cluster → chiplet → socket. DBMS task placement, buffer pools and lock placement must take chiplets into account.
3D V-Cache
An SRAM die bonded on top of a compute chiplet, which grows its L3 from 32 to 96 MB or more p.25. It adds capacity, not speed. Bigger working sets fit (column scans, hash joins). Some CPUs have V-Cache on only one chiplet, which makes placement matter again.
topology-aware placement
Discover the topology (lscpu, hwloc). Keep each thread and its data on the same CCD (L3 domain). Shard data structures and buffer pools per chiplet. Replace one global spinlock with hierarchical or combining locks. Measure coherence traffic with perf c2c p.26. The rule: each thread next to its data.

One thread uses a 40 MB hash table on a chip with 2 × 32 MB L3. What hurts it?

Only 32 MB is near; the rest costs ~2× from the other chiplet p.21.

What does 3D V-Cache add to a chiplet?

“Stacking adds capacity, not speed” p.25.

5 · Keyword recall drill

Cover the page. For each keyword, say the definition and why it matters, then open it to check.

Moore’s lawTransistor count doubles about every 2 years; it is still going.
Dennard scalingConstant power density as transistors shrink; ended ~2005, which led to multicore.
implicit vs explicitThe hardware does it for you (ILP, SMT) vs you must program for it (cores, sockets, clusters).
SMTHardware threads sharing one core's cycles; they share L1/L2.
NUMALocal DRAM is faster than the other socket's DRAM.
directory coherenceTracks who holds each line and sends point-to-point messages; used across NUMA regions and for CXL.
1:2 · 3:1~80 vs ~160 ns latency; 60–90 vs 20–30 GB/s bandwidth.
first touchA page goes to the node of the thread that touches it first.
numactlShows nodes and distances (10/21); pins CPUs and memory.
chipletSmall die with a defined interface; several per package.
yieldFalls exponentially with die size; small dies waste less.
I/O dieOlder, cheaper process node for I/O and memory controllers.
2D · 2.5D · 3DSubstrate + SerDes / silicon bridge (EMIB) / stacked dies (Foveros, V-Cache).
UCIeOpen die-to-die standard, “PCIe for chiplets”.
“shared” LLCSum of per-chiplet L3s; the far half costs ~2×.
sub-NUMANUMA inside a socket; AMD L3-as-node, Intel SNC.
3D V-CacheStacked SRAM adds L3 capacity, not speed.
placementlscpu/hwloc, thread next to data, shard per chiplet, hierarchical locks, perf c2c.

6 · True / False

Click True or False. The explanation appears after you answer.

T / FMoore’s law stopped around 2005, which is why CPUs switched to multicore.

False. Dennard scaling stopped. Transistor counts kept doubling, but power and clock speed hit a wall pp.3, 5.

T / FChiplets have changed how the internals of a CPU core work.

False. Chiplets change how a CPU is manufactured and packaged, and therefore its cache and memory hierarchy. The core itself is unchanged pp.27–28.

T / FRunning threads on multiple cores is explicit parallelism: the software must be written to use it.

True. Horizontal (multicore, multi-socket, distributed) parallelism is explicit p.7.

T / FBy default, Linux keeps a process on the NUMA node where its memory lives.

False. By default, processes are scheduled on any CPU, while memory is placed by first touch. You need numactl to pin them together p.16.

T / FPCIe is cache-coherent, so a PCIe accelerator can share cache lines with the CPU without extra protocols.

False. PCIe on its own is not coherent. CXL adds coherence, using a directory p.12.

T / FOn a 2-chiplet CPU sold with “64 MB shared L3”, every thread sees 64 MB at the same latency.

False. It is 32 MB near plus 32 MB far, and the far part costs ~2× p.21.

T / FBetween chiplets, broadcast snooping is replaced by directory-based coherence with a home node per line.

True. Snooping needs a fast broadcast medium on one die. Across dies, point-to-point messages go through the directory p.22.

T / F3D V-Cache makes the L3 faster.

False. “Stacking adds capacity, not speed” p.25.

T / FSplitting a CPU into chiplets improves yield, because one defect only throws away one small die.

True p.19.

T / FDirectory traffic only affects remote accesses; local cache hits are just as fast as before.

False. “Directory traffic makes even local hits slightly slower” p.22.

7 · What is …? no options: answer aloud, then reveal

What isDennard scaling, and why did its end lead to multicore CPUs?

Show answer

As transistors shrink, power density stays constant, so smaller transistors can run faster without getting hotter. When it stopped (~2005), clock speeds could no longer rise without overheating, so the extra transistors were spent on more cores pp.3–5.

What isthe first-touch policy?

Show answer

Physical memory is placed when a page is first accessed, on the NUMA node of the thread that touches it p.16.

What isa home node in directory-based coherence?

Show answer

The place where a cache line's directory entry lives. Requests go to it, and it forwards them and invalidates other copies. Latency depends on the number of hops to it p.22.

What isan I/O die and why is it on an older process node?

Show answer

The chiplet with I/O and memory controllers. Those parts gain little from the newest node, so a mature, cheaper node keeps cost down pp.19, 24.

What isUCIe?

Show answer

Universal Chiplet Interconnect Express, an open die-to-die interconnect standard (2022+), “PCIe for chiplets”. It allows mixing dies from different vendors pp.20, 24.

What isIntel SNC?

Show answer

Sub-NUMA clustering (Sapphire Rapids). Each die cluster in a socket is exposed to the OS as its own NUMA node p.23.

What iswhat does perf c2c measure, and why is it useful on chiplet CPUs?

Show answer

Cache-to-cache (coherence) traffic: which cache lines bounce between cores or dies. It shows false sharing and cross-die contention p.26.

What isa hierarchical (combining) lock, and why prefer it over one global spinlock?

Show answer

Threads first synchronise within their own chiplet, and only one representative per chiplet competes globally. This keeps most of the lock's cache-line traffic inside one die p.26.

8 · Calculations

Computenumactl -H shows distances 10 (local) and 21 (remote). Local DRAM latency is 80 ns. Estimate the remote latency.

Show solution

Ratio 21/10 = 2.1 ⇒ 80 × 2.1 ≈ 168 ns. This agrees with the slide's ~160 ns and its 1:2 rule of thumb pp.14, 16.

ComputeA thread makes 10⁸ DRAM accesses (all cache misses). Half go to local memory (80 ns), half to remote (160 ns). How long does it take, and what is the slowdown compared with all-local?

Show solution

Average = 0.5·80 + 0.5·160 = 120 ns ⇒ 10⁸ × 120 ns = 12 s. All-local: 10⁸ × 80 ns = 8 s ⇒ 1.5× slower p.14.

ComputeScanning 60 GB at local bandwidth (60 GB/s) vs remote bandwidth (20–30 GB/s). How long does each take?

Show solution

Local: 60 / 60 = 1 s. Remote: 60 / 30 = 2 s to 60 / 20 = 3 s ⇒ 2–3 s. That is the 2:1–3:1 rule p.15.

ComputeA simplified yield model (my illustration, not from the slides): each core-sized area is defect-free with probability 0.95. Compare an 8-core monolithic die with two 4-core chiplets.

Show solution

Monolithic: all 8 must be good: 0.95⁸ ≈ 0.66. Chiplet: 0.95⁴ ≈ 0.81 per die, and you only discard the bad 4-core dies. About 81% of the silicon is usable instead of 66%. This is the “falls exponentially with die size” argument p.19.

ComputeA 2-CCD CPU with 32 MB of L3 per CCD. A single thread's 48 MB working set is accessed uniformly. Assume 40 ns near-L3 hits and ~2× for far L3. Estimate the average L3 hit latency if the data fills the local L3 first.

Show solution

32/48 = 2/3 of accesses are near (40 ns) and 1/3 are far (80 ns) ⇒ 2/3·40 + 1/3·80 ≈ 53 ns, about 33% worse than if everything fit locally p.21. The 40 ns figure is an assumption for practice.

9 · Exam-style questions (written) p.28

  1. Give reasons. Give at least two reasons, each with a short explanation, why 3D stacking is not typically used to stack compute dies on top of each other.
  2. Name. Name two possible sources of NUMA effects on modern servers.
  3. Argue. A large hash table (about ½ of the LLC): is it chiplet-partitionable? Why or why not?
  4. Compare. Snooping vs directory-based coherence: which scales better across chiplets, and what does it cost?

The answers are not given here on purpose. Bring yours to the chat and I'll grade them the way an examiner would.

Read next

Primary source: the slides themselves (../lectures/Lecture_03_Chiplets.pdf, pp.19–26 are the core). For a practitioner's view of placement, read the hwloc project page and run lstopo on the lab VM. Then review with the L03 cheat sheet.