HYZ-OS-2013-虚拟存储器.pptVIP

  • 5
  • 0
  • 约1.66万字
  • 约 85页
  • 2017-05-07 发布于河南
  • 举报
HYZ-OS-2013-虚拟存储器

* * * * * * * * * The design goal is to present the user with as much memory as is available in the cheapest technology (points to the disk). While by taking advantage of the principle of locality, we like to provide the user an average access speed that is very close to the speed that is offered by the fastest technology. (We will go over this slide in details in the next lecture on caches). +1 = 16 min. (X:56) * * (Capacity miss) That is the cache misses are due to the fact that the cache is simply not large enough to contain all the blocks that are accessed by the program. The solution to reduce the Capacity miss rate is simple: increase the cache size. Here is a summary of other types of cache miss we talked about. First is the Compulsory misses. These are the misses that we cannot avoid. They are caused when we first start the program. Then we talked about the conflict misses. They are the misses that caused by multiple memory locations being mapped to the same cache location. There are two solutions to reduce conflict misses. The first one is, once again, increase the cache size. The second one is to increase the associativity. For example, say using a 2-way set associative cache instead of directed mapped cache. But keep in mind that cache miss rate is only one part of the equation. You also have to worry about cache access time and miss penalty. Do NOT optimize miss rate alone. Finally, there is another source of cache miss we will not cover today. Those are referred to as invalidation misses caused by another process, such as IO , update the main memory so you have to flush the cache to avoid inconsistency between memory and cache. +2 = 43 min. (Y:23) Is caching always good? * * * * * * * Example: one program, touches 50 pages (each equally likely). Have only 40 physical page frames, 200 ns mem, 10 ms disk How bad is this? - Does your program run at 80% speed? - Does your program run at 20% speed? Performance is really bad If we have enough pag

文档评论(0)

1亿VIP精品文档

相关文档