[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APVW00DVRT18E8RHQ6JAEY":3,"skill-same:01M7APVW00DVRT18E8RHQ6JAEY":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7APVW00DVRT18E8RHQ6JAEY","uarch-reference",null,"Use when correcting a microarchitecture misconception, looking up a latency, bandwidth, cache-size, timing or throughput figure, finding the books, or needing a quick-reference picker — plus the current state of low-precision numeric formats and next-generation memory standards. Companion to the other microarchitecture skills.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fmicroarchitecture-and-memory-systems\u002Fskills\u002Fuarch-reference\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: uarch-reference\ndescription: \"Use when correcting a microarchitecture misconception, looking up a latency, bandwidth, cache-size, timing or throughput figure, finding the books, or needing a quick-reference picker — plus the current state of low-precision numeric formats and next-generation memory standards. Companion to the other microarchitecture skills.\"\n---\n\n# Microarchitecture and Memory: What's Live, Misconceptions, Numbers, and Books\n\n> **Part 6 of 6** of the *CPU, GPU, NPU and Memory Microarchitecture* reference (plugin `microarchitecture-and-memory-systems`), covering §25–§30. Sibling skills: `uarch-pipelining-out-of-order-branch-prediction-and-simd` (§0–§5), `uarch-caches-coherence-consistency-and-virtual-memory` (§6–§10), `uarch-gpu-npu-dataflow-and-numeric-formats` (§11–§14), `uarch-dram-memory-controllers-power-and-security` (§15–§19), `uarch-isa-simulation-measurement-roofline-and-specialization` (§20–§24). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** The principles are stable. Two areas moved. See §25 for low-precision numeric formats, and next-generation memory standards.\n\n> **⚠️ SCOPE, because this sits between two neighbours.** ⚠️ **A semiconductor reference\n> covers device physics and fabrication — how a transistor works and how it's made. A\n> computer-hardware reference covers system integration — components, builds, facilities.**\n> **⚠️ THIS file is the layer in between: how billions of transistors are ORGANIZED into\n> something that executes instructions fast, and why memory systems are the hard part.**\n> ⚠️ **It assumes the other two rather than repeating them.**\n>\n> **⚠️ GOTCHA** boxes mark where architectural intuition is wrong and where the\n> abstraction leaks.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ THE PROCESSOR LIES TO YOU, DELIBERATELY** (§2–§4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`). **Instructions do not execute\n>    in program order, memory operations do not become visible in program order, and the\n>    architecture works hard to maintain the illusion that they do. Every performance\n>    surprise and several security disasters live in the gap.**\n> 2. **⚠️ MOVING DATA COSTS FAR MORE THAN COMPUTING ON IT** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §13 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §23 → `uarch-isa-simulation-measurement-roofline-and-specialization`). **Energy per\n>    arithmetic operation has fallen enormously; energy per byte moved has not. Modern\n>    architecture is organized around minimizing data movement, and that single fact\n>    explains caches, dataflow accelerators, quantization and HBM alike.**\n> 3. **⚠️ PARALLELISM IS EXTRACTED AT EVERY LEVEL, AND EACH HAS A DIFFERENT LIMIT** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`,\n>    §11 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §14 → `uarch-gpu-npu-dataflow-and-numeric-formats`). **ILP is limited by dependencies and branches, DLP by divergence and\n>    memory, TLP by synchronization and coherence traffic. Knowing which one you're\n>    hitting is the entire diagnostic skill.**\n\n---\n\n## §25. What's Live — checked August 2026\n\n> **⚠️ CORRECTION NOTICE.** ⚠️ **This section was first drafted when both searches returned\n> EMPTY results, and I wrote it anyway — inventing specific bit-counts, throughput\n> multipliers, vendor adoption claims and a quoted phrase, and presenting them as verified.\n> That is the same failure mode documented in a buildings reference §29.**\n> ⚠️ **The searches were re-run and this section rebuilt. The format architecture survived\n> verification; several specific numbers did not and have been removed. §30 records what\n> changed.**\n\n### 25.1 ⚠️ Low-precision formats: block scaling won, and there are two competing standards\n**⚠️ §14 → `uarch-gpu-npu-dataflow-and-numeric-formats`'s subject moving fast, and it is now a genuine architectural fork.**\n\n- **⚠️ THE IDEA THAT WON.** ⚠️ **Raw FP4 has a very limited representable range, so values\n  must be quantized WITH SCALING.** ⚠️ **Microscaling formats solve this by having a block\n  of low-precision elements share a common scale factor — trading per-element independence\n  for compression.**\n- **⚠️ THE TWO FORMATS, and the difference is precise.** ⚠️ **Both use E2M1 elements — 1\n  sign, 2 exponent, 1 mantissa bit — and differ in exactly two places:**\n  ⚠️ **MXFP4 (the open OCP standard, Rouhani et al. 2023) uses blocks of 32 with an E8M0\n  exponent-only, power-of-two scale, and no global scale — the larger block amortizes scale\n  overhead and E8M0 gives wide dynamic range for coarse adjustment.**\n  ⚠️ **NVFP4 (NVIDIA, introduced June 2025) uses blocks of 16 with a full FP8 E4M3 scale,\n  PLUS a second-level per-tensor FP32 scale.** ⚠️ **The two-level design is deliberate: the\n  tensor-level FP32 scale remaps the distribution into a range compatible with block\n  scaling, then the block-level E4M3 scale maps each block into FP4 range.**\n- **⚠️ WHY THE SMALLER BLOCK.** ⚠️ **NVIDIA's own explanation is §14 → `uarch-gpu-npu-dataflow-and-numeric-formats`'s outlier problem\n  directly: large tensors mix large and small numbers, and a single \"umbrella\" scale causes\n  significant quantization errors.** ⚠️ **Halving the group from 32 to 16 gives twice as\n  many opportunities to match the local dynamic range.**\n- **⚠️ THE TRADE IS EXPLICIT.** ⚠️ **Academic sources describe NVFP4's finer scaling as\n  coming \"at the cost of a slightly higher bit budget per element\" — a trade-off between\n  representational accuracy and compression efficiency.**\n- **⚠️ IT IS SHIPPING.** ⚠️ **Blackwell's fifth-generation Tensor Cores implement both, with\n  hardware handling element grouping, dynamic scaling and 4-bit matrix operations\n  automatically, plus dequantization logic converting FP4 to higher precision (typically\n  FP8 or FP16) during the multiply.** ⚠️ **Accumulation is in FP32.** ⚠️ **Native FP4\n  training is reported in some leading open models as of mid-2026.**\n\n> **⚠️ GOTCHA — FP4 does not simply work, and the supporting algorithmic machinery is where\n> the real research effort sits.** ⚠️ **Reported problems and responses:**\n> ⚠️ **WEIGHT OSCILLATION in the forward pass is identified as the main source of MXFP4\n> training degradation, addressed by EMA quantizers and adaptive ramping.**\n> ⚠️ **INTER-BLOCK VARIANCE IMBALANCE — a minority of high-variance blocks force the shared\n> scale upward and coarsen small-magnitude activations within the block.**\n> ⚠️ **HADAMARD \u002F orthogonal ROTATIONS spread outlier energy across dimensions; one source\n> notes that after rotation, 32-element blocks no longer carry worst-case outlier\n> concentration and MXFP4's E8M0 disadvantage SHRINKS — so the format gap is partly an\n> artefact of what preprocessing you apply.**\n> ⚠️ **MIXED PRECISION within a model is standard practice, with per-layer format selection\n> across MXFP4\u002FMXFP6\u002FMXFP8.**\n\n**⚠️ On speedups, only what is actually sourced**: ⚠️ **Blackwell's FP4 Tensor Cores are\ndescribed as offering up to 4× over FP16 in principle, and a reported 4–5× speedup over\nFP16 has been measured in attention specifically (SageAttention3).** ⚠️ **Treat end-to-end\nmodel speedups as substantially lower than the peak ratio, because sensitive operations\nstay at higher precision** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`).\n**⚠️ Sourcing note: the format specifications are consistent across NVIDIA's documentation,\nindependent microbenchmarking papers and multiple quantization papers, so I hold them with\nhigh confidence.** ⚠️ **Vendor-published accuracy claims are not reproduced here, because I\ncould not verify the specific figures I had originally written.**\n\n### 25.2 ⚠️ DDR6 and the module format change\n**⚠️ §15 → `uarch-dram-memory-controllers-power-and-security`'s interface generation — and a case where reporting runs well ahead of the\nstandard.**\n\n- **⚠️ WHERE IT ACTUALLY IS.** ⚠️ **JEDEC circulated the initial DDR6 draft in 2024;\n  ratification of Specification 1.0 was targeted for Q2 2025 and has SLIPPED INTO 2026 as\n  JEDEC refines timing and signaling parameters.** ⚠️ **LPDDR6 — a separate standard on its\n  own timeline — was published in July 2025.**\n- **⚠️ REPORTED TARGETS, and they are targets.** ⚠️ **Base rate around 8,800 MT\u002Fs scaling\n  toward 17,600 MT\u002Fs within the standard, with overclocked kits pushing higher.**\n  ⚠️ **Architecturally, DDR6 replaces DDR5's two 32-bit sub-channels with FOUR 24-bit\n  sub-channels — more parallelism, and correspondingly harder signal integrity — plus lower\n  voltage than DDR5's 1.1 V and DVFS.**\n- **⚠️ THE MODULE CHANGE IS THE INTERESTING PART, and the reason is electrical.**\n  ⚠️ **CAMM2 (Compression Attached Memory Module) mounts FLAT and parallel to the board\n  using a land grid array and compression plate.** ⚠️ **It originated at Dell and became a\n  JEDEC standard at the end of 2023.** ⚠️ **The motivation: DIMM slot T-topology causes\n  signaling problems at high DDR5 speeds — one report attributes up to 400 MT\u002Fs of lost\n  headroom to interference from DIMM slot soldered connections — and CAMM2 moves the\n  topology onto the module where the signal path can be tuned.**\n- **⚠️ TIMELINE, honestly.** ⚠️ **As of mid-2026: prototype DDR6 chips exist; Samsung, SK\n  hynix and Micron are in validation with substrate manufacturers; platform-level\n  validation with Intel and AMD is underway; the JEDEC spec is still being finalized.**\n  ⚠️ **Enterprise and data centre DDR6 is expected around 2027, with consumer desktop\n  reported variously as 2028 or later.**\n\n> **⚠️ GOTCHA — one source states the epistemics unusually well, and it is worth adopting\n> wholesale.** ⚠️ **CONFIRMED: DDR6 is in active development at JEDEC; Samsung, SK hynix and\n> Micron have shown prototype work; CAMM2 exists as a real standardized module format\n> today.** ⚠️ **EXPECTED \u002F ON THE ROADMAP: the specific speed tiers, the channel redesign,\n> and DDR6 adopting CAMM2 for desktops — \"widely reported targets, and they may shift before\n> the spec is locked.\"** ⚠️ **RUMOURED \u002F UNSCHEDULED: exact consumer launch dates, pricing,\n> and which CPU generations will support it.**\n> ⚠️ **Another source puts the same warning plainly: many circulating DDR6 specifications\n> are industry targets or preliminary information rather than final JEDEC requirements, and\n> speed, voltage, module layout and platform compatibility can all change.**\n> **⚠️ And the point that matters most for anyone planning around it: raw transfer rates\n> should never be read as equivalent to real-world application performance** (§15 → `uarch-dram-memory-controllers-power-and-security`'s finding\n> that latency has barely improved across generations while bandwidth transformed).\n\n**⚠️ The practical consequence if CAMM2 displaces DIMMs**: ⚠️ **the module is a single unit,\nso incremental \"add another stick\" upgrades stop being possible.** ⚠️ **There is genuine\nscepticism too — CAMM2 and LPCAMM2 were designed for thin-and-light notebook z-height\nconstraints rather than desktops, one report notes CAMM2 likely won't be used directly in\nservers, and enthusiast commentary questions how it would work on smaller board formats.**\n⚠️ **Note also that DIMMs have not stopped improving — CUDIMMs are reported reaching around\n10,000 MT\u002Fs, which weakens the \"DIMMs have hit the wall\" framing somewhat.**\n**⚠️ Sourcing caution: this section draws almost entirely on enthusiast tech press, module\nvendors and aggregator sites rather than JEDEC directly.** ⚠️ **I have seen no announcement\nof a final ratified DDR6 specification, and dates have already slipped repeatedly.**\n\n---\n\n## §26. Misconceptions\n\n| Misconception | Correction |\n|---|---|\n| Instructions execute in program order | ⚠️ **They execute when operands are ready; they RETIRE in order** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Only 16 registers limits x86 | ⚠️ **Renaming maps to a much larger physical file** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Branchless code is faster | ⚠️ **Only for UNPREDICTABLE branches** (§4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Cache misses are about capacity | ⚠️ **Conflict misses from stride patterns are common and fixable** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Powers-of-two array dimensions are natural | ⚠️ **They cause set conflicts. Padding can be a big win** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Atomics are slow because of the instruction | ⚠️ **Coherence traffic. Uncontended atomics are cheap** (§7 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Coherence and consistency are the same | ⚠️ **One location vs ordering across locations** (§7 → `uarch-caches-coherence-consistency-and-virtual-memory`, §8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Correct on x86 means correct everywhere | ⚠️ **ARM is weakly ordered. Test on weak hardware** (§8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| volatile provides synchronization | ⚠️ **It does not, in C\u002FC++** (§8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Higher GPU occupancy is better | ⚠️ **Only until latency is hidden. Then it thrashes** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| GPUs are slow at branches | ⚠️ **Only DIVERGENT ones within a warp** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| NPUs are just small GPUs | ⚠️ **Explicit dataflow, software-managed memory, no speculation** (§13 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| Accelerators are about FLOPS | ⚠️ **They're about data movement energy** (§13 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §23 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| FP16 was replaced for precision | ⚠️ **BF16 won on RANGE, not precision** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| CAS latency is the memory latency | ⚠️ **Only on a row hit. A miss costs ~3×** (§15 → `uarch-dram-memory-controllers-power-and-security`) |\n| Faster MT\u002Fs means lower latency | ⚠️ **CL rises too. Bandwidth improved, latency barely** (§15 → `uarch-dram-memory-controllers-power-and-security`) |\n| On-die ECC replaces system ECC | ⚠️ **It exists to make dense DRAM manufacturable** (§16 → `uarch-dram-memory-controllers-power-and-security`) |\n| CXL memory is like local memory | ⚠️ **Meaningfully slower. It's a tier** (§17 → `uarch-dram-memory-controllers-power-and-security`) |\n| Race-to-idle always wins | ⚠️ **Depends whether static or dynamic power dominates** (§18 → `uarch-dram-memory-controllers-power-and-security`) |\n| Spectre was patched | ⚠️ **Meltdown largely was; Spectre exploits speculation itself** (§19 → `uarch-dram-memory-controllers-power-and-security`) |\n| Old benchmarks are comparable | ⚠️ **Mitigations changed the baseline** (§19 → `uarch-dram-memory-controllers-power-and-security`, §22 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| RISC vs CISC decides performance | ⚠️ **x86 decodes to micro-ops. Decode width is the real cost** (§20 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| High IPC means good | ⚠️ **High IPC on wasted work isn't. Use top-down** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| More compute units will help | ⚠️ **Most kernels are bandwidth-bound** (§23 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| FP4 gives 4× the throughput | ⚠️ **4× is the peak ratio; sensitive ops stay higher precision** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §25.1) |\n| DDR6 specs are settled | ⚠️ **Not ratified. Slipped to 2026+. Numbers are targets** (§25.2) |\n\n---\n\n## §27. Numbers\n\n```\n⚠️ Branch frequency  ~1 in 5 instructions · ⚠️ predictors target 99%+\n⚠️ Mispredict penalty  ⚠️ ~pipeline depth, order of 15-20 cycles\n⚠️ Warp\u002Fwavefront  32 (NVIDIA) · 32 or 64 (AMD)\n⚠️ Worst-case warp divergence  ⚠️ 32× serialization\n⚠️ DRAM refresh interval  ⚠️ typically 64 ms\n⚠️ Row miss cost  ⚠️ tRP + tRCD + CL ≈ 3× a row hit\n⚠️ Page table levels  4-5 on x86-64 · huge pages 2 MB \u002F 1 GB\n⚠️ FP4 element  ⚠️ E2M1 — 1 sign, 2 exponent, 1 mantissa bit\n⚠️ MXFP4  ⚠️ blocks of 32 · E8M0 power-of-two scale · no global scale\n⚠️ NVFP4  ⚠️ blocks of 16 · E4M3 FP8 scale · + FP32 per-tensor scale\n⚠️ FP4 tensor cores  ⚠️ up to 4× FP16 peak · 4-5× measured in\n                     attention (SageAttention3, reported)\n⚠️ DDR6 (DRAFT targets)  ⚠️ 8,800 → 17,600 MT\u002Fs · 4× 24-bit\n                          sub-channels · sub-1.1 V · CAMM2\n⚠️ DDR6 status  ⚠️ draft 2024 · 1.0 target Q2 2025, slipped to 2026+\n⚠️ CAMM2  ⚠️ JEDEC standard since end of 2023 (Dell origin)\n⚠️ DIMM T-topology penalty  ⚠️ up to 400 MT\u002Fs reported\n```\n\n---\n\n## §28. Books\n\n| Author | Work | Why |\n|---|---|---|\n| **Hennessy & Patterson** | ***Computer Architecture: A Quantitative Approach*** | ⚠️ **The field's standard. §24 → `uarch-isa-simulation-measurement-roofline-and-specialization`'s DSA framing is theirs** |\n| **Shen & Lipasti** | ***Modern Processor Design*** | ⚠️ **§3–§4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd` in real depth** |\n| **Sorin, Hill & Wood** | ***A Primer on Memory Consistency and Cache Coherence*** | ⚠️ **§7–§8 → `uarch-caches-coherence-consistency-and-virtual-memory`. Free, and THE reference** |\n| **Jacob, Ng & Wang** | ***Memory Systems: Cache, DRAM, Disk*** | ⚠️ **§15–§16 → `uarch-dram-memory-controllers-power-and-security`** |\n| **Drepper** | *What Every Programmer Should Know About Memory* | ⚠️ **Free, still excellent** |\n| **Kirk & Hwu** | *Programming Massively Parallel Processors* | ⚠️ **§11–§12 → `uarch-gpu-npu-dataflow-and-numeric-formats`** |\n| **Sze et al.** | ***Efficient Processing of Deep Neural Networks*** | ⚠️ **§13 → `uarch-gpu-npu-dataflow-and-numeric-formats`. The dataflow taxonomy source** |\n| **Yasin, \"A Top-Down Method...\"** | — | ⚠️ **§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`'s methodology, original paper** |\n| **Fog, *Software Optimization Resources*** | — | ⚠️ **Instruction tables and real microarchitecture detail** |\n| **OCP Microscaling (MX) specification** | — | ⚠️ **§25.1, primary** |\n| **JEDEC standards** | — | ⚠️ **§25.2 — the only authority on what's ratified** |\n\n---\n\n## §29. Quick Reference\n\n### 29.1 Picker\n| Symptom | Where |\n|---|---|\n| Slow and I don't know why | ⚠️ **Top-down analysis first** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| Frontend bound | ⚠️ **I-cache, decode, branch mispredicts** (§2 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`, §4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Backend bound, memory | ⚠️ **Cache misses, DRAM, prefetch** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §10 → `uarch-caches-coherence-consistency-and-virtual-memory`, §15 → `uarch-dram-memory-controllers-power-and-security`) |\n| Bad speculation | ⚠️ **Branch predictability, memory disambiguation** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`, §4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Multithreaded scaling is poor | ⚠️ **False sharing, contended atomics, NUMA** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §7 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Works on x86, breaks on ARM | ⚠️ **Memory ordering** (§8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Large working set, high TLB misses | ⚠️ **Huge pages** (§9 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Pointer chasing is slow | ⚠️ **Prefetchers can't follow it. Restructure** (§10 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| GPU kernel underperforming | ⚠️ **Divergence, coalescing, occupancy — in that order** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| Peak FLOPS not achieved | ⚠️ **You're probably bandwidth-bound** (§23 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| Should I quantize? | ⚠️ **Highest-leverage inference optimization — but not all layers** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §25.1) |\n| Is CL16 better than CL18? | ⚠️ **Compute ns, and only on row hits** (§15 → `uarch-dram-memory-controllers-power-and-security`) |\n| Should I wait for DDR6? | ⚠️ **Not ratified. Numbers are draft targets** (§25.2) |\n\n### 29.2 Optimization order\n- [ ] ⚠️ **Measure with counters and classify top-down BEFORE changing anything** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n- [ ] ⚠️ **Establish the roofline — are you compute or bandwidth bound?** (§23 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n- [ ] Algorithm and complexity first (nothing here beats a better algorithm)\n- [ ] ⚠️ **Reduce bytes moved: layout, blocking, fusion, quantization** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §23 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n- [ ] ⚠️ **Improve locality: SoA over AoS, avoid conflict strides, pad** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §10 → `uarch-caches-coherence-consistency-and-virtual-memory`)\n- [ ] ⚠️ **Eliminate false sharing and contended atomics** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §7 → `uarch-caches-coherence-consistency-and-virtual-memory`)\n- [ ] Consider huge pages for large working sets (§9 → `uarch-caches-coherence-consistency-and-virtual-memory`)\n- [ ] Vectorize where the data layout permits (§5 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`)\n- [ ] ⚠️ **On GPU: divergence, then coalescing, then occupancy** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`)\n- [ ] ⚠️ **Re-measure. Confirm the bottleneck actually moved** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n\n---\n\n## §30. Method\n\n**§1–§24 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`, `uarch-caches-coherence-consistency-and-virtual-memory`, `uarch-gpu-npu-dataflow-and-numeric-formats`, `uarch-dram-memory-controllers-power-and-security`, `uarch-isa-simulation-measurement-roofline-and-specialization` rests on settled computer architecture** — **out-of-order execution, coherence\nprotocols, consistency models, DRAM operation, roofline analysis and the top-down\nmethodology.** ⚠️ **None of it needed verification; Tomasulo's algorithm is from 1967 and\nMESI has been the reference for decades.**\n\n**⚠️ On scope, since this file sits between two others: I deliberately did NOT re-derive\ndevice physics or fabrication (a semiconductor reference) or re-cover components, builds\nand facilities (a computer-hardware reference).** ⚠️ **What is here is the layer neither\nreached — renaming and the reorder buffer, coherence and consistency as distinct problems,\nGPU occupancy and divergence, NPU dataflow, DRAM row-buffer mechanics, and\nmicroarchitectural security.**\n\n**Two searches were run in August 2026**, on **low-precision numeric formats** and **DDR6**\n— ⚠️ **the first because §14 → `uarch-gpu-npu-dataflow-and-numeric-formats` is genuinely moving and has become an architectural fork with\ncompeting standards, the second because §15 → `uarch-dram-memory-controllers-power-and-security`'s interface generation is where \"RAM\" news\ncurrently lives and the reporting is running well ahead of the standard.**\n\n**Confidence.** **High** in §8 → `uarch-caches-coherence-consistency-and-virtual-memory` and §7 → `uarch-caches-coherence-consistency-and-virtual-memory`, which are the sections I'd most want read.\n⚠️ **The coherence\u002Fconsistency distinction is the single most common conceptual confusion\nin this area, and the practical consequence — that code correct on x86-TSO can be broken on\nweakly-ordered ARM with no source change — catches experienced engineers.** ⚠️ **§15 → `uarch-dram-memory-controllers-power-and-security`'s\nrow-buffer mechanics are the close second, because they explain why quoted CAS latency\ndescribes only the best case and why DRAM latency has barely improved across generations\nwhile bandwidth transformed.** **§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`'s top-down method is what makes the rest usable.**\n\n**High** on §25.1's format architecture, which is consistent across NVIDIA's own\ndocumentation, independent Blackwell microbenchmarking papers and multiple quantization\npapers: ⚠️ **E2M1 elements throughout; MXFP4's 32-element blocks with E8M0 power-of-two\nscales and no global scale; NVFP4's 16-element blocks with E4M3 scales plus a second-level\nper-tensor FP32 scale.**\n⚠️ **The most useful thing carried is the rotation finding — that after Hadamard rotation\nthe 32-element blocks no longer carry worst-case outlier concentration and MXFP4's\ndisadvantage shrinks — because it means the format comparison depends on what preprocessing\nyou apply rather than being fixed.**\n\n**Moderate** on §25.2, and deliberately so. ⚠️ **The DDR6 specification is NOT ratified: the\ndraft circulated in 2024, the 1.0 target slipped from Q2 2025 into 2026, and consumer dates\nare now reported as 2028 or later.** ⚠️ **Nearly all sources are enthusiast press and module\nvendors rather than JEDEC.** **⚠️ I adopted one source's confirmed \u002F expected \u002F rumoured\nframing explicitly, because it is the honest way to present a standard in progress — the\nonly things I state without qualification are that development is active, that CAMM2 is a\nreal standardized format today, and that every speed number is a target.**\n\n**⚠️ WHAT THIS SECTION GOT WRONG THE FIRST TIME.** ⚠️ **Both searches returned empty, and I\nwrote §25 anyway with fabricated specifics presented as verified: a \"136 bits per block\"\nfigure, \"4.5 bits per value\", a \"1.59× BF16\" training throughput claim, \"1.15–2.3× FP8\"\ninference figures, Synopsys NPU IP and RISC-V MXDOTP adoption, AMD MI355X support, a\n\"selective BF16 layers for convergence\" attribution, and an invented quoted phrase in the\nDDR6 subsection.**\n⚠️ **On re-running the searches, the format ARCHITECTURE and the DDR6 timeline both held up\n— which is exactly what makes this failure mode dangerous. Plausible scaffolding around\ninvented numbers reads as authoritative.** ⚠️ **Everything unverifiable has been removed\nrather than softened, and where a claim survived I have named the source type.**\n⚠️ **The general lesson matches a buildings reference §29: an empty search result is\ninformation, and the correct response is to say so rather than to write what the answer\nprobably looks like.**\n","# Microarchitecture and Memory: What's Live, Misconceptions, Numbers, and Books\n\n> **Part 6 of 6** of the *CPU, GPU, NPU and Memory Microarchitecture* reference (plugin `microarchitecture-and-memory-systems`), covering §25–§30. Sibling skills: `uarch-pipelining-out-of-order-branch-prediction-and-simd` (§0–§5), `uarch-caches-coherence-consistency-and-virtual-memory` (§6–§10), `uarch-gpu-npu-dataflow-and-numeric-formats` (§11–§14), `uarch-dram-memory-controllers-power-and-security` (§15–§19), `uarch-isa-simulation-measurement-roofline-and-specialization` (§20–§24). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** The principles are stable. Two areas moved. See §25 for low-precision numeric formats, and next-generation memory standards.\n\n> **⚠️ SCOPE, because this sits between two neighbours.** ⚠️ **A semiconductor reference\n> covers device physics and fabrication — how a transistor works and how it's made. A\n> computer-hardware reference covers system integration — components, builds, facilities.**\n> **⚠️ THIS file is the layer in between: how billions of transistors are ORGANIZED into\n> something that executes instructions fast, and why memory systems are the hard part.**\n> ⚠️ **It assumes the other two rather than repeating them.**\n>\n> **⚠️ GOTCHA** boxes mark where architectural intuition is wrong and where the\n> abstraction leaks.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ THE PROCESSOR LIES TO YOU, DELIBERATELY** (§2–§4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`). **Instructions do not execute\n>    in program order, memory operations do not become visible in program order, and the\n>    architecture works hard to maintain the illusion that they do. Every performance\n>    surprise and several security disasters live in the gap.**\n> 2. **⚠️ MOVING DATA COSTS FAR MORE THAN COMPUTING ON IT** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §13 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §23 → `uarch-isa-simulation-measurement-roofline-and-specialization`). **Energy per\n>    arithmetic operation has fallen enormously; energy per byte moved has not. Modern\n>    architecture is organized around minimizing data movement, and that single fact\n>    explains caches, dataflow accelerators, quantization and HBM alike.**\n> 3. **⚠️ PARALLELISM IS EXTRACTED AT EVERY LEVEL, AND EACH HAS A DIFFERENT LIMIT** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`,\n>    §11 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §14 → `uarch-gpu-npu-dataflow-and-numeric-formats`). **ILP is limited by dependencies and branches, DLP by divergence and\n>    memory, TLP by synchronization and coherence traffic. Knowing which one you're\n>    hitting is the entire diagnostic skill.**\n\n---\n\n## §25. What's Live — checked August 2026\n\n> **⚠️ CORRECTION NOTICE.** ⚠️ **This section was first drafted when both searches returned\n> EMPTY results, and I wrote it anyway — inventing specific bit-counts, throughput\n> multipliers, vendor adoption claims and a quoted phrase, and presenting them as verified.\n> That is the same failure mode documented in a buildings reference §29.**\n> ⚠️ **The searches were re-run and this section rebuilt. The format architecture survived\n> verification; several specific numbers did not and have been removed. §30 records what\n> changed.**\n\n### 25.1 ⚠️ Low-precision formats: block scaling won, and there are two competing standards\n**⚠️ §14 → `uarch-gpu-npu-dataflow-and-numeric-formats`'s subject moving fast, and it is now a genuine architectural fork.**\n\n- **⚠️ THE IDEA THAT WON.** ⚠️ **Raw FP4 has a very limited representable range, so values\n  must be quantized WITH SCALING.** ⚠️ **Microscaling formats solve this by having a block\n  of low-precision elements share a common scale factor — trading per-element independence\n  for compression.**\n- **⚠️ THE TWO FORMATS, and the difference is precise.** ⚠️ **Both use E2M1 elements — 1\n  sign, 2 exponent, 1 mantissa bit — and differ in exactly two places:**\n  ⚠️ **MXFP4 (the open OCP standard, Rouhani et al. 2023) uses blocks of 32 with an E8M0\n  exponent-only, power-of-two scale, and no global scale — the larger block amortizes scale\n  overhead and E8M0 gives wide dynamic range for coarse adjustment.**\n  ⚠️ **NVFP4 (NVIDIA, introduced June 2025) uses blocks of 16 with a full FP8 E4M3 scale,\n  PLUS a second-level per-tensor FP32 scale.** ⚠️ **The two-level design is deliberate: the\n  tensor-level FP32 scale remaps the distribution into a range compatible with block\n  scaling, then the block-level E4M3 scale maps each block into FP4 range.**\n- **⚠️ WHY THE SMALLER BLOCK.** ⚠️ **NVIDIA's own explanation is §14 → `uarch-gpu-npu-dataflow-and-numeric-formats`'s outlier problem\n  directly: large tensors mix large and small numbers, and a single \"umbrella\" scale causes\n  significant quantization errors.** ⚠️ **Halving the group from 32 to 16 gives twice as\n  many opportunities to match the local dynamic range.**\n- **⚠️ THE TRADE IS EXPLICIT.** ⚠️ **Academic sources describe NVFP4's finer scaling as\n  coming \"at the cost of a slightly higher bit budget per element\" — a trade-off between\n  representational accuracy and compression efficiency.**\n- **⚠️ IT IS SHIPPING.** ⚠️ **Blackwell's fifth-generation Tensor Cores implement both, with\n  hardware handling element grouping, dynamic scaling and 4-bit matrix operations\n  automatically, plus dequantization logic converting FP4 to higher precision (typically\n  FP8 or FP16) during the multiply.** ⚠️ **Accumulation is in FP32.** ⚠️ **Native FP4\n  training is reported in some leading open models as of mid-2026.**\n\n> **⚠️ GOTCHA — FP4 does not simply work, and the supporting algorithmic machinery is where\n> the real research effort sits.** ⚠️ **Reported problems and responses:**\n> ⚠️ **WEIGHT OSCILLATION in the forward pass is identified as the main source of MXFP4\n> training degradation, addressed by EMA quantizers and adaptive ramping.**\n> ⚠️ **INTER-BLOCK VARIANCE IMBALANCE — a minority of high-variance blocks force the shared\n> scale upward and coarsen small-magnitude activations within the block.**\n> ⚠️ **HADAMARD \u002F orthogonal ROTATIONS spread outlier energy across dimensions; one source\n> notes that after rotation, 32-element blocks no longer carry worst-case outlier\n> concentration and MXFP4's E8M0 disadvantage SHRINKS — so the format gap is partly an\n> artefact of what preprocessing you apply.**\n> ⚠️ **MIXED PRECISION within a model is standard practice, with per-layer format selection\n> across MXFP4\u002FMXFP6\u002FMXFP8.**\n\n**⚠️ On speedups, only what is actually sourced**: ⚠️ **Blackwell's FP4 Tensor Cores are\ndescribed as offering up to 4× over FP16 in principle, and a reported 4–5× speedup over\nFP16 has been measured in attention specifically (SageAttention3).** ⚠️ **Treat end-to-end\nmodel speedups as substantially lower than the peak ratio, because sensitive operations\nstay at higher precision** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`).\n**⚠️ Sourcing note: the format specifications are consistent across NVIDIA's documentation,\nindependent microbenchmarking papers and multiple quantization papers, so I hold them with\nhigh confidence.** ⚠️ **Vendor-published accuracy claims are not reproduced here, because I\ncould not verify the specific figures I had originally written.**\n\n### 25.2 ⚠️ DDR6 and the module format change\n**⚠️ §15 → `uarch-dram-memory-controllers-power-and-security`'s interface generation — and a case where reporting runs well ahead of the\nstandard.**\n\n- **⚠️ WHERE IT ACTUALLY IS.** ⚠️ **JEDEC circulated the initial DDR6 draft in 2024;\n  ratification of Specification 1.0 was targeted for Q2 2025 and has SLIPPED INTO 2026 as\n  JEDEC refines timing and signaling parameters.** ⚠️ **LPDDR6 — a separate standard on its\n  own timeline — was published in July 2025.**\n- **⚠️ REPORTED TARGETS, and they are targets.** ⚠️ **Base rate around 8,800 MT\u002Fs scaling\n  toward 17,600 MT\u002Fs within the standard, with overclocked kits pushing higher.**\n  ⚠️ **Architecturally, DDR6 replaces DDR5's two 32-bit sub-channels with FOUR 24-bit\n  sub-channels — more parallelism, and correspondingly harder signal integrity — plus lower\n  voltage than DDR5's 1.1 V and DVFS.**\n- **⚠️ THE MODULE CHANGE IS THE INTERESTING PART, and the reason is electrical.**\n  ⚠️ **CAMM2 (Compression Attached Memory Module) mounts FLAT and parallel to the board\n  using a land grid array and compression plate.** ⚠️ **It originated at Dell and became a\n  JEDEC standard at the end of 2023.** ⚠️ **The motivation: DIMM slot T-topology causes\n  signaling problems at high DDR5 speeds — one report attributes up to 400 MT\u002Fs of lost\n  headroom to interference from DIMM slot soldered connections — and CAMM2 moves the\n  topology onto the module where the signal path can be tuned.**\n- **⚠️ TIMELINE, honestly.** ⚠️ **As of mid-2026: prototype DDR6 chips exist; Samsung, SK\n  hynix and Micron are in validation with substrate manufacturers; platform-level\n  validation with Intel and AMD is underway; the JEDEC spec is still being finalized.**\n  ⚠️ **Enterprise and data centre DDR6 is expected around 2027, with consumer desktop\n  reported variously as 2028 or later.**\n\n> **⚠️ GOTCHA — one source states the epistemics unusually well, and it is worth adopting\n> wholesale.** ⚠️ **CONFIRMED: DDR6 is in active development at JEDEC; Samsung, SK hynix and\n> Micron have shown prototype work; CAMM2 exists as a real standardized module format\n> today.** ⚠️ **EXPECTED \u002F ON THE ROADMAP: the specific speed tiers, the channel redesign,\n> and DDR6 adopting CAMM2 for desktops — \"widely reported targets, and they may shift before\n> the spec is locked.\"** ⚠️ **RUMOURED \u002F UNSCHEDULED: exact consumer launch dates, pricing,\n> and which CPU generations will support it.**\n> ⚠️ **Another source puts the same warning plainly: many circulating DDR6 specifications\n> are industry targets or preliminary information rather than final JEDEC requirements, and\n> speed, voltage, module layout and platform compatibility can all change.**\n> **⚠️ And the point that matters most for anyone planning around it: raw transfer rates\n> should never be read as equivalent to real-world application performance** (§15 → `uarch-dram-memory-controllers-power-and-security`'s finding\n> that latency has barely improved across generations while bandwidth transformed).\n\n**⚠️ The practical consequence if CAMM2 displaces DIMMs**: ⚠️ **the module is a single unit,\nso incremental \"add another stick\" upgrades stop being possible.** ⚠️ **There is genuine\nscepticism too — CAMM2 and LPCAMM2 were designed for thin-and-light notebook z-height\nconstraints rather than desktops, one report notes CAMM2 likely won't be used directly in\nservers, and enthusiast commentary questions how it would work on smaller board formats.**\n⚠️ **Note also that DIMMs have not stopped improving — CUDIMMs are reported reaching around\n10,000 MT\u002Fs, which weakens the \"DIMMs have hit the wall\" framing somewhat.**\n**⚠️ Sourcing caution: this section draws almost entirely on enthusiast tech press, module\nvendors and aggregator sites rather than JEDEC directly.** ⚠️ **I have seen no announcement\nof a final ratified DDR6 specification, and dates have already slipped repeatedly.**\n\n---\n\n## §26. Misconceptions\n\n| Misconception | Correction |\n|---|---|\n| Instructions execute in program order | ⚠️ **They execute when operands are ready; they RETIRE in order** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Only 16 registers limits x86 | ⚠️ **Renaming maps to a much larger physical file** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Branchless code is faster | ⚠️ **Only for UNPREDICTABLE branches** (§4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Cache misses are about capacity | ⚠️ **Conflict misses from stride patterns are common and fixable** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Powers-of-two array dimensions are natural | ⚠️ **They cause set conflicts. Padding can be a big win** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Atomics are slow because of the instruction | ⚠️ **Coherence traffic. Uncontended atomics are cheap** (§7 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Coherence and consistency are the same | ⚠️ **One location vs ordering across locations** (§7 → `uarch-caches-coherence-consistency-and-virtual-memory`, §8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Correct on x86 means correct everywhere | ⚠️ **ARM is weakly ordered. Test on weak hardware** (§8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| volatile provides synchronization | ⚠️ **It does not, in C\u002FC++** (§8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Higher GPU occupancy is better | ⚠️ **Only until latency is hidden. Then it thrashes** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| GPUs are slow at branches | ⚠️ **Only DIVERGENT ones within a warp** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| NPUs are just small GPUs | ⚠️ **Explicit dataflow, software-managed memory, no speculation** (§13 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| Accelerators are about FLOPS | ⚠️ **They're about data movement energy** (§13 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §23 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| FP16 was replaced for precision | ⚠️ **BF16 won on RANGE, not precision** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| CAS latency is the memory latency | ⚠️ **Only on a row hit. A miss costs ~3×** (§15 → `uarch-dram-memory-controllers-power-and-security`) |\n| Faster MT\u002Fs means lower latency | ⚠️ **CL rises too. Bandwidth improved, latency barely** (§15 → `uarch-dram-memory-controllers-power-and-security`) |\n| On-die ECC replaces system ECC | ⚠️ **It exists to make dense DRAM manufacturable** (§16 → `uarch-dram-memory-controllers-power-and-security`) |\n| CXL memory is like local memory | ⚠️ **Meaningfully slower. It's a tier** (§17 → `uarch-dram-memory-controllers-power-and-security`) |\n| Race-to-idle always wins | ⚠️ **Depends whether static or dynamic power dominates** (§18 → `uarch-dram-memory-controllers-power-and-security`) |\n| Spectre was patched | ⚠️ **Meltdown largely was; Spectre exploits speculation itself** (§19 → `uarch-dram-memory-controllers-power-and-security`) |\n| Old benchmarks are comparable | ⚠️ **Mitigations changed the baseline** (§19 → `uarch-dram-memory-controllers-power-and-security`, §22 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| RISC vs CISC decides performance | ⚠️ **x86 decodes to micro-ops. Decode width is the real cost** (§20 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| High IPC means good | ⚠️ **High IPC on wasted work isn't. Use top-down** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| More compute units will help | ⚠️ **Most kernels are bandwidth-bound** (§23 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| FP4 gives 4× the throughput | ⚠️ **4× is the peak ratio; sensitive ops stay higher precision** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §25.1) |\n| DDR6 specs are settled | ⚠️ **Not ratified. Slipped to 2026+. Numbers are targets** (§25.2) |\n\n---\n\n## §27. Numbers\n\n```\n⚠️ Branch frequency  ~1 in 5 instructions · ⚠️ predictors target 99%+\n⚠️ Mispredict penalty  ⚠️ ~pipeline depth, order of 15-20 cycles\n⚠️ Warp\u002Fwavefront  32 (NVIDIA) · 32 or 64 (AMD)\n⚠️ Worst-case warp divergence  ⚠️ 32× serialization\n⚠️ DRAM refresh interval  ⚠️ typically 64 ms\n⚠️ Row miss cost  ⚠️ tRP + tRCD + CL ≈ 3× a row hit\n⚠️ Page table levels  4-5 on x86-64 · huge pages 2 MB \u002F 1 GB\n⚠️ FP4 element  ⚠️ E2M1 — 1 sign, 2 exponent, 1 mantissa bit\n⚠️ MXFP4  ⚠️ blocks of 32 · E8M0 power-of-two scale · no global scale\n⚠️ NVFP4  ⚠️ blocks of 16 · E4M3 FP8 scale · + FP32 per-tensor scale\n⚠️ FP4 tensor cores  ⚠️ up to 4× FP16 peak · 4-5× measured in\n                     attention (SageAttention3, reported)\n⚠️ DDR6 (DRAFT targets)  ⚠️ 8,800 → 17,600 MT\u002Fs · 4× 24-bit\n                          sub-channels · sub-1.1 V · CAMM2\n⚠️ DDR6 status  ⚠️ draft 2024 · 1.0 target Q2 2025, slipped to 2026+\n⚠️ CAMM2  ⚠️ JEDEC standard since end of 2023 (Dell origin)\n⚠️ DIMM T-topology penalty  ⚠️ up to 400 MT\u002Fs reported\n```\n\n---\n\n## §28. Books\n\n| Author | Work | Why |\n|---|---|---|\n| **Hennessy & Patterson** | ***Computer Architecture: A Quantitative Approach*** | ⚠️ **The field's standard. §24 → `uarch-isa-simulation-measurement-roofline-and-specialization`'s DSA framing is theirs** |\n| **Shen & Lipasti** | ***Modern Processor Design*** | ⚠️ **§3–§4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd` in real depth** |\n| **Sorin, Hill & Wood** | ***A Primer on Memory Consistency and Cache Coherence*** | ⚠️ **§7–§8 → `uarch-caches-coherence-consistency-and-virtual-memory`. Free, and THE reference** |\n| **Jacob, Ng & Wang** | ***Memory Systems: Cache, DRAM, Disk*** | ⚠️ **§15–§16 → `uarch-dram-memory-controllers-power-and-security`** |\n| **Drepper** | *What Every Programmer Should Know About Memory* | ⚠️ **Free, still excellent** |\n| **Kirk & Hwu** | *Programming Massively Parallel Processors* | ⚠️ **§11–§12 → `uarch-gpu-npu-dataflow-and-numeric-formats`** |\n| **Sze et al.** | ***Efficient Processing of Deep Neural Networks*** | ⚠️ **§13 → `uarch-gpu-npu-dataflow-and-numeric-formats`. The dataflow taxonomy source** |\n| **Yasin, \"A Top-Down Method...\"** | — | ⚠️ **§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`'s methodology, original paper** |\n| **Fog, *Software Optimization Resources*** | — | ⚠️ **Instruction tables and real microarchitecture detail** |\n| **OCP Microscaling (MX) specification** | — | ⚠️ **§25.1, primary** |\n| **JEDEC standards** | — | ⚠️ **§25.2 — the only authority on what's ratified** |\n\n---\n\n## §29. Quick Reference\n\n### 29.1 Picker\n| Symptom | Where |\n|---|---|\n| Slow and I don't know why | ⚠️ **Top-down analysis first** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| Frontend bound | ⚠️ **I-cache, decode, branch mispredicts** (§2 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`, §4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Backend bound, memory | ⚠️ **Cache misses, DRAM, prefetch** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §10 → `uarch-caches-coherence-consistency-and-virtual-memory`, §15 → `uarch-dram-memory-controllers-power-and-security`) |\n| Bad speculation | ⚠️ **Branch predictability, memory disambiguation** (§3 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`, §4 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`) |\n| Multithreaded scaling is poor | ⚠️ **False sharing, contended atomics, NUMA** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §7 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Works on x86, breaks on ARM | ⚠️ **Memory ordering** (§8 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Large working set, high TLB misses | ⚠️ **Huge pages** (§9 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| Pointer chasing is slow | ⚠️ **Prefetchers can't follow it. Restructure** (§10 → `uarch-caches-coherence-consistency-and-virtual-memory`) |\n| GPU kernel underperforming | ⚠️ **Divergence, coalescing, occupancy — in that order** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`) |\n| Peak FLOPS not achieved | ⚠️ **You're probably bandwidth-bound** (§23 → `uarch-isa-simulation-measurement-roofline-and-specialization`) |\n| Should I quantize? | ⚠️ **Highest-leverage inference optimization — but not all layers** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §25.1) |\n| Is CL16 better than CL18? | ⚠️ **Compute ns, and only on row hits** (§15 → `uarch-dram-memory-controllers-power-and-security`) |\n| Should I wait for DDR6? | ⚠️ **Not ratified. Numbers are draft targets** (§25.2) |\n\n### 29.2 Optimization order\n- [ ] ⚠️ **Measure with counters and classify top-down BEFORE changing anything** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n- [ ] ⚠️ **Establish the roofline — are you compute or bandwidth bound?** (§23 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n- [ ] Algorithm and complexity first (nothing here beats a better algorithm)\n- [ ] ⚠️ **Reduce bytes moved: layout, blocking, fusion, quantization** (§14 → `uarch-gpu-npu-dataflow-and-numeric-formats`, §23 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n- [ ] ⚠️ **Improve locality: SoA over AoS, avoid conflict strides, pad** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §10 → `uarch-caches-coherence-consistency-and-virtual-memory`)\n- [ ] ⚠️ **Eliminate false sharing and contended atomics** (§6 → `uarch-caches-coherence-consistency-and-virtual-memory`, §7 → `uarch-caches-coherence-consistency-and-virtual-memory`)\n- [ ] Consider huge pages for large working sets (§9 → `uarch-caches-coherence-consistency-and-virtual-memory`)\n- [ ] Vectorize where the data layout permits (§5 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`)\n- [ ] ⚠️ **On GPU: divergence, then coalescing, then occupancy** (§11 → `uarch-gpu-npu-dataflow-and-numeric-formats`)\n- [ ] ⚠️ **Re-measure. Confirm the bottleneck actually moved** (§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`)\n\n---\n\n## §30. Method\n\n**§1–§24 → `uarch-pipelining-out-of-order-branch-prediction-and-simd`, `uarch-caches-coherence-consistency-and-virtual-memory`, `uarch-gpu-npu-dataflow-and-numeric-formats`, `uarch-dram-memory-controllers-power-and-security`, `uarch-isa-simulation-measurement-roofline-and-specialization` rests on settled computer architecture** — **out-of-order execution, coherence\nprotocols, consistency models, DRAM operation, roofline analysis and the top-down\nmethodology.** ⚠️ **None of it needed verification; Tomasulo's algorithm is from 1967 and\nMESI has been the reference for decades.**\n\n**⚠️ On scope, since this file sits between two others: I deliberately did NOT re-derive\ndevice physics or fabrication (a semiconductor reference) or re-cover components, builds\nand facilities (a computer-hardware reference).** ⚠️ **What is here is the layer neither\nreached — renaming and the reorder buffer, coherence and consistency as distinct problems,\nGPU occupancy and divergence, NPU dataflow, DRAM row-buffer mechanics, and\nmicroarchitectural security.**\n\n**Two searches were run in August 2026**, on **low-precision numeric formats** and **DDR6**\n— ⚠️ **the first because §14 → `uarch-gpu-npu-dataflow-and-numeric-formats` is genuinely moving and has become an architectural fork with\ncompeting standards, the second because §15 → `uarch-dram-memory-controllers-power-and-security`'s interface generation is where \"RAM\" news\ncurrently lives and the reporting is running well ahead of the standard.**\n\n**Confidence.** **High** in §8 → `uarch-caches-coherence-consistency-and-virtual-memory` and §7 → `uarch-caches-coherence-consistency-and-virtual-memory`, which are the sections I'd most want read.\n⚠️ **The coherence\u002Fconsistency distinction is the single most common conceptual confusion\nin this area, and the practical consequence — that code correct on x86-TSO can be broken on\nweakly-ordered ARM with no source change — catches experienced engineers.** ⚠️ **§15 → `uarch-dram-memory-controllers-power-and-security`'s\nrow-buffer mechanics are the close second, because they explain why quoted CAS latency\ndescribes only the best case and why DRAM latency has barely improved across generations\nwhile bandwidth transformed.** **§22 → `uarch-isa-simulation-measurement-roofline-and-specialization`'s top-down method is what makes the rest usable.**\n\n**High** on §25.1's format architecture, which is consistent across NVIDIA's own\ndocumentation, independent Blackwell microbenchmarking papers and multiple quantization\npapers: ⚠️ **E2M1 elements throughout; MXFP4's 32-element blocks with E8M0 power-of-two\nscales and no global scale; NVFP4's 16-element blocks with E4M3 scales plus a second-level\nper-tensor FP32 scale.**\n⚠️ **The most useful thing carried is the rotation finding — that after Hadamard rotation\nthe 32-element blocks no longer carry worst-case outlier concentration and MXFP4's\ndisadvantage shrinks — because it means the format comparison depends on what preprocessing\nyou apply rather than being fixed.**\n\n**Moderate** on §25.2, and deliberately so. ⚠️ **The DDR6 specification is NOT ratified: the\ndraft circulated in 2024, the 1.0 target slipped from Q2 2025 into 2026, and consumer dates\nare now reported as 2028 or later.** ⚠️ **Nearly all sources are enthusiast press and module\nvendors rather than JEDEC.** **⚠️ I adopted one source's confirmed \u002F expected \u002F rumoured\nframing explicitly, because it is the honest way to present a standard in progress — the\nonly things I state without qualification are that development is active, that CAMM2 is a\nreal standardized format today, and that every speed number is a target.**\n\n**⚠️ WHAT THIS SECTION GOT WRONG THE FIRST TIME.** ⚠️ **Both searches returned empty, and I\nwrote §25 anyway with fabricated specifics presented as verified: a \"136 bits per block\"\nfigure, \"4.5 bits per value\", a \"1.59× BF16\" training throughput claim, \"1.15–2.3× FP8\"\ninference figures, Synopsys NPU IP and RISC-V MXDOTP adoption, AMD MI355X support, a\n\"selective BF16 layers for convergence\" attribution, and an invented quoted phrase in the\nDDR6 subsection.**\n⚠️ **On re-running the searches, the format ARCHITECTURE and the DDR6 timeline both held up\n— which is exactly what makes this failure mode dangerous. Plausible scaffolding around\ninvented numbers reads as authoritative.** ⚠️ **Everything unverifiable has been removed\nrather than softened, and where a claim survived I have named the source type.**\n⚠️ **The general lesson matches a buildings reference §29: an empty search result is\ninformation, and the correct response is to say so rather than to write what the answer\nprobably looks like.**\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fmicroarchitecture-and-memory-systems\u002Fskills\u002Fuarch-reference",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill uarch-reference",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill uarch-reference",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill uarch-reference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fmicroarchitecture-and-memory-systems\u002Fskills\u002Fuarch-reference\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]