L-12
L-12
Fragmentation
Need for compaction/swapping
A process size is limited by the available
physical memory
Dynamic growth of partition is troublesome
No winning policy on allocation/deallocation
P2
P3
The Basic Problem
Process 1
Process 0
Key Facts
Page Table
Page Table Structure
index into
page table
s bits
frame no. offset
p bits
s: log (page size) Physical address
Example: PDP-11
Page size: 8K
16 bits Up to 4M mem
13 bits
frame no. offset
8-entry 22 bits
page Physical address
table
(in hardware)
Weird Stuff: Free Page Management
Virtual Physical Virtual
Process 0 Process 1
Key fact:
A memory frame
cannot be accessed
Free space unless mapped
Fun Stuff: Sharing
Virtual Physical Virtual
0 0
Process 1
Process 0
Sharing