体系结构:Cache Coherence

本文探讨了Cache Coherence协议的重要性,包括确保写传播和写序列化的两个规则。介绍了嗅探式和目录式协议如何实现一致性,以及Valid/Invalid、MSI和MESI等简单和优化的协议。目录式协议解决了随着处理器数量增加,嗅探式总线成为性能瓶颈的问题。
摘要由CSDN通过智能技术生成

Cache Coherence Protocols must enforece two rules:

  • Write propagation: Writes eventually become visible to all processors. 写操作最终所有处理器均可见。
  • Write serialization: Writes to the same location are serialized (all processors see them in the same order). 写操作的顺序应当保持一致。

How to ensure write propagation?

  • Write-invalidate protocols: Invalidate all other cached copied before performing the write. 执行写操作前,使其他所有的缓存备份失效。
  • Write-update protocols: Update all other cached copies after performing the write. 执行写操作之后,更新其他所有缓存备份。

How to ensure write serialization?

  • Snooping-based protocols: All caches observe each other's actions through a shared bus. 所有缓存通过共享总线观测其他缓存的行为。
  • Directory-based protocols: A coherence directory tracks contents of private caches and serializes requests. 一致性目录跟踪专用缓存的内容并对请求序列化。

Snooping-Based Coherence

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值