- 1、本文档共87页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
EENG-155Computer ArchChapter 5 Large and Fast Exploiting Memory Hierarchy
Chapter 5 — Large and Fast: Exploiting Memory Hierarchy Morgan Kaufmann Publishers Chapter 5 — Large and Fast: Exploiting Memory Hierarchy Chapter 5 Large and Fast: Exploiting Memory Hierarchy Memory Technology Static RAM (SRAM) 0.5ns – 2.5ns, $2000 – $5000 per GB Dynamic RAM (DRAM) 50ns – 70ns, $20 – $75 per GB Magnetic disk 5ms – 20ms, $0.20 – $2 per GB Ideal memory Access time of SRAM Capacity and cost/GB of disk Principle of Locality Programs access a small proportion of their address space at any time Temporal locality Items accessed recently are likely to be accessed again soon e.g., instructions in a loop, induction variables Spatial locality Items near those accessed recently are likely to be accessed soon E.g., sequential instruction access, array data Taking Advantage of Locality Memory hierarchy Store everything on disk Copy recently accessed (and nearby) items from disk to smaller DRAM memory Main memory Copy more recently accessed (and nearby) items from DRAM to smaller SRAM memory Cache memory attached to CPU Memory Hierarchy Levels Block (aka line): unit of copying May be multiple words If accessed data is present in upper level Hit: access satisfied by upper level Hit ratio: hits/accesses If accessed data is absent Miss: block copied from lower level Time taken: miss penalty Miss ratio: misses/accesses= 1 – hit ratio Then accessed data supplied from upper level Cache Memory Cache memory The level of the memory hierarchy closest to the CPU Given accesses X1, …, Xn–1, Xn Direct Mapped Cache Location determined by address Direct mapped: only one choice (Block address) modulo (#Blocks in cache) Tags and Valid Bits How do we know which particular block is stored in a cache location? Store block address as well as the data Actually, only need the high-order bits Called the tag What if there is no data in a location? Valid bit: 1 = present, 0 = not present Initially 0 Cache Example 8-blocks, 1 word/block, direct mapped Initial state Cache Example Cache Exa
您可能关注的文档
最近下载
- 《6. 观察与比较》教学设计2024-2025学年科学一年级上册教科版(2024).docx VIP
- 《基于UbD理论的小学数学单元教学设计研究》课题研究方案.doc
- 部编本小学语文3~6年级单元主题及核心素养表.docx
- 群联(PS2303PS2251-03刷ISP固件详细量产修复教程.doc
- 小班科学《风车转起来》PPT课件.ppt VIP
- 2020年工业机器人行业市场分析调研报告.docx
- 民航服务心理与实务 课件 模块4项目3 识用旅客个性心理与服务.pptx
- 第三单元名著导读《朝花夕拾——二十四孝图》知识点梳理 部编版语文七年级上册(教师版).pdf
- 间歇性导尿技术及操作步骤PPT课件.pptx VIP
- 现代工程设计制图习题集第五版王启美答案.pdf
文档评论(0)