Demand Paging
A strategy is to load pages only as they are needed. This technique is known as
demand paging and is commonly used in virtual memory systems. With
demand-paged virtual memory, pages are only loaded when they are
demanded during program execution; pages that are never accessed are thus
never loaded into physical memory.
How to reduce the SWAP time:
When a process is to be swapped in, the pager(swapper)
guesses which pages will be used before the process is swapped
out again.
Instead of swapping in a whole process, the pager brings only
those pages into memory.
Thus, it avoids reading into memory pages that will not be
used anyway, decreasing the swap time and the amount of
physical memory needed.