




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
2
3
Virtual Address Space
Physical Address Space
4
Virtual Address Space
Kernel
Stack
Shared Libraries
BSS (heap)
Data
Text (Code)
5
Virtual Address Space
Physical Address Space
Disk
Programmer’s perspective : logically present System’s perspective : Not mapped, data on disk
6
Proc 1 Address Space
Physical Address Space
Proc 2 Address Space
Disk
Currently running
Memory Access
7
8
Virtual Address Space
Physical Address Space
Page Table
9 10
11
Proc 1 Address Space
Physical Address Space
Page Table
Proc 2 Address Space
Page Table
Two (or more) processes running the same program and sharing the text section
12
Page Table
19
20
21
22
PID VPN next
PID VPN offset
Index 0 1 2 3 4 5 6 …
IPT: entry for each physical frame
Hash Anchor Table (HAT)
Hash
ctrl
PID VPN next
PID VPN offset
Index 0 1 2 … 0x40C 0x40D … …
Hash Anchor Table (HAT)
Hash
ctrl
0x5 0x
1 0x1A 0x40C
0 0x5 0x
2
0x40C 0x
ppn offset
25
29
Proc 1 Address Space
Physical Address Space
Page Table
Proc 2 Address Space
Page Table
Two (or more) processes running the same program and sharing the text section
30
37
Frame Pool
1 3 2
TLB
Virtual Address Spaces (3 processes)
Page Tables for 3 processes (^) Frame Table
Physical Memory 38
Frame Pool
TLB
Virtual Address Spaces (3 processes) (^) Inverted Page Table
Physical Memory
39
kseg
kuseg
0x
0x
kseg
kseg
0xA
0xC
0xFFFFFFFF
41
Proc 3 kuseg
0x
0x
kseg
kseg
0xA
0xC
0xFFFFFFFF
Proc 2 kuseg
Proc 1 kuseg
42
kseg
kuseg
0x
0x
kseg
kseg
0xA
0xC
0xffffffff
Physical Memory
43
kseg
kuseg
0x
0x
kseg
kseg
0xA
0xC
0xffffffff
Physical Memory 44
kseg
kuseg
0x
0x
kseg
kseg
0xA
0xC
0xffffffff