x64 address translation: CR3 → PML4 → PDPT → PD → PT → 4 KB page

Enter any 64-bit address in hex. WinDbg's fffff800`12345678 spelling works too.
User-mode EXE Kernel space SKU 00125 as an address Non-canonical
Bits 63-48 (copy of bit 47) 0x0000 63 48 PML4 index 0x000 47 39 PDPT index 0x000 38 30 PD index 0x000 29 21 PT index 0x125 20 12 Byte in the 4 KB page 0x000 11 0 CR3 points at this process's PML4 HOP 1: PML4 512 entries x 8 bytes = 4 KB [0x000] @ byte 0x000 one entry maps 512 GB bits 47-39 HOP 2: PDPT 512 entries x 8 bytes = 4 KB [0x000] @ byte 0x000 one entry maps 1 GB bits 38-30 HOP 3: PD 512 entries x 8 bytes = 4 KB [0x000] @ byte 0x000 one entry maps 2 MB bits 29-21 HOP 4: PT 512 entries x 8 bytes = 4 KB [0x125] @ byte 0x928 one entry maps 4 KB bits 20-12 4 KB DATA PAGE 4,096 bytes byte 0x000 the byte you asked for bits 11-0 Roll Rush's B+ tree: Root Page #0 → leaf = 2 hops. x64: CR3 → PML4 → PDPT → PD → PT → page = 4 table reads on every TLB miss. The TLB caches finished walks the way SQL Server's buffer pool caches 8 KB pages.
HopTableAddress bitsIndexEntry's byte in its 4 KB tableOne entry maps
1 PML4 47-39 0x000 (0) 0x000 = index x 8 512 GB
2 PDPT 38-30 0x000 (0) 0x000 = index x 8 1 GB
3 PD 29-21 0x000 (0) 0x000 = index x 8 2 MB
4 PT 20-12 0x125 (293) 0x928 = index x 8 4 KB
Leaf4 KB page11-0 -byte 0x000-

If the PD entry is marked as a 2 MB large page, the walk stops one hop early and bits 20-0 (0x125000) are the byte offset. One fewer table to read, and one TLB entry covers 512 times as much memory.

User spaceBit 47 is 0. Each half of the x64 address space is 128 TB.
0x125Virtual page number: the address divided by 4 KB, the size of one Windows page.
0x928 KB block: the size of one SQL Server page, which is two Windows pages. This byte is in the second one.
0x1264 KB block: Windows' allocation granularity, and also the size of one SQL Server extent (8 pages x 8 KB).

The map: Windows Internals, 7th edition, on this server

BookConceptWhere it lives hereIn plain words
Pt 1, ch 5 Address translation: 4 KB pages, four levels of page tables, the TLB The page walk above, and the root-to-leaf B+ tree in Roll Rush Every memory access walks a tree of 4 KB pages, the same way SQL Server walks its index pages. The TLB is the cache that makes it fast.
Pt 1, ch 5 Allocation granularity: VirtualAlloc reserves in 64 KB steps SQL Server extent = 8 pages x 8 KB = 64 KB; one 8 KB SQL page = two 4 KB OS pages SQL Server's page and extent sizes line up with how Windows hands out memory.
Pt 1, ch 5 + ch 7 Working sets and trimming; the SeLockMemoryPrivilege privilege warehouse-sql's buffer pool On a Windows SQL Server I know what 'Lock Pages in Memory' does: it grants SeLockMemoryPrivilege so Windows cannot page the buffer pool out.
Pt 1, ch 5 Look-aside lists, built on interlocked singly linked lists (SLIST) Forklift Undo: ConcurrentStack in Warehouse.Api My undo stack is a lock-free compare-and-swap LIFO, the same idea Windows uses for its look-aside lists.
Pt 2, ch 8 Synchronization: spinlocks, dispatcher objects, SRW locks The B+ tree engine's lock, and SQL Server's row lock in /api/orders/reserve Two orders can't take the last roll, because the check and the reservation happen under one lock.
Pt 1, ch 6 I/O completion ports strayer-server: one boss thread, 4 workers, a bounded queue of 8 An IOCP caps running threads at the CPU count and wakes the most recent waiter first: Windows' built-in answer to the thundering herd my C server handles by hand.
Pt 1, ch 3 Job objects: limits on processes, memory and CPU Docker limits on php-fpm, apache and strayer (Linux cgroups; Windows containers use job objects) Without a job object or a cgroup, one runaway process can take the whole machine down.
Pt 1, ch 7 Access tokens, SIDs, privileges Warehouse API signs in to SQL Server as sa Least privilege: each service gets its own login with only the rights it needs. sa is the database's SYSTEM.
Pt 1, ch 7 Integrity levels and AppContainers Internal Docker networks: b2r, strayer and rtos have no route out Sandbox the risky thing, so even if it's compromised it can't reach anything.
Pt 2, ch 11 NTFS keeps each directory as a B-tree index of file names Roll Rush's page-split visualizer A small folder lives inside its MFT record; a big one spills into 4 KB index buffers, the same page split shown in Roll Rush.