Memory Type: WB, WT, UC, WC,WP

Memory Type:

目前的主流处理器,都支持这些memory type Write Back, Write Through, Write Protect,Uncacheable Write, Write Combine


Write Back

最常见的 cacheable write, read → modify→ write

Write Through

  • cachable read
    write:
  • when hit in cache, update cache and memory
  • when miss in cache, update memory only

Uncacheable Write

  • IO操作
  • Strong ordered

Write Protected

  • write uncacheable
  • read cacheable

Write Combine

  • Uncacheable

  • 使用write combine buffer,或者是fill buffer
    在最新的Micro架构中使用write combine buffer,早期的处理器使用fill buffer,在fill buffer的每一个entry中增加属性,来表明当前entry的状态。

  • weakly ordered

和上文说的untemporal store是一个意思 比如图像和大矩阵的计算,不需要存入cache,因为数据量大,不仅后续的数据不会再次使用,而且会将cache中本来存着的有用的数据剔除出去,而导致性能下降,这时候就使用write combine类型。

欢迎关注我的公众号《处理器与AI芯片》

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值