A Competitive Analysis for Balanced Transactional Memory Workloads

被引:0
作者
Gokarna Sharma
Costas Busch
机构
[1] Louisiana State University,Department of Computer Science
来源
Algorithmica | 2012年 / 63卷
关键词
Transactional memory; Contention management; Balanced workloads; Transaction scheduling; Competitive ratios; Concurrency control;
D O I
暂无
中图分类号
学科分类号
摘要
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 polynomial time contention management algorithms. We analyze the performance of a contention management algorithm by comparison with an optimal offline contention management algorithm to provide a competitive ratio. The first algorithm Clairvoyant is \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$O(\sqrt{s})$\end{document}-competitive, where s is the number of shared resources. This algorithm depends on explicitly knowing the conflict graph at each time step of execution. The second algorithm Non-Clairvoyant is \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$O(\sqrt{s} \cdot \log n)$\end{document}-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 close to optimal, since there is no polynomial time contention management algorithm for the balanced transaction scheduling problem that is better than \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$O((\sqrt{s})^{1-\varepsilon})$\end{document}-competitive for any constant ε>0, unless NP⊆ZPP. To our knowledge, these results are significant improvements over the best previously known O(s) competitive ratio bound.
引用
收藏
页码:296 / 322
页数:26
相关论文
共 50 条
[21]   Software transactional memory [J].
Nir Shavit ;
Dan Touitou .
Distributed Computing, 1997, 10 :99-116
[22]   On the Correctness of Transactional Memory [J].
Guerraoui, Rachid ;
Kapalka, Michal .
PPOPP'08: PROCEEDINGS OF THE 2008 ACM SIGPLAN SYMPOSIUM ON PRINCIPLES AND PRACTICE OF PARALLEL PROGRAMMING, 2008, :175-184
[23]   Hybrid transactional memory [J].
Damron, Peter ;
Fedorova, Alexandra ;
Lev, Yossi ;
Luchangco, Victor ;
Moir, Mark ;
Nussbaum, Daniel .
ACM SIGPLAN NOTICES, 2006, 41 (11) :336-346
[24]   Sandboxing Transactional Memory [J].
Dalessandro, Luke ;
Scott, Michael L. .
PROCEEDINGS OF THE 21ST INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES (PACT'12), 2012, :171-179
[25]   Transactional memory: An overview [J].
Harris, Tim ;
Cristal, Adrian ;
Unsal, Osman S. ;
Ayguade, Eduard ;
Gagliardi, Fabrizio ;
Smith, Burton ;
Valero, Mateo .
IEEE MICRO, 2007, 27 (03) :8-29
[26]   Scheduling Support for Transactional Memory Contention Management [J].
Maldonado, Walther ;
Marlier, Patrick ;
Felber, Pascal ;
Suissa, Adi ;
Hendler, Danny ;
Fedorova, Alexandra ;
Lawall, Julia L. ;
Muller, Gilles .
ACM SIGPLAN NOTICES, 2010, 45 (05) :79-89
[27]   Scheduling Support for Transactional Memory Contention Management [J].
Maldonado, Walther ;
Marlier, Patrick ;
Felber, Pascal ;
Suissa, Adi ;
Hendler, Danny ;
Fedorova, Alexandra ;
Lawall, Julia L. ;
Muller, Gilles .
PPOPP 2010: PROCEEDINGS OF THE 2010 ACM SIGPLAN SYMPOSIUM ON PRINCIPLES AND PRACTICE OF PARALLEL PROGRAMMING, 2010, :79-89
[28]   A Novel Mechanism for Enhancing Software Transactional Memory [J].
Mokhtar, Hoda M. O. ;
Hussein, Nariman Adel .
PROCEEDINGS OF THE 18TH INTERNATIONAL DATABASE ENGINEERING AND APPLICATIONS SYMPOSIUM (IDEAS14), 2014, :278-283
[29]   Transactional Interference-Less Balanced Tree [J].
Hassan, Ahmed ;
Palmieri, Roberto ;
Ravindran, Binoy .
DISTRIBUTED COMPUTING (DISC 2015), 2015, 9363 :325-340
[30]   Window-based greedy contention management for transactional memory: theory and practice [J].
Sharma, Gokarna ;
Busch, Costas .
DISTRIBUTED COMPUTING, 2012, 25 (03) :225-248