Page 1
1
Virtual Memory
2
Virtual Memory
- Main memory is “cache” for secondary storage
- Secondary storage (disk) holds the complete
“virtual address space”
- Only a portion of the virtual address space lives
Virtual Memory 1 Virtual Memory Main memory is cache for - - PDF document
Virtual Memory 1 Virtual Memory Main memory is cache for secondary storage Secondary storage (disk) holds the complete virtual address space Only a portion of the virtual address space lives in the physical address
1
2
3
Address translation
4
5
pages
6
7
8
V a l i d 1 1 1 1 1 1 1 1 1
9
Rights
11
Virtual page number
Page offset
Page address register +
13
15
16
1 100 1 107 1 10 r 1 12 lrw 1 13 rw 1 29 rw 1 30 rw
V V Flgs Page Page Directory Page table
17
1 100 1 110
V Page
1 130 1 131
V Page
1 10 r 1 12 lrw 1 13 rw
V Flgs Page Page table Level 1 Directory Level 0 Directory
3 2 Page Ofs
Level 1 Level 0 Pg Idx Address: Each part of address selects an entry in a table
18
19
20
21
22
23
24
25
28
29
30
31
32
33
34
35
36