0% found this document useful (0 votes)
24 views16 pages

Understanding Demand Paging in Virtual Memory

Demand paging loads pages of memory only when needed during program execution to reduce physical memory usage, pages not accessed are never loaded; when swapping in a process, the pager guesses and loads only pages that will be used before swapping out to decrease swap time and physical memory needed.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views16 pages

Understanding Demand Paging in Virtual Memory

Demand paging loads pages of memory only when needed during program execution to reduce physical memory usage, pages not accessed are never loaded; when swapping in a process, the pager guesses and loads only pages that will be used before swapping out to decrease swap time and physical memory needed.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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.

You might also like