- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Chapter 9: Virtual Memory虚拟内存;CHAPTER OBJECTIVES;Chapter 9: Virtual Memory;9.1 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.
从而逻辑地址空间远大于物理地址空间
Allows address spaces to be shared by several processes.
允许地址空间被多个进程共享
Allows for more efficient process creation.
允许更有效的进程创建;Virtual memory can be implemented via:
Demand paging 请求式分页
Demand segmentation 请求式分段
However, segment-replacement algorithms are more complex than are replacement algorithms because the segments have variable sizes.
但是,段的替换算法比页替换算法复杂,因为段的大小不同
paged segmentation 段页式;Figure Virtual Memory That is Larger Than Physical Memory;9.2 Demand Paging 请求式分页;A demand-paging system is similar to a paging system with swapping.
请求式分页系统类似于分页系统+对换
But we use a lazy swapper—pager (页调度程序)
Swapper vs Pager
A pager never swaps a page into memory unless that page will be needed.
A swapper manipulates entire processes.;Basic Concepts 基本概念;Valid-Invalid Bit 有效位
“valid”
the associated page is both legal and in memory.
“invalid”
the page either is not valid(that is ,not in the logical address space of the process),or is valid but is currently on the disk.;Initially valid–invalid bit is set to 0 on all entries.
During address translation, if valid–invalid bit in page table entry is 0 ? page fault .;Page Table When Some Pages Are Not in Main Memory;Page Fault 缺页
If there is ever a reference to a page, first reference will trap to OS ? page fault
对一个页面的首次访问将自陷到操作系统--缺页;OS checks an internal table to decide: OS 检查内置页表以确定
Invalid reference ? abort(terminate the process).
Valid,Just not in memory ?page it in.
Get empty frame. 获取空闲帧
Swap page into frame. 对换页面到该帧
Reset tables, validation bit = 1. 重置页表,有效位置1
Restart instruction 重启指令;Steps in Handling a Page Fault;Pure d
您可能关注的文档
最近下载
- 第10讲-地球科学概论_生物圈.pptx VIP
- 土方开挖施工方案(筏板、独立基础、条形基础、桩间土).pdf VIP
- 地球科学概论 第10讲 _生物圈——[武汉大学 地球科学概论].pdf VIP
- 通用汽车ECU密码一致性规范CYS9100 - The Per-ECU Password Utility.pdf VIP
- 2024秋《战场侦察监视技术与装备》答案.docx VIP
- 某公司年度经济活动分析报告.ppt VIP
- 明清时期举人名录.pdf VIP
- 苏教版小学科学五年级下册教学设计教案.pdf VIP
- 人教版七年级上册英语第一次月考试题(含答案).docx VIP
- 梅赛德斯-奔驰-R级-产品使用说明书-R350 4MATIC-251165-Rclass.pdf VIP
文档评论(0)