Study on Parallel Optimizations for Transactional Memory
- Author
- ZuoZhiChao
- Advisor
- FengDan
- School
- Huazhong University of Science and Technology
- Major
- Computer System Architecture
- Classification
- TP311.11 Programming method
- Degree
- Doctoral dissertation
- Year
- 2012
- Downloads
- 35
- Citations
- 0
- Transactional Memory system
- Parallel Programming
- Thread Level Parallelism
- cache coherence
- Performance Optimization
Abstract
A series of fundamental changes to the entire computer community have come withthe sea change from single-core to multi-core processor architecture. Among them, thefirst problem is how to ensure that the future performance of the software can continue togrow in the multi-core era, and this requires the programmer to explicitly usingthread-level-parallelism to write applications to exploit the parallelism in the program.However, this change will significantly increase the burden on the programmer, that maygreatly reduces programmer productivity, especially in the increasing scale of software,to improve programmer productivity of programming behave as a core technology of themodern software development. Transactional memory borrowed the transaction conceptfrom the database community to the parallel programming model. On the one hand, usingthe transaction interface can improve the abstraction level, especially for its nature ofcomposition, which can reduce the burden of the programmer manage concurrent threadscompeting for the shared data; on the other hand, assigning the transactional semantic tothe possibly racing blocks can optimistically run these codes, only when the transactionalconflict is detected in practice, transactional memory invokes the proper function to makethe appropriate treatment, which improves degree of parallelism of the program.Therefore, transactional memory is regarded as an effective tool for parallel programmingin the future multi-core platform, attract a lot of attention from industry and academia,thus becoming a hotspot nowadays.Through analysis and evaluate the existing hardware transactional memory system,we found that along with the number of concurrent executing transactions increased,especially under the coarse-grained and high-contention workloads, due to the constraintof the transaction conflict, leading to concurrent performance dramatically decline ininfluence of application’s concurrent performance. This paper concerntrates onoptimizing the parallelism of the current transactions in transactional memory system, wehave proposed three key techniques to exploit the concurrency of transactions in transactional memory system.Due to the extra data movements exist in the existing version management schemesof transactional memory systems. These data movements will not only extend the time oftransaction execution, but also affect the surrounding concurrent transactions to access tothe shared data, which may bring extra transactional conflicts among the concurrenttransactions. This case will worsen especially under the coarse-grained andhigh-contention transactional workloads, there may cause the system to appear moretransactional conflicts, blocking concurrent transaction execution, and bring more datamovements, thus leading to a vicious cycle to limit the concurrency and hurt theapplication’s performance. Aiming at this problem, we propose a novel single updateversion management scheme to reduce the extra data movements in the versionmanagement scheme, design a hardware-based fully-associative redirect table to managethe old and new versions during a transaction’s execution period, integrate it into theprocessor’s pipeline and analysis transactional workloads’ characterstics to design thetwo-level redirect table to exploit the parallelisms and reduce the hardware costs. Thismethod not only shortens the execution time of each transaction, but also alleviates thepossible interference with the surrounding transactions, thus efficiently improving thetransactional memory system’s concurrency.The composition capability of the transaction interface makes the programmersnaturally write the transactional applications composed by the coarse-grained,high-contention and long-length transactions. However, during the execution process ofeach coarse-grained and long-length transaction, because its execution time is too long,which will greatly increase the probability of transactional conflict occurrence, it is easyto obstruct the execution of concurrent transactions, thus significantly affectingsurrounding transactions’ concurrency. In order to solve this problem, we propose acoarse-grained and long-length transaction’s speculative in parallel execution technique,integrate the thread-level speculation technique into the hardware transactional memorysystem, modify the architecture of transactional memory to support checkingprogram’s.sequential ordering and apply this method to spawn speculative threads from the function call and loop structures to accelerate program’s execution. This method canextract the speculative code segments from a coarse-grained long-length transaction andassign multiple threads to execute them in parallel to accelerate the long transaction’sexecution. Moreover, this method can also reduce the probability of transactional conflictoccurrence with the surrounding transactions to improve the overall transactionalmemory system’s concurrency.Due to the various characterstics of the transaction’s length, read set and write set inthe concurrent transactions, the interaction of these concurrent transactions will lead tovarious behaviors, that makes using the history-based hardware transactional modeselector no longer to accurately choose the proper transactional execution mode. Thewrong choice will not only bring the extra overheads but also interfere the aroundtransactions to hurt the concurrency. To address this problem, we propose a paralleloptimization technique based on the transactions’ behaviors analysis, design asoftware-based module to manage transaction’s schedule, who will collect andstatistically analysis each transaction’s execution information, using these statistical datato mine the behavioral characterstics of the concurrent transactions, and take advantageof this information as the main factor to schedule the transactions’ execution and solvethe transactional conflicts, this auxiliary conflict management component can helpunderneath hardware exploit more concurrency of the concurent transactions. Thismethod can provide a higher predication accuracy to schedule the execution of concurrenttransactions than the hardware-based approach and exploit more performance benefits viamining the behavioral characterstics of the concurrent transactions.In this paper, the single update version management scheme and coarse-grained andlong-length transaction’s speculative in parallel execution technique try to reduce the datamovements and execute the coarse-grained and long-length transaction in parallel toexploit the parallelisms in the transactions. At the same time, the parallel optimizationtechnique based on the transactions’ behaviors analysis tries to collect the behavioralcharacterstics of the concurrent transactions and schedule the execution of the concurrenttransactions to exploit the parallelisms among the concurrent transactions. So, the parallel optimization technique based on the transactions’ behaviors analysis can combine withthe single update version management scheme and coarse-grained and long-lengthtransaction’s speculative in parallel execution technique to exploit both the parallelismsin the transactions and the parallelisms among the concurrent transactions, thusimproving the parallel performance of transactional memory systems.
Table of contents
Summary 4-7
Abstract 7-13
1 Introduction 13-27
1.1 Background and Issues significance 13-18
1.2 transactional memory research technology status 18-24
1.3 the main contents of this paper 24-27
2 data movement to reduce single data updated version management method 27-57
2.1 mobile transaction data memory performance impact analysis 27-33
2.2 updated version of a single data management 33-43 <br / > Performance 2.3 single data updated version management assessment 43-55
2.4 Summary 55-57
3 coarse-grained concurrency speculative long transaction execution 57-78
3.1 grained long transaction transactional memory performance impact analysis 57-64
3.2 grained concurrency speculative long transaction execution technology 64-70 <br / > performance Evaluation 3.3 grained concurrency speculative long transaction execution method 70-77
3.4 Summary 77-78
4 transaction-based behavioral analysis of parallel optimization techniques analysis 78-101
4.1 Affairs dynamic behavior of transactional memory performance impact 78-85
4.2 transaction-based behavioral analysis of parallel optimization techniques 85-93
4.3 transaction-based behavioral analysis techniques to optimize the performance of parallel assessment 93-99
4.4 summary 99-101
5 Full Summary 101-106 <br / > Thanks 106-107
References 107-115
Appendix published a doctoral dissertation during 115-116
Appendix 2 study patents and software copyrights applications doctorate during major research projects 116-117
Appendix 3 pursuing a doctorate participate during 117
Related dissertations
- Research of Programming and Performance Optimization under Intel Many-core Architecture
- Research on Optimization for High Performance Hardware Transactional Memory in Multicore System
- The Research and Improvement of the Conflict Detection Algorithm in Transactional Memory System
- Research on the Improvement of the Performance Appraisal System for the Dispatching Labors of Changsha Mobile Communication Company
- Research on Performance Management of the Credit Cooperation in Shandongacounty
- The Research of Multi-face Recognition Algorithm for Intelligent Video Surveillance
- The Research of Data Warehouse Performance Optimization Technology Based on the Coupling Index and Materialized View
- Uncertain Construction and Optimization of Reverse Logistics System
- Design and Realization of Plastic Detection MIS Based on.NET
- Research on Parallel Computing Technology in Loudi Region Analysis of Soil and Water Loss in the Processing of Application
- Research on Performance Testing and Optimization Based on Massive Data Storage
- Key Techniques Research of Memory in Homogeneous General Purpose Stream Processor
- Research on Key Techniques on Design of Data-driven Asynchronous Microprocessors
- Optimizations of Memory Subsystem for Chip Multiprocessor Systems
- Optimization Design and Implementation of the ICS Terminal
- A Theoretical Analysis of the Lifetime and Energy Hole in Cluster Based Wireless Sensor Networks
- Research on Data-driven Crosspoint-Queued on Chip Router
- The Research of of ZigBee Network Structure of the Network Construction and the Method of Performance Optimization
- Heat Transfer Characteristics and Mechanism Research of the Rmoelectric Generator
- Research on the Recovery of the Waste Heat of Condensation Water in Power Plant