Research on Key Techniques for Software Transactional Memory Parallel Programming Environment

Author
PengLin
Advisor
XieLunGuo
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP311.1 Programming
Degree
Doctoral dissertation
Year
2010
Downloads
88
Citations
0

Request the full text

Abstract

New Moore’s Law says that without increasing much of the CPU frequency, processing cores on a single chip will double about every two years. As a result the performance improvement depends on parallelism. Parallel algorithms and parallel programming are the keys in several decades for computer since and software area.In shared memory architecture, threads communicate through shared variables, and synchronization is necessary for correct parallel programming. However, the traditional lock mechanism for synchronization between threads in parallel programs is difficult to use, and is not composable. People propose Transactional Memory (TM) mechanism which originates from transactions in database systems. The goal of transactional memory is to provide simple and efficient parallel programming synchronization mechanism. Transactional memory has become the research focus of the architecture and compiler area in these years.This thesis focuses on how to construct a usable parallel programming environment with Transactional Memory. We discuss the safety of transactional memory and the semantics of transactional memory in language, performance optimization of software transactional memory with safety property, the construction of software transactional memory parallel programming environments, performance tuning support of transactional memory application, and the utilization of irregular loop speculation parallel by transactional memory. Major work and innovation achieved as follows:(1) Transactional memory serializability and transactional mutex semanticsIn shared memory programming languages Transactional memory as synchronization technique has no formal specification which satisfied safety property. We propose Transactional Memory Serializability (TMS) and transaction mutex semantics which describe the requirements and possible optimizations of the transactional memory parallel programming environment for programmers. TMS is focusing on the requirements between transactions which keep transactions running as if in a sequential order and eliminate all possible dangerous exceptions. We prove that TMS obeys the requirements of safety property. Based on TMS transactional mutex semantics require that transactions which conflict to keep happen-before relations which is consistent with available synchronizations. Transactional mutex semantics get rid of data races between transactional codes and non-transactional codes under weak isolation.(2)Vector Timestamp based software transactional memory algorithm without atomic operations VectorSTMSoftware transactional memory algorithms now can not provide safety and high performance in the same time. We come up with a vector timestamp based software transactional memory algorithm VectorSTM. VectorSTM detects conflicts with bloom filter which efficiently lower the costs of conflicts detection and needs no atomic operations which eliminates the costs of atomic operations, and VectorSTM provides TMS and transactional mutex semantics efficiently.The tests of STAMP show that VectorSTM’s performance is close to TL2 and sometimes better than RingSTM. However VectorSTM can provide privatization and publication safety which can’t both be provided by TL2 and RingSTM for shared variables.(3)XOR hash function based adaptive conflicts detection algorithm AdapSig Software transactional memory using bloom filter for conflicts detection suffers a lots from false positives from bloom filter. AdapSig uses XOR hash functions and adaptively changes the length of bit vectors in bloom filter in according to the read/write sets size when transaction executed,and AdapSig lowers false positives and improves the performance. In VectorSTM comparing to the original bloom filter using bit selection function and stable bit vector, AdapSig can improve the performance of STAMP when 8 threads with 3.32% average and the best to 15%.(4) A software transactional memory parallel programming environment OpenTM-Fortran integrated with optimization achieved beforeIn scientific computing transactional memory is not used in Fortran yet. For the first time we construct a software transactional memory parallel programming environment OpenTM-Fortran. We integrate VectorSTM and AdapSig in OpenTM-Fortran and OpenTM-Fortran provides runtime profile of transactional memory programs for programmers to optimizing programs. We also try to use the speculation of transactional memory to explore Memory Level Parallelism in multi-core processors. The results show that the speculation of transactional memory can explore Memory Level Parallelism and computing ability in multi-core processors.

Table of contents

Abstract 10-12 Abstract 12-14 first chapter 14-30 1.1 Background and significance of the topic 14-22 1.1.1 high-performance calculation of the demand and the popularity of multi-core processors 14-15 1.1.2 Parallel Program Design Introduction 15-16 1.1.3 parallel programming challenges and our approach 16-21 1.1.4 Summary 21-22 1.2 research and innovation 22-27 1.2.1 research 22-25 1.2.2 main work and innovation 25-27 1.3 thesis structure 27-30 the second chapter affairs storage system 30-42 Design and Implementation of the 2.1 transactional storage 31-38 2.1.1 transactional storage system classification 32-34 2.1.2 Collision Detection 34-35 2.1.3 version of the data management 35-36 2.1.4 conflict digestion 36 2.1.5 transactional memory implementation of Security 36-37 2.1.6 Isolation transactional semantics 37-38 2.2 transactional memory parallel programming environment 38-39 2.3 transactional storage with existing system components interact 39-40 2.4 research platform 40 2.5 Summary 40-42 the third chapter affairs storage execution model 42-74 3.1 transactional storage serializability 43-60 3.1.1 transactional storage serial intuitive description 43-46 3.1.2 related work and existing model limitations 46-48 3.1.3 formal description of the memory accesses sequential consistency 48-51 3.1.4 transactional memory implementation of formalized description 51-52 3.1.5 transactional storage serial formal description of security properties proved 52-59 3.1.6 transactional storage serial applicability 59-60 3.2 Affairs mutually exclusive semantic 60-68 3.2.1 C / Introduction to Java shared storage model 60-62 3.2.2 Transaction Code and non-transactional code relationship analysis 62-67 3.2.3 Affairs mutually exclusive semantic 67-68 3.3 security transactional memory execution model preliminary algorithm 68-72 3.4 Summary 72-74 Chapter of security affairs storage execution model realization and optimization 74-106 4.1 the vector clock without atomic operations STM algorithm VectorSTM 74-99 4.1.1 vector clock occurrence sequence relationship 75-76 4.1.2 distributed concurrency control 76-79 4.1.3 conflict detection, competition management and system activity (liveness) 79-81 4.1.4 VectorSTM the realization 81-87 4.1.5 VectorSTM support transactional storage serial 87-91 4.1.6 VectorSTM mutex semantics of transaction support 91-94 4.1.7 experiment and results analysis 94-99 4.2 exclusive-or function-based the adaptive conflict detection algorithm AdapSig 99-105 4.2.1 transactional storage Bloom Filter 100-101 4.2.2 Adaptive conflict detection algorithm AdapSig 101-103 4.2.3 software transactional memory AdapSig realization 103 4.2.4 Experiments and results analysis 103-105 4.3 Summary 105-106 Chapter software transactional memory parallel programming environments 106-128 Design and Implementation of the 5.1 OpenTM-Fortran 106-116 5.1.1 OpenTM-Fortran storage model 107-108 the Fortran affairs 5.1.2 OpenTM-storage expansion guidance commands and programming constraints 108-111 of 5.1.3 OpenTM-Fortran implementation 111-115 5.1.4 Related work 115-116 the of transactional storage procedures 5.2 OpenTM-Fortran performance tuning 116-120 5.2.1 Basic mechanism 117 5.2.2 instance 117-120 5.3 software transactional memory prospective parallel 120-126 5.3.1 multicore processors and storage level parallel 120-121 5.3.2 irregular application transaction prospective execution 121-123 5.3.3 Experimental results and analysis 123-126 5.4 Summary 126-128 Chapter VI Conclusion 128-132 innovation thesis work 6.1 points and summarize 128-129 6.2 research outlook 129-132 Acknowledgements 132-134 the References 134-142 the studying for a doctorate during the main academic achievements 142-144 participate during PhD research work 144

Related dissertations

  1. Empirical Analysis of Speculative Factors on Soybean Futures Prices
    ZhengBin ·Nanjing Agricultural College ·2013 ·Master's thesis
  2. Research on Multi-domain Role Access Control Policy Merge Method and Its Implementation
    LiuShang ·Harbin Institute of Technology ·2013 ·Master's thesis
  3. Research of Synchronous Replication Technology Based on Semantic Merger
    MaZhiWei ·Henan Agricultural University ·2013 ·Master's thesis
  4. Software Runtime Verification Based on Aspect-oriented Programming
  5. Research on Optimization Technique for Hardware Transactional Memory System Based on CMP
    ZhangZuo ·Harbin Engineering University ·2013 ·Master's thesis
  6. Research of STM Conflict Management Based on Signature
    HaoYu ·Northeastern University ·2013 ·Master's thesis
  7. Research and Realization of MIPI High-speed Data Interface
    ShenLei ·Hunan University ·2013 ·Master's thesis
  8. Consideration on Fact Factors during the Trial Process
  9. Technical Research of Surveillance and Collision Avoidance for Moving Targets at the Airport Surface
  10. Aircraft Conflict Detection Based on4D Trajectory Prediction
  11. A Study and Implementation on Aircraft Collision Detection Technology
  12. The Influence of the Crude Oil Future Speculation to International Oil Price
  13. Invited Review from Modern History of Financial Crisis
    SunDaWei ·Jilin University ·2012 ·Master's thesis
  14. Research on China’s Stock Market Speculation and Stock Price Synchronicity
    WangJie ·Shandong University ·2013 ·Master's thesis
  15. Measuring the Speculation of China’s Stock Market
    ZhuHaiBo ·Guangdong College of Commerce ·2012 ·Master's thesis
  16. The Research on Derivatives Investment of China’s State-Owned Enterprises
  17. Empirical Research on Speculation Activity in Real Estate Market
    ZhangSu ·Chongqing University ·2012 ·Master's thesis
  18. Research on Technology of Policy Conflict Detection and Resolution for Classified Information System
  19. Research on Correlation Technologies of Access Control Administration in Multi-level and Inter-domain Environments
  20. Research on Multi-domain Policy Integration Mechanism Based on Attribute
    LiuChenYan ·Shanghai Jiaotong University ·2013 ·Master's thesis