Skip to main content
InterviewHubPRO
Section Overview
Q12

Question 12 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

24%
Linux OS Internals (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What are Minor Page Faults vs Major Page Faults?

senior LevelSystem Design

In Simple Words: When a process accesses a virtual memory address that is not currently mapped in physical RAM:

  • Minor Page Fault (Soft): The page is already resident in physical RAM (e.g. shared library page loaded by another process, or allocated memory not yet touched). The kernel simply updates the page table. Extremely fast; zero disk I/O.
  • Major Page Fault (Hard): The requested page is not in physical RAM and must be read from physical disk (swap space or executable binary). Causes the process to enter Sleep mode until disk I/O completes (thousands of times slower!).