Hardware

How DMA and the IOMMU Work: Addresses, Translation, and Why Devices Cannot Touch Arbitrary Host Memory

A network interface that just received a frame does not interrupt the CPU so the processor can copy the payload. The device writes the frame...

Sarthak Bystander 12 Oct, 2026

How Memory Ordering Works: Store Buffers, Barriers, and Why x86 Is Not Sequentially Consistent

Two threads can each write a flag and then read the other thread's flag, and both reads can return the old value. Nothing in the source ...

Sarthak Bystander 8 Oct, 2026

How NAND Flash and the FTL Work: Pages, Erase Blocks, and Why a Small Write Rewrites a Block

A database that updates a 4 KiB page does not update a 4 KiB cell on the SSD. The host sends a logical block address. The drive's flash ...

Sarthak Bystander 4 Oct, 2026

How CPU Caches Work: Lines, Associativity, and False Sharing

A load that misses DRAM can cost hundreds of cycles. A load that hits L1 often costs a handful. That gap is why two programs with the same b...

Sarthak Bystander 18 Sept, 2026