1 / 32
文档名称:

ch10_Virtual Memory.ppt

格式:ppt   页数:32
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

ch10_Virtual Memory.ppt

上传人:中国课件站 2011/9/6 文件大小:0 KB

下载得到文件列表

ch10_Virtual Memory.ppt

文档介绍

文档介绍:Chap 10 Virtual Memory 虚存
编写:王红玲
Applied Operating System Concepts
内容
Background(背景)
Demand Paging(请求页式)
Performance of Demand Paging(请求页式的性能)
Page Replacement(页置换)
Page-Replacement Algorithms(页置换算法)
Allocation of Frames (页框的分配)
Thrashing(颠簸)
Other Considerations(其他考虑)
Demand Segmentation(请求段式)
Summary(总结)
Applied Operating System Concepts
Background 背景
Virtual memory – separation of user logical memory from physical memory.(虚拟内存—物理内存和用户逻辑内存的区分)
Only part of the program needs to be in memory for execution(只有部分运行的程序需要在内存中).
Logical address space can therefore be much larger than physical address space(因此,逻辑地址空间能够比物理地址空间大).
Need to allow pages to be swapped in and out(必须允许页面能够被换入和换出).
Virtual memory can be implemented via(虚拟内存能够通过以下手段来执行):
Demand paging (请求页式)
Demand segmentation(请求段式)
Applied Operating System Concepts
Demand Paging 请求分页
Bring a page into memory only when it is needed(只有在一个页需要的时候才把它换入内存).
Less I/O needed(需要很少的I/O)
Less memory needed (需要很少的内存)
Faster response(快速响应)
More users(多用户)
Page is needed (需要页) reference to it(查阅此页)
invalid reference(无效的访问)  abort(中止)
not-in-memory(不在内存)  bring to memory(换入内存)
Applied Operating System Concepts
Valid-Invalid Bit 有效-无效位
With each page table entry a valid–invalid bit is associated (1  in-memory, 0  not-in-memory)(在每一个页表的表项有一个有效- 无效位相关联,1表示在内存,0表示不内存)
Initially valid–invalid but is set to 0 on all entries(在所有的表项,这个位被初始化为0).
Example of a page table snapshot(一个页表映象的例子).
During address translation, if valid–invalid bit in page table entry is 0(在地址转换中,如果页表表项位的值是0)  page fault(缺页).
1
1
1
1
0
0
0

Frame #
valid-invalid bit
page table
Applied Operating System Concepts
Page Fault 缺页
If there is ever a reference to a page, first reference will trap to OS(如果有对一个页的访问,第一个访问要陷入OS) page fault(缺页)
OS looks at another table to decide(OS查看另一个表来决定):
Invalid reference(无效引用)  abort(终止).
Just not in memory(仅仅不在内存).
Get empty frame(得到空的页框).
Swap page into frame(把页换入页框).
Reset tables, vali

最近更新

2024年海南经贸职业技术学院单招职业适应性考.. 39页

2024年淮南师范学院单招职业适应性考试题库附.. 40页

2024年湖北体育职业学院单招职业倾向性测试模.. 39页

2024年湖北幼儿师范高等专科学校单招职业适应.. 41页

2024年湖北省恩施土家族苗族自治州单招职业倾.. 40页

2024年湖南中医药高等专科学校单招职业技能测.. 40页

2024年湖南化工职业技术学院单招职业技能测试.. 39页

2024年湖南外国语职业学院单招职业倾向性考试.. 41页

2024年湖南工程职业技术学院单招职业技能测试.. 41页

2024年湖南水利水电职业技术学院单招职业技能.. 40页

2024年湖南省湘潭市单招职业倾向性测试模拟测.. 41页

2024年湖南科技职业学院单招职业适应性测试题.. 39页

2024年湖南都市职业学院单招职业技能考试题库.. 40页

2024年湛江幼儿师范专科学校单招职业适应性测.. 41页

2024年潇湘职业学院单招职业倾向性测试题库附.. 41页

2024年潍坊食品科技职业学院单招职业倾向性测.. 40页

2024年牡丹江大学单招职业倾向性考试题库推荐.. 40页

2024年甘肃农业职业技术学院单招职业倾向性测.. 40页

2024年甘肃机电职业技术学院单招职业适应性考.. 40页

2024年甘肃省庆阳地区单招职业倾向性考试模拟.. 41页

2024年甘肃警察职业学院单招职业倾向性测试题.. 41页

2024年硅湖职业技术学院单招职业倾向性测试题.. 41页

2024年福州科技职业技术学院单招职业倾向性测.. 39页

小学学校疫情防控任务清单 3页

2024年福建省厦门市单招职业倾向性考试模拟测.. 40页

ZR-003 建设单位法人授权书 1页

玩具购销合同通用6篇 10页

卫生院医疗质量、医疗安全工作责任书 11页

新概念青少版2A各单元重点归纳 15页

2025年二手车经理工作总结模板 25页