Cache eviction from L1 cache on L2 eviction

故事扮演 提交于 2019-12-03 07:44:54

There are three different designs and all are used.

  1. Exclusive: Data in the L1 cache is never in the L2 cache. Data in the L2 cache is never in the L1 cache.

  2. Inclusive: Data in the L1 cache must also be in the L2 cache.

  3. Neither: Data in the L1 cache may or may not be in the L2 cache.

Each of these has advantages and disadvantages. The inclusive scheme allows the cache coherency protocol to ignore the L1 cache -- if data isn't in the L2 cache, it isn't in the L1 cache. But the exclusive scheme makes the most effective use of precious cache memory.

Inclusive designs are becoming more popular because faster inter-core synchronization is becoming more important than having slightly larger effective cache sizes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!