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

并行程序全局一致状态的空间有效宽度优先和水平遍历

Space Efficient Breadth-First and Level Traversals of Consistent Global States of Parallel Programs

Himanshu Chauhan, Vijay Garg

摘要:

计算全局一致状态的枚举是并行计算中的一个基本问题,在并行程序的调试、测试和运行时验证中有着广泛的应用。广度优先搜索(BFS)枚举对于这些应用程序特别有用,因为它用尽可能少的事件找到错误的一致全局状态。全局状态中已执行事件的总数称为其等级。BFS还允许枚举给定等级或等级范围内的所有全局状态。如果n个进程上的计算平均每个进程有m个事件,则传统的BFS(Cooper-Marzullo及其变体)在最坏情况下需要$\mathcal{O}(\frac{m^{n-1}}{n})$空间,而我们的算法执行BFS需要$\mathcal{O}(m^2n^2)$空间。因此,我们降低了空间复杂度的BFS枚举一致的全局状态指数。并给出了该任务的第一个多项式空间算法。在我们对七个基准测试的实验评估中,传统的BFS在许多情况下都会失败,因为耗尽了允许给JVM的2 GB堆空间。相比之下,我们的实现使用不到60 MB的内存,在许多情况下也更快。

英文摘要:

Enumerating consistent global states of a computation is a fundamental problem in parallel computing with applications to debug- ging, testing and runtime verification of parallel programs. Breadth-first search (BFS) enumeration is especially useful for these applications as it finds an erroneous consistent global state with the least number of events possible. The total number of executed events in a global state is called its rank. BFS also allows enumeration of all global states of a given rank or within a range of ranks. If a computation on n processes has m events per process on average, then the traditional BFS (Cooper-Marzullo and its variants) requires $\mathcal{O}(\frac{m^{n-1}}{n})$ space in the worst case, whereas ou r algorithm performs the BFS requires $\mathcal{O}(m^2n^2)$ space. Thus, we reduce the space complexity for BFS enumeration of consistent global states exponentially. and give the first polynomial space algorithm for this task. In our experimental evaluation of seven benchmarks, traditional BFS fails in many cases by exhausting the 2 GB heap space allowed to the JVM. In contrast, our implementation uses less than 60 MB memory and is also faster in many cases.

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

↑