arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04581cs.PLcs.DScs.LOcs.SE
收藏

高效的分治线性化监测

Efficient Decrease-and-Conquer Linearizability Monitoring

Lee Zheng Han, Umang Mathur

AI总结:

提出统一的“分治”线性化监测框架,通过识别保持线性化的值,为集合、栈、队列和优先队列推导出多项式时间算法,并优化至对数线性时间,实现大规模历史的高效可扩展监测。

摘要:

线性化已成为并发数据结构实现的既定正确性规范。虽然形式化验证此类实现仍然具有挑战性,但线性化监测已成为一种有前景的第一步,用于排除自定义实现开发中的早期问题,并作为压力测试此类实现方法的关键组件。在本研究中,我们研究线性化监测——检查实现的执行历史是否可线性化。虽然这个问题在一般情况下是难处理的,但对它何时变得可处理的系统理解仍然难以捉摸。我们重新审视这个问题,并首先提出了一个统一的“分治”算法框架用于线性化监测。其核心是要求在给定历史中识别特殊的保持线性化的值——这些值的存在在移除时产生等线性化子历史,其缺失则指示非线性化。我们证明,识别保持线性化的值问题的多项式时间算法能产生线性化监测的多项式时间算法,反之,该问题的难处理性意味着监测问题的难处理性。我们通过为几种流行数据类型——集合、栈、队列和优先队列——实例化该框架来展示其有效性,在无歧义限制下(即对底层数据结构的每次插入都添加不同的值),为每种类型推导出多项式时间算法。我们通过高效数据结构摊销解决子问题的成本,优化这些算法以实现最优的对数线性时间复杂度。我们在公开可用实现上的实现和评估表明,我们的方法可扩展至大型历史并优于现有工具。

英文摘要:

Linearizability has become the de facto correctness specification for implementations of concurrent data structures. While formally verifying such implementations remains challenging, linearizability monitoring has emerged as a promising first step to rule out early problems in the development of custom implementations, and serves as a key component in approaches that stress test such implementations. In this work, we investigate linearizability monitoring -- check if an execution history of an implementation is linearizable. While this problem is intractable in general, a systematic understanding of when it becomes tractable has remained elusive. We revisit this problem and first present a unified `decrease-and-conquer' algorithmic framework for linearizability monitoring. At its heart, this framework asks to identify special linearizability-preserving values in a given history -- values whose presence yields an equilinearizable sub-history when removed, and whose absence indicates non-linearizability. We prove that a polynomial time algorithm for the problem of identifying linearizability-preserving values, yields a polynomial time algorithm for linearizability monitoring, while conversely, intractability of this problem implies intractability of the monitoring problem. We demonstrate our framework's effectiveness by instantiating it for several popular data types -- sets, stacks, queues and priority queues -- deriving polynomial time algorithms for each, with the unambiguity restriction, where each insertion to the underlying data structure adds a distinct value. We optimize these algorithms to achieve the optimal log-linear time complexity by amortizing the cost of solving sub-problems through efficient data structures. Our implementation and evaluation on publicly available implementations show that our approach scales to large histories and outperforms existing tools.

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

↑