复旦大学:《计算机原理 Computer System》课程PPT课件_Virtual Memory(• Multilevel page tables • Different points of view • Pentium/Linux Memory System • Memory Mapping)

virtual Memory
1 Virtual Memory

Outline Multilevel page tables Different points of view Pentium/Linux Memory System Memory Mapping Suggested reading: 10.6, 10.3, 10.7, 10.8
2 Outline • Multilevel page tables • Different points of view • Pentium/Linux Memory System • Memory Mapping • Suggested reading: 10.6, 10.3, 10.7, 10.8

10.6 Address translation 10.6.3 Multi Level Page Tables
3 10.6 Address Translation 10.6.3 Multi Level Page Tables

Multi-Level Page Tables Given: 4B (212) page size 32-bit address space 4-byte pte Problem: Would need a 4 mb page table ·220*4 bytes
4 Multi-Level Page Tables • Given: – 4KB (212) page size – 32-bit address space – 4-byte PTE • Problem: – Would need a 4 MB page table! • 220 *4 bytes

Multi-Level Page Tables Level 2 Common solution Tables multi-level page tables e.g., 2-level table(P6) Level 1 Table Level 1 table: 1024 entries each of which points fo a Level 2 page table Level 2 table: 1024 entries each of which points to a page
5 Multi-Level Page Tables • Common solution – multi-level page tables – e.g., 2-level table (P6) • Level 1 table: 1024 entries, each of which points to a Level 2 page table. • Level 2 table: 1024 entries, each of which points to a page Level 1 Table ... Level 2 Tables

Multi-Level Page Tables Level 2 Virtual Page Table Page T ables Memory VP O PTE O I O vF1023 PTE 2Ka晶 ocated VM pages vF1024 for code and data PTE2(null) PTE 1023 PTE 3(null) vP2047 PTE 4(null) 匚PTE0 PTE 5(null) PTE 6(null) PTE 1023 PTE 7(null) gap 6K unallocated VM pages PTE 8 1023nu (1K-9) PTES null PTEs PTE 1023 unallocated 1023 unaLlocated pages aaes vP9215 1 lOcated vM page Figure 10. 18 P710 for the stack
6 Multi-Level Page Tables Figure 10.18 P710

Multi-Level Page Tables VIRTUAL ADDRESS n-1 P VPN 1 VPN 2 VPN K VPO Level 1 Level 2 Level k Page Table Page Table Page Table PPN PPO PHYSICAL ADDRESS Figure 10. 19 P711
7 Multi-Level Page Tables Figure 10.19 P711

Representation of virtual Address Space P=1.M=1 Page 15 PT3|P=0,M=0 Page 14 P=1.M=1 P=0.M=1 Page 13 Page Directory Page 12 P=1,M=1 P=1,M=1 Pt P=0,M=0 Page 11 P=1,M=1 P=1.M=1 P=0.M=0 P=0.M=1 P=0,M=1 P=0.M=1 PTO Page 8 P=0.M=1 Page 7 P=0.M=0 P=0,M=0 Page 6 Simplified Example Page 4 Mem Addr 16 page virtual address space age 3 e Disk addr Flags In mem P: Is entry in physical memory? Page 1 On Disk M: Has this part of va space been Page o mapped? Unmapped
8 • Simplified Example – 16 page virtual address space • Flags – P: Is entry in physical memory? – M: Has this part of VA space been mapped? Page Directory PT 3 P=1, M=1 P=1, M=1 P=0, M=0 P=0, M=1 • • • • P=1, M=1 P=0, M=0 P=1, M=1 P=0, M=1 • • • • P=1, M=1 P=0, M=0 P=1, M=1 P=0, M=1 • • • • P=0, M=1 P=0, M=1 P=0, M=0 P=0, M=0 • • • • PT 2 PT 0 Page 0 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Mem Addr Disk Addr In Mem On Disk Unmapped Representation of Virtual Address Space

10.4 VM as a Tool for Memory Management
9 10.4 VM as a Tool for Memory Management

A Tool for Memory Management Separate virtual address space Each process has its own virtual address space Simplify linking sharing loading, and memory allocation
10 A Tool for Memory Management • Separate virtual address space – Each process has its own virtual address space • Simplify linking, sharing, loading, and memory allocation
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Virtual Memory(• Virtual Space• Address translation • Accelerating translation• Different points of view).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Cache Memory(• Cache mountain • Matrix multiplication).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Cache Memory(• General concepts • 3 ways to organize cache memory • Issues with writes • Write cache friendly codes • Cache mountain).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Memory Hierarchy(• Random-Access Memory(RAM)• Nonvolatile Memory • Disk Storage • Locality • Memory hierarchy).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Hardware Organization.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_13 Code Optimization(• Optimizing Blockers • Understanding Modern Processor • More Code Optimization techniques • Performance Tuning).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_12b Code Optimization(• Machine-Independent Optimization – Code motion – Memory optimization • Suggested reading).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Pipelined Implementation Part II.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Pipelined Implementation Part I.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_09、10 Sequential CPU Implementation.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Processor Architecture.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Heterogeneous Data Structures & Alignment; Putting it Together; Floating Point.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Procedure Call and Array.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Machine-Level Representation of Programs Ⅱ.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Machine-Level Representation of Programs I.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Integer Operations; Floating Points.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Integer Representations.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Introduction to Computer Systems; Information is Bits+Context; Information Storage.ppt
- 复旦大学:《计算机原理 Computer System》课程资源_2006年期中考试题目.doc
- 复旦大学:《计算机原理 Computer System》课程资源_2006年期中考试答案.doc
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Dynamic Memory Allocation(• Implementation of a simple allocator • Explicit Free List • Segregated Free List).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Linking II(• Static linking • Symbols & Symbol Table • Relocation • Executable Object Files • Loading).ppt
- 复旦大学:《计算机原理 Computer System》习题PPT课件_chapter2.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_Chapter 3 Machine-Level Representation of Programs.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_Chapter 3 Machine-Level Representation of Programs.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_Chapter 3 Machine-Level(2)Representation of Programs.ppt
- 复旦大学:《计算机原理 Computer System》习题PPT课件_chapter4 Processor Architecture.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_chapter5 Optimizing Program Performance.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_chapter6 The Memory Hierarchy.ppt
- 复旦大学:《计算机网络与网页制作》课程教学大纲 Computer Network and Webpage Design.pdf
- 《当代教育理论与实践》论文:大学计算机基础教学实践与思考(复旦大学:肖川、张向东).pdf
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)01 计算机网络基础.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)02 两类基本网络(局域网、无线局域网).pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)03 因特网基础知识.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)04 传统的Internet服务.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)05 新型的Internet应用.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)06 Internet安全.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)07 Dreamweaver CS5入门.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)08 创建一个新站点.pptx
- 复旦大学:《计算机网络与网页制作》课程PPT教学课件(讲稿)09 添加文本和图像.pptx