Mit6.004-14-The Memory Hierarchy

1. 我们的内存机器

在这里插入图片描述

2. 内存技术

在这里插入图片描述

3. SRAM

在这里插入图片描述

4. SRAM单元

在这里插入图片描述

5. SRAM读

在这里插入图片描述

1、所有bitline电压都设置为1
2、某个wordline电压设为高电平,让对应cell的两个mos管接通
3、cell两边bitline中的某一个肯定会主键降为低电平
4、无需等到某个bitline降低到gnd,感应放大器感应到变化即可有相应输出

6. SRAM写

在这里插入图片描述

1、驱动将bitline设置为要写入的电压
2、地址解码器选中某一wordline
3、bitline中的值覆盖掉cell中的值

7. 多端口SRAM

在这里插入图片描述

8. SRAM总结

在这里插入图片描述

9. DRAM Cell

在这里插入图片描述

因为电容器、mos管漏电,不能稳定保持一定的电荷量,所以需要周期性地读取、重写cell的值,保证cell中的值有效

10. DRAM写和读

在这里插入图片描述

电容存放电荷用来代表0、1,wordline选中某行,读时,bitline电压设为Vdd/2,根据bitline的充放电判断cell的值,若cell为高电平,那么每次读会导致cell电荷量减少,需要重写;
写时,bitline设高低电平,来对电容充放电。
行地址选中(延时较大)后,同一行内,选择不同列时延迟较低

11. DRAM总结

在这里插入图片描述

12. 稳定存储:Flash

在这里插入图片描述

floating gate无电荷时:wordline施加V1,即可让NMOS导通。
floating gate有电荷时:wordline施加V2(一个大于V1的电压),才可以让NMOS导通。
那么施加一个V1到V2之间的电压,通过观测NMOS是否导通,得知floating gate处于哪种状态。
写有次数限制。

13. 稳定存储:硬盘

在这里插入图片描述

确定哪个扇面,再确定哪个圆圈,再确定圆圈哪一段。
串行读/写100MB/s,随机读写100KB/s

14. 总结:内存技术

在这里插入图片描述

15. 内存分级

在这里插入图片描述

16. 内存层级连接

在这里插入图片描述

程序直接管理各个层级内存:超级计算机Seymour Cray就是个典型例子。
计算机内存系统管理各级内存:程序员只知道有一个大内存,有统一的地址可以访问。

17. 局部原则

在这里插入图片描述

局部性访问,空间局部性:访问地址a后,地址a附近的其他内存也更可能被访问;时间局部性:访问地址a后,接下来的时间里,a也很可能再次被访问。
访问DRAM中的数据后,内存系统会把DRAM中该数据附近的一块数据,放到SRAM中缓存。

18. 内存引用模式

在这里插入图片描述

19. 缓存

在这里插入图片描述

20. 一个典型的内存分级

在这里插入图片描述

21. 缓存访问

在这里插入图片描述

cpu从cache拿数据4ns,从主存拿数据44ns,cpu如何应对不同的内存访问时间。要么等着,现代处理器超线程技术可以在这段时间执行其他程序的指令。

22. 缓存指标

在这里插入图片描述

23. 例子:命中率要有多高

在这里插入图片描述

24. 基本缓存算法

在这里插入图片描述

25. 直接映射缓存

在这里插入图片描述

26. 例子:直接映射缓存

在这里插入图片描述

27. 块尺寸

在这里插入图片描述

28. 块尺寸权衡

在这里插入图片描述

miss处罚:随着块尺寸增大而增大;
miss比率:随着块尺寸增大先降低、后升高;
amat:随着块尺寸增大先降低、后升高;

29. 直接映射缓存问题:conflict miss

在这里插入图片描述

30. 全相联缓存

在这里插入图片描述

31. N路组相联缓存1

在这里插入图片描述

地址的index位定位到某个set(某行),再通过N个比较器,比较N个tag和地址的tag位。

32. N路组相联缓存2

在这里插入图片描述

33. 让我们算下路数?

在这里插入图片描述

34. 相联权衡

在这里插入图片描述

35. associativity implies choices

在这里插入图片描述

36. 取代策略

在这里插入图片描述

37. 写策略

在这里插入图片描述

38. 回写

在这里插入图片描述

39. 带“脏”位的写回

在这里插入图片描述

40. 总结:缓存权衡

在这里插入图片描述

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The LPIC-1 Authorized Cert Guide has a single goal: to help you pass the new version of the Linux Professional Institute LPIC-1 exams. The most comprehensive and time-efficient LPIC-1 study guide available, it's an extraordinarily cost-effective alternative to expensive training: a perfect resource for all LPIC-1 candidates. Authored by a leading LPI insider and long-time Linux trainer, it presents focused, straight-to-the-point coverage of all LPIC-1 exam topics, including: System Architecture Linux Installation and Package Management GNU and Unix Commands Devices, Linux Filesystems, Filesystem Hierarchy Standard Shells, Scripting and Data Management User Interfaces and Desktops Administrative Tasks Essential System Services Networking Fundamentals Security From start to finish, it's organized to help you focus your study time where you need the most help, so you can retain more, and earn higher scores: Pre-chapter "Do I Know This Already" (DIKTA) quizzes help you assess your knowledge of each chapter's content, and decide how much time to spend on each section Foundation Topics sections thoroughly explain concepts and theory, and link them to real-world configurations and commands Key Topics icons flag every figure, table, or list you absolutely must understand and remember Chapter-ending Exam Preparation sections deliver even more exercises and troubleshooting scenarios Two full sample exams offer realistic practice delivered through Pearson's state-of-the-art PCPT test engine Table of Contents Chapter 1 Installing Linux Chapter 2 Boot Process and Runlevels Chapter 3 Package Install and Management Chapter 4 Basic Command Line Usage Chapter 5 File Management Chapter 6 Text Processing/Advanced Command Line Chapter 7 Process Management Chapter 8 Editing Text Chapter 9 Partitions and Filesystems Chapter 10 Permissions and Ownership Chapter 11 Customizing Shell Environments Chapter 12 Shell Scripting Chapter 13 Basic SQL Management Chapter 14 Configuring User Interfaces and Desktops Chapter 15 Managing Users and Groups Chapter 16 Schedule and Automate Tasks Chapter 17 Configuring Print and Email Services Chapter 18 Logging and Time Services Chapter 19 Networking Fundamentals Chapter 20 System Security Chapter 21 Final Preparation Appendix A: Answers to the “Do I Know This Already?” Quizzes and Review Questions Appendix B: Study Planner
12-Jul-2023 18:36:28.896 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 12-Jul-2023 18:36:28.898 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/setting] startup failed due to previous errors 2023-07-12 18:36:28,899 [// - - ] INFO org.springframework.web.context.support.XmlWebApplicationContext - Closing Root WebApplicationContext: startup date [Wed Jul 12 18:36:27 CST 2023]; root of context hierarchy 2023-07-12 18:36:28,900 [// - - ] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Shutting down EhCache CacheManager 12-Jul-2023 18:36:28.908 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [setting] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 12-Jul-2023 18:36:28.908 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [setting] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:40)
07-13

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值