What is a Page Fault? Walk through the steps the OS takes to resolve one.

Last updated 5 July 2026

  • A page fault is a hardware trap raised by the MMU (memory management unit) when a program touches a virtual page not present in physical RAM.

  • The OS validates the address: illegal access gets SIGSEGV. A valid page gets a free frame (evicting a victim if needed, writing it back if dirty) and is read in from disk while the process blocks.

  • The OS then updates the page table entry (frame, present bit), flushes stale TLB entries, and restarts the faulting instruction. Minor faults need no disk I/O, major faults do.

  • https://growthequityinterviewguide.com/firms/b-capital
  • https://www.interviewbit.com/sre-interview-questions/
  • https://www.reddit.com/r/cscareeradvice/new/
  • https://www.reddit.com/r/macbook/comments/1jg7fl6/24gb_ram_enough_for_software_engineering/
  • https://www.reddit.com/r/infosys/comments/1t71add/anyone_received_round_2_mails/
  • https://www.reddit.com/r/cscareeradvice/best/
  • https://www.reddit.com/r/LeetcodeChallenge/
  • https://www.reddit.com/r/infosys/comments/1t71i55/infosys_specialist_programmer_april_26_1st_round/
  • https://www.reddit.com/r/programming/comments/1hqo19u/static_search_trees_40x_faster_than_binary_search/
All Operating Systems interview questions