arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1904.11323cs.DCcs.DS
收藏

粗粒度锁的性能预测

Performance Prediction for Coarse-Grained Locking

Vitaly Aksenov, Dan Alistarh, Petr Kuznetsov

摘要:

在许多并发数据结构(如哈希表或有序容器)中发现的标准设计模式是交替使用不会引发数据冲突的可并行部分和必须顺序运行并受锁保护的关键部分。锁可以被看作是一个队列,它仲裁关键部分的执行顺序,一个自然的问题是我们是否可以使用随机分析来预测最终的吞吐量。作为一个初步的证据,肯定的是,我们描述了一个简单的模型,可用于预测粗粒度的基于锁的算法的吞吐量。结果表明,该模型适用于CLH锁,也适用于其他流行的锁设计,如TTAS、MCS等。

英文摘要:

A standard design pattern found in many concurrent data structures, such as hash tables or ordered containers, is an alternation of parallelizable sections that incur no data conflicts and critical sections that must run sequentially and are protected with locks. A lock can be viewed as a queue that arbitrates the order in which the critical sections are executed, and a natural question is whether we can use stochastic analysis to predict the resulting throughput. As a preliminary evidence to the affirmative, we describe a simple model that can be used to predict the throughput of coarse-grained lock-based algorithms. We show that our model works well for CLH lock, and we expect it to work for other popular lock designs such as TTAS, MCS, etc.

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

↑