arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1103.6114cs.DC
收藏

多处理机中存储器模型对软件可靠性的影响

The Impact of Memory Models on Software Reliability in Multiprocessors

Alexander Jaffe, Thomas Moscibroda, Laura Effinger-Dean, Luis Ceze, Karin Strauss

摘要:

存储器一致性模型是表征多处理器的基本系统属性。严格与宽松的内存模型的相对优点已经在其对性能,硬件复杂性和可编程性的影响方面进行了广泛的辩论。本文增加了一个新的层面,这个讨论:内存模型对软件可靠性的影响。通过允许一些指令重新排序,弱内存模型可以扩展关键内存操作之间的窗口。这可能会增加不希望的线程交错的机会,从而允许出现不太可能的并发错误。为了探索这种现象,我们定义和研究的概率模型的共享内存并行程序,考虑到这种重新排序。我们使用这个模型正式推导出界限上的\emph{vulnerability}并发错误的不同的内存模型。我们的研究结果表明,对于2个(或一个小的常量)并发线程,较弱的内存模型确实有更高的可能性允许错误。另一方面,我们表明,随着并行线程的数量的增加,不同的内存模型之间的差距成比例变得微不足道。这表明了\emph{as the number of parallel threads in the system increases, the importance of using a strict memory model diminishes}的反直觉规则,这可能对未来多核系统中存储器一致性模型的选择具有重大影响。

英文摘要:

The memory consistency model is a fundamental system property characterizing a multiprocessor. The relative merits of strict versus relaxed memory models have been widely debated in terms of their impact on performance, hardware complexity and programmability. This paper adds a new dimension to this discussion: the impact of memory models on software reliability. By allowing some instructions to reorder, weak memory models may expand the window between critical memory operations. This can increase the chance of an undesirable thread-interleaving, thus allowing an otherwise-unlikely concurrency bug to manifest. To explore this phenomenon, we define and study a probabilistic model of shared-memory parallel programs that takes into account such reordering. We use this model to formally derive bounds on the \emph{vulnerability} to concurrency bugs of different memory models. Our results show that for 2 (or a small constant number of) concurrent threads, weaker memory models do indeed have a higher likelihood of allowing bugs. On the other hand, we show that as the number of parallel threads increases, the gap between the different memory models becomes proportionally insignificant. This suggests the counter-intuitive rule that \emph{as the number of parallel threads in the system increases, the importance of using a strict memory model diminishes}; which potentially has major implications on the choice of memory consistency models in future multi-core systems.

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

↑