Module 4
Module 4
Internal Fragmentation
– allocated memory may be
slightly larger than
requested memory; this
size difference is memory
internal to a partition, but
not being used
COMPACTION
Compaction is to shuffle OS
memory contents to place Process 4
all free memory together
in one large block. Process 3
15 page faults
First-In-First-Out (FIFO) Algorithm
Reference string:
7,0,1,2,0,3,0,4,2,3,0,3,0,3,2,1,2,0,1,7,0,1
3 frames (3 pages can be in memory at a time per
process)
1 7 2 4 0 7
2 0 3 2 1 0 15 page faults
3 1 0 3 2 1