Demo: The Page Faults of a Fork¶
Run¶
In a second terminal, at every prompt:
Ask¶
- The child starts with 4 MB resident and a couple of dozen faults. What was copied at the fork?
- Reading 512 pages: one fault. Writing 512 pages: 512 faults. What does each of those faults do?
- The child is gone, and the parent's 1,024 writes still cost 1,025 faults. Why?