















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Regs
L2 Cache
Memory
Disk
Tape
Instr. Operands
Blocks
Pages
Files
Upper Level
Lower Level
Faster
Larger
Cache Blocks
Thus far
Next: Virtual Memory
Virtual to Physical Address Translation
~only program running
virtual address (inst. fetch load, store)
Program operates in its virtual address space
HW mapping physical address (inst. fetch load, store)
Physical memory (incl. caches)
Mapping Virtual Memory to Physical Memory
Physical Memory
โ
Virtual Address: page no. offset
Page Table Base Reg
Page Table located in physical memory
(actually, concatenation)
index into page table
Physical Memory Address
Page Table
Val -id
Access Rights
Physical Page Address
Docsity.com
What is the size of information blocks that are transferred from secondary to main storage (M)? โ page size (Contrast with physical block size on disk, I.e. sector size)
Which region of M is to hold the new block โ placement policy
How do we find a page when we look for it? โ block identification
Block of information brought into M, and M is full, then some region of M must be released to make room for the new block โ replacement policy
What do we do on a write? โ write policy
Missing item fetched from secondary memory only on the occurrence of a fault โ demand load policy
pages
reg
cache mem^
disk
frame
Processor
Lookup
Cache
Main Memory
VA PA^ miss
hit
data
Trans- lation
hit
miss
Virtual Physical Dirty Ref Valid Access Address Address Rights
1 2 9
valid virtual physical
1 7 32 1 2 9
valid virtual physical