Window-based greedy contention management for transactional memory: theory and practice

被引:13
作者
Sharma, Gokarna [1 ]
Busch, Costas [1 ]
机构
[1] Louisiana State Univ, Dept Comp Sci, Baton Rouge, LA 70803 USA
关键词
Transactional memory; Execution window; Contention management; Greedy transaction scheduling; Shared memory; Concurrency control;
D O I
10.1007/s00446-012-0159-7
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We consider greedy contention managers for transactional memory for M x N execution windows of transactions with M threads and N transactions per thread. We present, formally analyze, and experimentally evaluate three new randomized greedy contention management algorithms for transaction windows. Assuming that each transaction has duration tau and conflicts with at most C other transactions inside the window, the first algorithm Offline-Greedy produces a schedule of length O(tau center dot (C + N center dot log(MN))) with high probability. The offline algorithm depends on knowing the conflict graph which evolves while the execution of the transactions progresses. The second algorithm Online-Greedy produces a schedule of length that is only a logarithmic factor worse than Offline-Greedy, but does not require knowledge of the conflict graph. The third algorithm Adaptive-Greedy is the adaptive version of the previous algorithms which produces a schedule of length asymptotically the same as with online algorithm by adaptively guessing the value of C. All of the algorithms exhibit competitive ratio very close to O(s), where s is the number of shared resources, and at the same time, our algorithms provide new non-trivial tradeoffs for greedy transaction scheduling that parameterize window sizes and transaction conflicts within the execution window. We evaluate these window-based algorithms experimentally using the sorted link list, red-black tree, skip list, and vacation benchmarks. The evaluation results confirm their benefits in practical performance throughput and other metrics such as aborts per commit ratio and execution time overhead, along with the non-trivial provable properties of the algorithms.
引用
收藏
页码:225 / 248
页数:24
相关论文
共 46 条
[21]   Transactional coherence and consistency: Simplifying parallel hardware and software [J].
Hammond, L ;
Carlstrom, BD ;
Wong, V ;
Chen, M ;
Kozyrakis, C ;
Olukotun, K .
IEEE MICRO, 2004, 24 (06) :92-103
[22]   Language support for lightweight transactions [J].
Harris, T ;
Fraser, K .
ACM SIGPLAN NOTICES, 2003, 38 (11) :388-402
[23]  
Harris Tim., 2005, PPoPP '05: Proceedings of the tenth ACM SIGPLAN symposium on Principles and practice of parallel programming, P48
[24]  
Hasenfratz D., 2010, 2010 International Conference on High Performance Computing & Simulation (HPCS 2010), P163, DOI 10.1109/HPCS.2010.5547141
[25]  
Herlihy M, 2002, INT CON DISTR COMP S, P522
[26]  
Herlihy M., 2003, Proceedings of the twenty-second annual symposium on Principles of distributed computing, P92
[27]  
Herlihy M., 1993, INT S COMPUTER ARCHI, DOI [DOI 10.1145/165123.165164, 10.1145/165123.165164]
[28]   A flexible framework for implementing software transactional memory [J].
Herlihy, Maurice ;
Luchangco, Victor ;
Moir, Mark .
ACM SIGPLAN NOTICES, 2006, 41 (10) :253-261
[29]  
Irani S, 1996, PROCEEDINGS OF THE SEVENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P85
[30]   Improved inapproximability results for MaxClique, chromatic number and approximate graph coloring [J].
Khot, S .
42ND ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 2001, :600-609