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 条
[41]   Transactional Pre-abort Handlers in Hardware Transactional Memory [J].
Park, Sunjae ;
Hughes, Christopher J. ;
Prvulovic, Milos .
27TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES (PACT 2018), 2018,
[42]   Store Atomicity for Transactional Memory [J].
Maessen, Jan-Willem ;
Arvind .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2007, 174 (09) :117-137
[43]   Fun with Hardware Transactional Memory [J].
Herlihy, Maurice .
SIGMOD'14: PROCEEDINGS OF THE 2014 ACM SIGMOD INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2014, :575-575
[44]   Extensible Software Transactional Memory [J].
Noel, Cyprien .
PROCEEDINGS OF THE THIRD C* CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING 2010 (C3S2E '10), 2010, :23-34
[45]   Evaluating the Impact of Transactional Characteristics on the Performance of Transactional Memory Applications [J].
Rui, Fernando ;
Castro, Marcio ;
Griebler, Dalvan ;
Fernandes, Luiz Gustavo .
2014 22ND EUROMICRO INTERNATIONAL CONFERENCE ON PARALLEL, DISTRIBUTED, AND NETWORK-BASED PROCESSING (PDP 2014), 2014, :93-97
[46]   Language Constructs for Transactional Memory [J].
Harris, Tim .
ACM SIGPLAN NOTICES, 2009, 44 (01) :1-1
[47]   Extensible transactional memory testbed [J].
Harmanci, Derin ;
Gramoli, Vincent ;
Felber, Pascal ;
Fetzer, Christof .
JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2010, 70 (10) :1053-1067
[48]   Brief Announcement: Giving Future(s) to Transactional Memory [J].
Zeng, Jingna ;
Haridi, Seif ;
Issa, Shady ;
Romano, Paolo ;
Rodrigues, Luis .
PROCEEDINGS OF THE 32ND ACM SYMPOSIUM ON PARALLELISM IN ALGORITHMS AND ARCHITECTURES (SPAA '20), 2020, :587-589
[49]   Snapshots and software transactional memory [J].
Cole, C ;
Herlihy, M .
SCIENCE OF COMPUTER PROGRAMMING, 2005, 58 (03) :310-324
[50]   Transactional memory in a dynamic language [J].
Renggli, Lukas ;
Nierstrasz, Oscar .
COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2009, 35 (01) :21-30