- 1、本文档共51页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
8虚拟存储器
Chapter 8: Virtual Memory 基本概念 局部性原理 定义 请求分页存储管理方式 MMU支持 页面分配 调入策略 页面置换算法 性能分析 抖动 Chapter 8: Virtual Memory 请求分段存储管理 Intel 80386存储管理方式 Background 局部性原理 在某个时间间隔内,程序的执行时访问的地址空间局限在某个范围 定义 把作业的一部分装入内存便可运行的存储器系统 具请求调入功能和置换功能,能在逻辑上对内存容量进行扩充的存储器系统 Background 虚拟存储器实现方式 请求分页 请求分段 虚拟存储器特征 离散性 多次性 对换性 虚拟性 Demand Paging Bring a page into memory only when it is needed. Less I/O needed Less memory needed Faster response More users Demand Paging 硬件支持(MMU) 页表支持 页号 物理块号 状态位 访问字段 修改位 外存地址 缺页中断机构 地址变换机构 地址变换过程 硬件操作 软件操作 页面分配 最小物理块数 页面分配和置换策略 固定分配局部置换 可变分配全局置换 可变分配局部置换 分配算法 平均分配 按比例分配 考虑优先权的分配算法 页面调入策略 何时调入页面 预调页策略 请求调页策略 从何处调入页面 交换区 文件区 混合 页面置换算法 最佳置换算法 先进先出置换算法 LRU置换算法 Clock置换算法 最少使用置换算法 页面缓冲算法 Replacement Algorithms Want lowest fault rate. Evaluate algorithm by running it on a particular string of memory references (reference string) and computing the number of page faults on that string. In all our examples, the reference string is 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. First-In-First-Out (FIFO) Algorithm Reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 3 frames (3 pages can be in memory at a time per process) 4 frames FIFO Replacement – Belady’s Anomaly more frames ? less page faults Optimal Algorithm Replace page that will not be used for longest period of time. 4 frames example Optimal Algorithm 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 How do you know this? Used for measuring how well your algorithm performs. Least Recently Used (LRU) Algorithm Reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 Least Recently Used (LRU) Algorithm Counter implementation Every page entry has a counter; every time page is referenced through this entry, copy the clock into the counter. When a page needs to be changed, look at the counters to determine which are to change. LRU Algorithm (Cont.) Stack implementation – keep a stack of page numbers in a double link form: Page referenced: move it to the top requires 6 pointers to be changed No search for replacement LRU Approxima
您可能关注的文档
最近下载
- 2025年江西工业贸易职业技术学院单招职业适应性测试题库参考答案.docx VIP
- DLT866-2015 电流互感器和电压互感器选择及计算规程.docx
- 文化娱乐产业市场调查及内容创新方案.doc VIP
- 粤人社发【2012】70号关于事业单位岗位设置和聘用后工资及退休等问题处理办法的通知.pdf VIP
- 2025年检验检测机构资质认定内审员考试复习资料 .pdf VIP
- 调色师:达芬奇视频剪辑调色从入门到精通第1章 认识达芬奇软件.pptx VIP
- 发展老年助浴助洁服务实施方案.docx
- 1094.11-2022 电力变压器 第11部分:干式变压器.pdf
- 林业资产评估合同范本.docx VIP
- “燕园元培杯”2023-2024 学年全国中学生地球科学奥林匹克竞赛预赛试题.pdf VIP
文档评论(0)