存储原子存储模型的局部性和奇异性
Locality and Singularity for Store-Atomic Memory Models
摘要:
鲁棒性是在宽松的一致性模型下运行的并发程序的正确性概念。任务是检查放松的行为与顺序一致性(SC)一致(直到跟踪)。虽然在理论上计算简单(鲁棒性已被证明是TSO,PGAS和Power的PSPACE完全),但构建实用的鲁棒性检查器仍然是一个挑战。问题是,各种松弛导致大量的计算,其中只有少数违反鲁棒性。在本文中,我们着手减少搜索空间的鲁棒性检查。我们专注于存储原子一致性模型,并建立两个完整性结果。第一个结果,称为局部性,指出一个非健壮的程序总是包含一个违反计算,只有一个线程延迟命令。第二个结果,称为奇点,甚至更强,但仅限于没有轻量级围栏的程序。它指出,有一个违反计算,其中一个单一的存储被延迟。作为一个应用的结果,我们推导出一个线性大小的源到源的翻译的SC可达性的鲁棒性。它适用于一般程序,无论数据域如何,并且可能具有无限数量的线程和无限的缓冲区。我们已经实现了翻译,并首次以全自动的方式验证了PGAS算法。对于TSO,我们的分析优于现有工具。
英文摘要:
Robustness is a correctness notion for concurrent programs running under relaxed consistency models. The task is to check that the relaxed behavior coincides (up to traces) with sequential consistency (SC). Although computationally simple on paper (robustness has been shown to be PSPACE-complete for TSO, PGAS, and Power), building a practical robustness checker remains a challenge. The problem is that the various relaxations lead to a dramatic number of computations, only few of which violate robustness. In the present paper, we set out to reduce the search space for robustness checkers. We focus on store-atomic consistency models and establish two completeness results. The first result, called locality, states that a non-robust program always contains a violating computation where only one thread delays commands. The second result, called singularity, is even stronger but restricted to programs without lightweight fences. It states that there is a violating computation where a single store is delayed. As an application of the results, we derive a linear-size source-to-source translation of robustness to SC-reachability. It applies to general programs, regardless of the data domain and potentially with an unbounded number of threads and with unbounded buffers. We have implemented the translation and verified, for the first time, PGAS algorithms in a fully automated fashion. For TSO, our analysis outperforms existing tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。