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

技术报告:使用静态分析计算容忍一致性的好处

Technical Report: Using Static Analysis to Compute Benefit of Tolerating Consistency

Duong Nguyen, Arya Tanmay Gupta, Sandeep S. Kulkarni

摘要:

同步是并发程序的致命弱点。同步要求通常用于确保并发程序的执行可以序列化。如果没有同步要求,程序就会遭受一致性破坏。最近,它表明,如果程序的设计容忍这种一致性违反故障(\cvf{s}),那么可以获得很大的性能增益。以前分析\cvf-容忍的效果的努力仅限于程序的运行时分析,以确定容忍\cvf{s}是否可以提高性能。这种运行时分析非常昂贵,并且提供的洞察力有限。在这项工作中,我们考虑的问题,"可以静态分析的程序预测的好处\cvf-宽容?“我们发现这个问题的答案是肯定的。具体而言,我们使用静态分析来评估\cvf的成本,并证明它可用于预测\cvf耐受性的获益。我们还发现,当面对一个大的状态空间,部分分析的状态空间(通过采样)也提供了所需的信息来预测的好处\cvf-宽容。此外,我们观察到\cvf-成本分布本质上是指数分布,即,\cvf具有$c$成本的概率是$A.B^{-c}$,其中$A$和$B$是常数,即,大多数\cvf{s}不引起/引起低扰动,而少量的\cvf{s}引起大扰动。这为评价\cvf耐受性获益开辟了新途径。

英文摘要:

Synchronization is the Achilles heel of concurrent programs. Synchronization requirement is often used to ensure that the execution of the concurrent program can be serialized. Without synchronization requirement, a program suffers from consistency violations. Recently, it was shown that if programs are designed to tolerate such consistency violation faults (\cvf{s}) then one can obtain substantial performance gain. Previous efforts to analyze the effect of \cvf-tolerance are limited to run-time analysis of the program to determine if tolerating \cvf{s} can improve the performance. Such run-time analysis is very expensive and provides limited insight. In this work, we consider the question, `Can static analysis of the program predict the benefit of \cvf-tolerance?' We find that the answer to this question is affirmative. Specifically, we use static analysis to evaluate the cost of a \cvf and demonstrate that it can be used to predict the benefit of \cvf-tolerance. We also find that when faced with a large state space, partial analysis of the state space (via sampling) also provides the required information to predict the benefit of \cvf-tolerance. Furthermore, we observe that the \cvf-cost distribution is exponential in nature, i.e., the probability that a \cvf has a cost of $c$ is $A.B^{-c}$, where $A$ and $B$ are constants, i.e., most \cvf{s} cause no/low perturbation whereas a small number of \cvf{s} cause a large perturbation. This opens up new aveneus to evaluate the benefit of \cvf-tolerance.

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

↑