Swapping, backing and memory pressure

Follow pages out of RAM and back, see why a clean page leaves free and a dirty page is written first, and meet a loop that faults on every touch. Virtual memory depth · Operating systems.

Every frame is full and the program touches one more page. Follow a clean page and a dirty page out of RAM and back, then watch a loop that faults on every touch.

What you will learn

  • Explain memory pressure, backing storage and residency
  • Trace a clean page-out (no write) and a dirty page-out (write first) with the page-in that follows
  • Recognise a loop that needs more frames, and tell a serviced fault from a refused access

Lesson outline

  1. When RAM runs out
  2. A clean page leaves for free
  3. A dirty page is written first
  4. Choosing the victim is another question
  5. When every touch faults
  6. A fault is not always an error

16 minutes · 5 scenes · 0 predict checks · 11 quiz questions

The full lesson is available with Premium.