Virtual Memory
1
Atanu Shome, CSE KU
● Main memory can act as cache for
secondary memory.
● This is called Virtual Memory.
● Motivation:
○ Efficient and Safe memory share
among programs.
○ Go beyond limited RAM.
○ Not enough adjuscent space.
Levels in Memory Hierarchy
2
Atanu Shome, CSE KU
A System with Virtual Memory
3
Atanu Shome, CSE KU
Terms
Virtual Memory
Page
Page
Fault
Virtual
Address
4
Atanu Shome, CSE KU
Virtual Memory
5
Atanu Shome, CSE KU
Address Translation via Page Table
6
Atanu Shome, CSE KU
Adjuscent Space Not Required
7
Atanu Shome, CSE KU
Translation Lookaside Buffer (TLB)
8
Atanu Shome, CSE KU
Translation Lookaside Buffer (TLB)
9
Atanu Shome, CSE KU

09 Virtual Memory.pptx