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

一种平衡事务内存工作负载的竞争分析

A Competitive Analysis for Balanced Transactional Memory Workloads

Gokarna Sharma, Costas Busch

摘要:

我们考虑在平衡工作负载的上下文中的事务性内存争用管理,其中如果事务正在写入,则其执行的写入操作的数量是其总读取和写入的恒定部分。我们从最坏情况的角度出发,通过提出和分析两种新的竞争管理算法,探讨了平衡工作负载下竞争管理的理论性能边界。第一个算法千里眼是O(\surd s)-竞争的,其中s是共享资源的数量。该算法依赖于明确地知道冲突图。第二个算法Non-Clairvoyant是O(\surd s \cdot log n)-竞争的,具有很高的概率,这只是一个O(log n)的因素差,但不需要冲突图的知识,其中n是事务的数量。这两种算法都是贪婪的。我们还证明了千里眼的性能是紧的,因为没有竞争管理算法优于O((\surd s)^(1-ε))-竞争的任何常数ε> 0,除非NP \subseteq ZPP。据我们所知,这些结果是显着的改进,以前已知的最好的O(s)竞争比界。

英文摘要:

We consider transactional memory contention management in the context of balanced workloads, where if a transaction is writing, the number of write operations it performs is a constant fraction of its total reads and writes. We explore the theoretical performance boundaries of contention management in balanced workloads from the worst-case perspective by presenting and analyzing two new contention management algorithms. The first algorithm Clairvoyant is O(\surd s)-competitive, where s is the number of shared resources. This algorithm depends on explicitly knowing the conflict graph. The second algorithm Non-Clairvoyant is O(\surd s \cdot log n)-competitive, with high probability, which is only a O(log n) factor worse, but does not require knowledge of the conflict graph, where n is the number of transactions. Both of these algorithms are greedy. We also prove that the performance of Clairvoyant is tight since there is no contention management algorithm that is better than O((\surd s)^(1-ε))-competitive for any constant ε> 0, unless NP\subseteq ZPP. To our knowledge, these results are significant improvements over the best previously known O(s) competitive ratio bound.

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

↑