Virtual Memory: Illusion Much Larger Than The Physical Memory
Virtual Memory: Illusion Much Larger Than The Physical Memory
P M
I D
L1 L2
Physical
Virtual
address space
Goals address space
Sector
{
Read Write
head
DISK
What is a page? What is a segment?
VM Types
Segment sizes
are not fixed
A segment
Page sizes
are fixed
Segments can
be paged
Address Translation
0 1 7 Read only
1 0 Sector 6, Track 18
2 1 45 Not cacheable
3 1 4
4 0 Sector 24,Track 32
Page Table (Associative Map Format)
Pg, Blk, P Block no./ Disk addr Other attributes
0, 7, 1 7 Read only
1, ?, 0 Sector 6, Track 18
2, 45, 1 45 Not cacheable
3, 4, 1 4
4, ?, 0 Sector 24, Track 32
Examples of VM performance
thrashing is a possibility.
are
! Random
Writing into VM
0, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, … 100,000 references
Page thrashing
Fault
Rate
Enough to Available M
hold the
working set
Disk cache
Page Offset
Page table base
+ register
16-512 entries
TLB
M
Set-associative
or fully
associative cache No match