Swapping and relocation
Moving processes between memory and backing store.
Module 4
Session 4.1
Lesson 4 of 4
Swapping and Relocation
Move a whole process to backing store when RAM is tight. Bring it back at a new physical range using a relocation register.
Swap-out / swap-in
The kernel writes the address space of a sleeping process to swap space and reclaims its frames. On swap-in, the process may land at a different physical base. That is legal only if every address is relocated (base register, or page tables rebuilt).
Whole-process swapping is coarser than paging out a single page (Module 5). It is still the right mental model for “this job is on disk now.”