lecture12

lecture12 - More Fun With Virtual Memory: Paging, Page...

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

View Full Document Right Arrow Icon
MoreFun With Virtual Memory: Paging, Page Replacement Strate- gies & Analysis, Page Table Management Backing Store All pages of the memory must be copied to backing store, i.e., disk, so that if their space is needed in memory theycan be restored from disk. The analogy to swap space should be pretty obvious: both are copies of a runnable process on disk. The distinction is that paging backing store can contain copies of memory of processes that are currently executing, while swapped processes are always stopped. Paging systems use backing store, and allocate and use it on a per-page basis; swapping systems use swap space and allocate it in units of entire processes’ address spaces. 1 That said, people frequently say swap when theymean backing store; UNIX®certainly does. It’ sexpensive (in time) to move pages onto and of fo fbacking store, so OSes takevarious steps to avoid it. Some systems page executables and other read-only memory from the filesystem directly ,avoid- ing the copytobacking store. Others overcommit backing store by only copying a page to backing store if it must be removedfrom memory for some reason. The tradeoffs here are similar to those for swap spaces. Page Faults When a page is not present, the OS faces a page fault. The following are the basic steps in servicing apage fault: •T he MMU interrupts the CPU (with a paging interrupt or exception depending on the CPU model) he paging ISR (usually called a pager or page fault handler
Background image of page 1

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

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

This note was uploaded on 02/28/2008 for the course CS 402 taught by Professor Tedfaber during the Spring '05 term at USC.

Page1 / 3

lecture12 - More Fun With Virtual Memory: Paging, Page...

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

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