



























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!




























regsregs
C a c h e
Memor Memor yy (^) diskdisk
size: speed: $/Mbyte: block size:
3 ns
4 B
Register Cache Memory Disk Memory 32 KB / 4MB 6 ns $100/MB 8 B
100 ns $1.50/MB 4 KB
10 ms $0.06/MB
larger, slower, cheaper
4 B 8 B 4 KB
cache virtual memory
Process 1:
Virtual addresses (VA)
Physical addresses (PA)
VP 1 VP 2
Process 2:
PP
0 address translation
0
N-
0
N- M-
VP 1 VP 2
PP
PP
(Read-only library code)
“Handles”
P1 Pointer Table
P2 Pointer Table
Process P
Process P
Shared Address Space
virtual page number page offset virtual address
physical page number page offset physical address
p–1 0
address translation
m–1 p
n–1 p p–1 0
Notice that the page offset bits don't change as a result of translation
Trans- lation Cache Main Memory
VA PA miss
hit data
virtual page number page offset^ virtual address
physical address
N–1 p p–1 0
valid tag physical page number valid
dirty valid valid valid
valid tag data
data
= cache hit
tag (^) index byte offset
=
TLB hit
process ID
Cache