Watch
How CPU Memory & Caches Work - Computerphile
The creator of Compiler Explorer explains cache levels, cache lines and why memory access patterns change performance by orders of magnitude.
Engineering Fundamentals for the Agent Era
Contents Section 3, The Machine
A whole file or table loaded into memory when the job needed to stream it, which works in testing and crashes on real data.
Success reported as soon as a write call returns, with no flush or sync to make sure the data survives a crash.
A background job that takes three minutes on a platform that kills anything over thirty seconds, so it finishes locally and never in production.
A script that ignores exit codes, so a failed step looks like success to everything downstream.
What the CPU, memory, storage and operating system actually do when a program runs, and why their costs differ by orders of magnitude.
An agent wrote a nightly job that reads a 40 GB log file into memory in one call, writes a summary, and exits with status 0 even when processing throws an error. Find the two defects that only appear on production-sized input or on failure, and describe what the scheduler and the next job in the pipeline will see.
Watch
The creator of Compiler Explorer explains cache levels, cache lines and why memory access patterns change performance by orders of magnitude.
Animated walkthrough of how a CPU fetches, decodes and executes instructions across cores and caches, making the hardware concrete for developers who never took a hardware course.
A real case study of what a returned write or fsync does and does not guarantee, showing how data is lost after a crash even in mature software.
Free, readable chapters on processes, virtual memory, scheduling, file systems and crash consistency, organized around virtualization, concurrency and persistence.
Explains the machine from a programmer's side: machine code, the memory hierarchy and locality, linking, processes, signals and system-level I/O.
A practical tour of processes, file descriptors, devices, filesystems and inspection tools such as lsof and strace for finding which file or port a program is touching.
Paper
The detailed reference on RAM, CPU caches, TLBs and NUMA, with measurements showing why access patterns dominate performance.
Manual
States exactly what fsync and fdatasync flush to the storage device and why a returned write() alone does not guarantee data survives a crash.