







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








1
^
^
^
3
^
^
holes
fork()
^
^
5
^
^
l^ invalid reference
⇒^ abort l^ not-in-memory
⇒^ bring to memory
pager
^
^
7
^
^
in-memory,
i^ ⇒^ not-in-memory)
v vv v i …. i i Frame #^ valid-invalid bit page table
^
^
13
^
^
^
^
^
^
over-allocation
of physical memory
replaced
^
^
17
^
^
modify bit
to with each frame l^ only copy the replacement page to memory, if modified
^
^
19
^
^
page^ references
^
^
25
^
^
time-of-use
field
l^ copy the clock into the time-of-use field on every page access l^ for replacement, find the page with the smallest time-of-use field l^ replacement algorithm requires search of the full page table l^ each memory access needs additional write to time-of-use field l^ counter overflow?
^
^
27
^
^
(0, 1101110) ^ (0, 11001101)
(0, 01100110)
^
^
nd^ chance, if RF= and move onto next page,clear reference bit l circular queue of pages l pointer indicates nextreplacement page l what is all bits are set?
29
^
^
^
^
31
^
^
minimum^
number of frames a process needs? l^ depends of the maximum number of pages any instruction in theISA can reference at a time^ ^ what can happen if we do not provide this minimum? l^ direct addressing load/store need 2 frames^ ^ one for instruction, and one for memory reference l^ one-level indirect addressing needs 3 frames^ ^ one for instruction, one for address, and one for memory reference l^ PDP-11 needs 6 frames, IBM 370 needs 8 frames l^ should there be a maximum number?
^
^
m^ frames equally among
n^ processes
l^ each process gets about
m/n^ frames
^
×= = =∑ = =
^ = = = ≈×= ^ ≈×=
37
^
^
l^ page fault rate falls until the next program phase l^ behavior repeats
^
^
39
^
^
41
^
mmap()^ system call to
create a memory-mapped file l files accessed using
open(), read(), write()
are mapped to kernel
address space in Solaris l Windows NT and XP use memory mapped files to accomplishshared memory
^
interrupt driven I/O
43
^
^
^
^
^
^
l^ Each row is stored in one page l^ program 1: 128 * 128 = 16, 384 page faults^
l^ Program 2: 128 page faults^