Memory
Memory
Memory
6.1 Introduction
2
6.2 Types of Memory
3
6.2 Types of Memory
5
6.3 The Memory Hierarchy
6
6.3 The Memory Hierarchy
7
6.3 The Memory Hierarchy
8
6.3 The Memory Hierarchy
9
6.4 Cache Memory
10
6.4 Cache Memory
11
6.4 Cache Memory
13
6.4 Cache Memory
14
6.4 Cache Memory
15
6.4 Cache Memory
18
6.4 Cache Memory
20
6.4 Cache Memory
22
6.4 Cache Memory
23
6.4 Cache Memory
24
6.4 Cache Memory
25
6.4 Cache Memory
26
6.4 Cache Memory
27
6.4 Cache Memory
28
6.4 Cache Memory
29
6.4 Cache Memory
30
6.4 Cache Memory
31
6.4 Cache Memory
32
6.4 Cache Memory
33
6.4 Cache Memory
34
6.4 Cache Memory
35
6.4 Cache Memory
36
6.5 Virtual Memory
38
6.5 Virtual Memory
40
6.5 Virtual Memory
41
6.5 Virtual Memory
• If the valid bit is zero in the page table entry for the
logical address, this means that the page is not in
memory and must be fetched from disk.
– This is a page fault.
– If necessary, a page is evicted from memory and is replaced
by the page retrieved from disk, and the valid bit is set to 1.
• If the valid bit is 1, the virtual page number is replaced
by the physical frame number.
• The data is then accessed by adding the offset to the
physical frame number.
42
6.5 Virtual Memory
43
6.5 Virtual Memory
44
6.5 Virtual Memory
45
6.5 Virtual Memory
46
6.5 Virtual Memory
47
6.5 Virtual Memory
The next slide shows how all the pieces fit together.
48
6.5 Virtual Memory
49
6.5 Virtual Memory
51
6.5 Virtual Memory
54
Chapter 6 Conclusion
56
End of Chapter 6
57