Linux & OS Internals
Page faults
Explain the difference between minor and major page faults, why a major fault stalls a thread on disk, and how to read the counts from a process or a timed run.
What you will be able to do
- Explain how a minor fault differs from a major fault in I/O and in wait time.
- Decide when a fault rate needs action, by comparing it with disk waits and the request path.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- NUMA localityIntermediate · 4 min
Explain how NUMA nodes make memory access cost depend on location, how the local allocation policy places pages at first touch, and how to check and fix remote memory…
- Virtual memoryIntermediate · 4 min
Explain how each process gets its own virtual address space, how pages are mapped on demand, and why VIRT and RES tell different stories about memory use.
- Copy on writeAdvanced · 4 min
Explain how a private file mapping shares pages until a write, how the write copies one page, and why writes rather than reads decide the memory cost of a shared model.
- OOM selectionAdvanced · 4 min
Explain how the kernel scores processes when memory runs out, how oom_score_adj shifts that score so a process is protected or exposed, and how cgroup v2 kills a whole…
- cgroup v2 controllersAdvanced · 4 min
Explain how cgroup v2 groups processes under one unified hierarchy, why a controller must be enabled per directory before children can use it, and how memory.max and…
- PID and user namespacesAdvanced · 4 min
Explain how PID and user namespaces change what a process sees, why PID 1 handles signals differently, and how a user ID map ties root inside to an ID outside.