scispace - formally typeset
Search or ask a question
Topic

Transactional memory

About: Transactional memory is a research topic. Over the lifetime, 2365 publications have been published within this topic receiving 60818 citations.


Papers
More filters
Book ChapterDOI
18 May 2016
TL;DR: This paper studies how to use hardware transactional memory (HTM) to avoid costly and sometimes unnecessary atomic operations and suggests that replacing the systematic counting strategy with HTM could improve application performance in certain scenarios, such as concurrent linked-list traverse.
Abstract: The most popular programming languages, such as C++ or Java, have libraries and data structures designed to automatically address concurrency hazards in order to run on multiple threads. In particular, this trend has also been adopted in the memory management domain. However, automatic concurrent memory management also comes at a price, leading sometimes to noticeable overhead. In this paper, we experiment with C++ smart pointers and their automatic memory-management technique based on reference counting. More precisely, we study how we can use hardware transactional memory (HTM) to avoid costly and sometimes unnecessary atomic operations. Our results suggest that replacing the systematic counting strategy with HTM could improve application performance in certain scenarios, such as concurrent linked-list traversal.

1 citations

Journal ArticleDOI
TL;DR: Helenos is introduced, a realistic, complex, and comprehensive distributed TM benchmark based on the problem of the Facebook inbox, an application of the Cassandra distributed store.
Abstract: Transactional Memory (TM) is an approach to concurrency control that aims to make writing parallel programsbothe! ectiveandsimple. Theapproachis startedinnon-distributedmultiprocessorsystems, but is gaining popularity in distributed systems to synchronize tasks at large scales. E" ciency and scalability are often the key issues in TM research, so performance benchmarks are an important part of it. However, while standard TM benchmarks like the STAMP suite and STMBench7 are available and widely accepted, they do not translate well into distributed systems. Hence, the set of benchmarks usable with distributed TM systems is very limited, and must be padded with microbenchmarks, whose simplicity and artificial natureoftenmakesthemuninformativeormisleading. Therefore, thispaperintroducesHelenos, arealistic, complex, and comprehensive distributed TM benchmark based on the problem of the Facebook inbox, an application of the Cassandra distributed store.

1 citations

01 Jan 2016
TL;DR: This chapter discusses Transactional Memory Scheduling Using Machine Learning Techniques, which automates the very labor-intensive and therefore time-heavy and expensive process of manually Scheduling and Scheduling Transactions.
Abstract: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 STM Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1.1 The Machine Learning Techniques . . . . . . . . . . . . . . . 5 1.1.2 Fairness of Transactions’ Scheduling Using Machine Learning Techniques . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 STM Approximation . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.1 Approximately Opaque Read-only Transactions . . . . . . . 7 1.2.2 Approximated Opacity for Other Kinds of Transactions . . . 7 1.3 The Garbage Collector . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4 Outline of the Dissertation . . . . . . . . . . . . . . . . . . . . . . . 8 Chapter 2: Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Chapter 3: Notation and Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1 Kinds of Operations and Sequential Object . . . . . . . . . . . . . . 15 3.2 Approximated Opacity . . . . . . . . . . . . . . . . . . . . . . . . . 17 Chapter 4: Transactional Memory Scheduling Using Machine Learning Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.

1 citations

Proceedings ArticleDOI
01 Dec 2020
TL;DR: QSTM as discussed by the authors is a nonblocking persistent STM that requires neither the modification of target data structures nor the availability of a wide CAS instruction, and works only on a machine with double-width compare-and-swap (CAS) or load-linked/store-conditional (LL/SC) instructions.
Abstract: Newly emerging nonvolatile alternatives to DRAM raise the possibility that applications might compute directly on long-lived data, rather than serializing them to and from a file system or database. To ensure crash consistency, such data must, like a file system or database, provide failure-atomic transactional semantics. Several persistent software transactional memory (STM) systems have been devised to provide these semantics, but only one—the OneFile system of Ramalhete et al.—is nonblocking. Nonblocking progress is desirable to avoid both performance anomalies due to process preemption or failures and deadlock due to priority inversion. Unfortunately, OneFile achieves nonblocking progress at the cost of 2 × space overhead, sacrificing much of the cost and density benefit of nonvolatile memory relative to DRAM. OneFile also requires extensive and intrusive changes to data declarations, and works only on a machine with double-width compare-and-swap (CAS) or load-linked/store-conditional (LL/SC) instructions. To address these limitations, we introduce QSTM, a nonblocking persistent STM that requires neither the modification of target data structures nor the availability of a wide CAS instruction. We describe our system, give arguments for safety and liveness, and compare performance to that of the Mnemosyne and OneFile persistent STM systems. We argue that modest performance costs (within a factor of 2 of OneFile in almost all cases) are easily justified by dramatically lower space overhead and higher programmer convenience.

1 citations

Journal ArticleDOI
TL;DR: TMS2-ra as mentioned in this paper is a relaxed operational transactional memory (TM) specification that provides a formal semantics for TM libraries and their clients that can be implemented by a C11 library, TML-ra, that uses relaxed and release-acquire atomics.
Abstract: Transactional memory (TM) is an intensively studied synchronisation paradigm with many proposed implementations in software and hardware, and combinations thereof. However, TM under relaxed memory, e.g., C11 (the 2011 C/C++ standard) is still poorly understood, lacking rigorous foundations that support verifiable implementations. This paper addresses this gap by developing TMS2-ra, a relaxed operational TM specification. We integrate TMS2-ra with RC11 (the repaired C11 memory model that disallows load-buffering) to provide a formal semantics for TM libraries and their clients. We develop a logic, TARO, for verifying client programs that use TMS2-ra for synchronisation. We also show how TMS2-ra can be implemented by a C11 library, TML-ra, that uses relaxed and release-acquire atomics, yet guarantees the synchronisation properties required by TMS2-ra. We benchmark TML-ra and show that it outperforms its sequentially consistent counterpart in the STAMP benchmarks. Finally, we use a simulation-based verification technique to prove correctness of TML-ra. Our entire development is supported by the Isabelle/HOL proof assistant.

1 citations


Network Information
Related Topics (5)
Compiler
26.3K papers, 578.5K citations
87% related
Cache
59.1K papers, 976.6K citations
86% related
Parallel algorithm
23.6K papers, 452.6K citations
84% related
Model checking
16.9K papers, 451.6K citations
84% related
Programming paradigm
18.7K papers, 467.9K citations
83% related
Performance
Metrics
No. of papers in the topic in previous years
YearPapers
202316
202240
202129
202063
201970
201888