Skip to main content

Page faults don’t always mean disk access

· One min read
Binary Dose
Your Educator

A very common misconception in Operating Systems is that every page fault means the OS must access the disk.
That is not always true.

A page fault simply means that the required page is not usable in the current context.
This can happen for multiple reasons.

In many cases, the page is already present in main memory, but:

  • the access permission is missing, or
  • the page table entry is marked invalid temporarily.

In such situations, the operating system:

  1. Updates the page table entry
  2. Fixes the permission or state
  3. Resumes execution

➡️ No disk access happens here.

Disk access occurs only during a major page fault, when the page is truly absent from memory.

Understanding this distinction is important for:

  • Performance analysis
  • OS internals
  • Interview questions related to virtual memory

This detail often separates a surface-level answer from a strong conceptual one.

🚀 Level Up Your Engineering Mindset

Never Study in Isolation. Join Binary Dose.

Connect with fellow engineers, clear conceptual doubts, and get 2 visual breakdowns & engineering mental models daily across our community channels.

Discord
Official Hub

Discord Community

Start at #welcome-and-rules, say hello in #general-chat, clear doubts, and collaborate with engineers worldwide.

Join Discord Server→
⚡
Daily Knowledge Drops

Daily Visual Deep-Dives

Bite-sized system design schematics, core OS internals, and DSA intuition served right into your feeds every single day.

💡Have handwritten notes, cheat-sheets, or want to publish a technical article?
Learn How to Contribute→