18_ Virtual_Memory_I_2spp

18_ Virtual_Memory_I_2spp - CSC 4103 - Operating Systems...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSC 4103 - Operating Systems Fall 2009 Tevfik Ko ! ar Louisiana State University October 29 th , 2009 Lecture - XVIII Virtual Memory 2 Roadmap • Virtual Memory Demand Paging Page Faults Page Replacement Page Replacement Algorithms (FIFO, LRU, Optimal etc) Performance of Demand Paging
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background Virtual memory – separation of user logical memory from physical memory. Only part of the program needs to be in memory for execution. Logical address space can therefore be much larger than physical address space. Allows address spaces to be shared by several processes. Allows for more efficient process creation. • Virtual memory can be implemented via: Demand paging Demand segmentation Demand Paging • Bring a page into memory only when it is needed Less I/O needed Less memory needed Faster response More users • Page is needed ! reference to it invalid reference ! abort not-in-memory ! bring to memory
Background image of page 2
Valid-Invalid Bit With each page table entry a valid–invalid bit is associated (1 ! in-memory and legal, 0 ! not-in-memory or invalid) Initially valid–invalid bit is set to 0 on all entries Example of a page table snapshot: During address translation, if valid–invalid bit in page table entry
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/01/2011 for the course CSC 4103 taught by Professor Ullmer,b during the Fall '08 term at LSU.

Page1 / 12

18_ Virtual_Memory_I_2spp - CSC 4103 - Operating Systems...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online