Virtual memory | ||||||||||||||
|
||||||||||||||
Program and data use virtual addresses | ||||||||||||||
Virtual address maps to | ||||||||||||||
Physical address in RAM | ||||||||||||||
OR | ||||||||||||||
Disk address | ||||||||||||||
Process called memory mapping | ||||||||||||||
or address translation | ||||||||||||||
Fig 7.20 | ||||||||||||||
Principles same as cache, but different historical roots mean different terminology | ||||||||||||||
Virtual memory block ---> page | ||||||||||||||
Virtual memory miss ---> page fault | ||||||||||||||
Virtual memory also simplifies the process of loading a program in memory | ||||||||||||||
relocation: program can be loaded anywhere | ||||||||||||||