Address translation and page faults 00:00:01 A warm process touches a new working set The search index says it opened instantly. Its first customer waits a full beat before seeing a result. Chen can reproduce the delay on every cold restart, even though mapping the file itself is fast. In a normal interval the worker takes one major page fault. When customers first touch the new file-backed range, the count reaches eighty-four. A mapped address establishes where a byte can live, not whether that byte is in physical memory yet. A virtual address identifies a location inside one process. Hardware caches recent translations in the TLB and walks page tables on a miss. 00:00:38 Touch the first cold page A missing or disallowed mapping can cause a fault that enters the kernel. Some faults need only local bookkeeping or a zero-filled page, while others must wait for backing data to be read. The instruction references a virtual page plus a byte offset. A cached translation can avoid reading page-table entries. Hardware on this example machine reads page-table levels and verifies access rights. A valid mapping supplies a frame plus offset. An absent or unauthorized mapping takes a fault path. 00:01:11 A translation miss or a storage read? What should happen to storage reads if Chen is seeing a missing translation rather than a cold file page? A translation cache miss may require walking page tables for a page already resident. A major fault needs I O to satisfy the fault. Match faults and device reads to the affected process and first-request interval. A warm page table can still suffer TLB misses. Flat major faults with high CPU time shift the investigation away from cold disk reads. 00:01:40 Warm only the working set Warming just the bounded hot range brings major faults down to three in the example. A virtual address identifies a location in an address space. Different processes can use the same virtual address for different physical pages, or map a shared page at different addresses. Chen restarts cold once more and measures first-request latency, startup time and the memory displaced from other work.