arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1606.05416cs.PLcs.AR
收藏

驯服弱记忆模型

Taming Weak Memory Models

Sizhuo Zhang, Arvind, Muralidaran Vijayaraghavan

摘要:

微架构中的推测技术放松了程序中的各种依赖关系,这增加了(弱)内存模型的复杂性。我们使用WMM,一个新的弱内存模型,该模型变得更简单,如果它包括加载值推测,因此,不强制任何依赖!然而,在缺乏良好的值预测技术的情况下,程序员最终可能会为额外的围栏付出代价。因此,我们还提出了WMM-D,它强制执行当前微架构捕获的依赖关系。WMM-D仍然比其他现有模型简单得多。我们还表明,非原子多副本存储是由于共享直写缓存而产生的。我们认为将微架构限制为回写缓存(以及更简单的弱内存模型)不会导致任何性能损失。尽管如此,我们提出了WMM-S,WMM的另一个扩展,它可以模拟非原子多副本存储的影响。WMM、WMM-D和WMM-S都是使用瞬时指令执行(I^2E)定义的,这是一种描述内存模型的新方法,无需显式重新排序或推测执行。

英文摘要:

Speculative techniques in microarchitectures relax various dependencies in programs, which contributes to the complexity of (weak) memory models. We show using WMM, a new weak memory model, that the model becomes simpler if it includes load-value speculation and thus, does not enforce any dependency! However, in the absence of good value-prediction techniques, a programmer may end up paying a price for the extra fences. Thus, we also present WMM-D, which enforces the dependencies captured by the current microarchitectures. WMM-D is still much simpler than other existing models. We also show that non-atomic multi-copy stores arise as a result of sharing write-through caches. We think restricting microarchitectures to write-back caches (and thus simpler weak memory models) will not incur any performance penalty. Nevertheless, we present WMM-S, another extension to WMM, which could model the effects of non-atomic multi-copy stores. WMM, WMM-D, and WMM-S are all defined using Instantaneous Instruction Execution (I^2E), a new way of describing memory models without explicit reordering or speculative execution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑