When real memory fills up, pages not currently in use by open applications are written to a virtual memory “swap file” on the disk for temporary storage.
When any swapped out page is required again, once again a page in real memory is written to the disk to make room, and the disk page is retrieved.
However, when a user has too many open programs, there can be excessive amounts of page swapping, causing applications to slow down.
The figure shows program A needs a page from the disk, and a page from program C is swapped out to make room.
|
|
|