Research and Implementation of Memory Management in Software Transactional Memory System

Author
HuangGuoZuo
Advisor
ZhangPing
School
PLA Information Engineering University
Major
Computer Software and Theory
Classification
TP333.1 In the internal memory (main memory ) General
Degree
Master's thesis
Year
2009
Downloads
14
Citations
0

Request the full text

Abstract

Chip multi-processor improves the performance of the processor and the computer system, overcomes the development bottleneck of the traditional uniprocessor, but the difficult of progarmming affects the performance and application of the multi-core processor. Transactional memory is one of the most promising models in parallel programming for multi-core processor system, which introduces transaction mechanism to the design of parallel programs. Programmers do not need to use the traditional synchronization mechanism to coordinate the concurrent accesses of the multi-thread to shared resources. It avoids the problem of deadlocks. The implementation of transactional memory includes software transactional memory, hardware transactional memory and hybrid transactional memory on the implementation. The key techniques of the implementation of software transactional memory include the data structure organization, the detection and solution of conflicts, the concurrency control and memory management. Memory management is an important factor affecting the performance of software transactional memory system and the forward execution of threads.Therefore, this thesis studies deeply memory management technologies. It designs a non-blocking memory management scheme based on some exist memory management schemes. For the multi-threads environment, the new memory manager uses a pure private heap allocation scheme, allocates a private heap for each thread, makes use with a private manager for managing memory locations, and takes a global manager to administrate these private managers. The private manager is composed of memroy allocator, memory nursery and grabage cleaner. They independently deal with memory allocations, memroy reclamation and cleaning memory locations. It contains all memory operations. On the garbage cleaner, we modify the epoch based reclamation scheme for a shared operation and design the epoch for a transaciton. The garbage cleaner compares epochs of objects with current epochs of transactions, when a transaction is about to end. The memory nursery reclaims the memory locations after garbage objects are cleaned. This enables memory locations to reuse. In addition, a detection mechanism of threads is designed to inspect delayed threads or aborted threads, which supports the requirement of non-blocking synchronization of the memroy manager and software transactional memory system.Finally, the performance of the new memory manager is tested with six traditional programs. Results show that this new memory manager has higher performance, especially for several programs that have much more memory management operations. From the above discussion, this memory manager supports the non-blocking synchronization of software transactional memory system, and improves the performance of the system.

Table of contents

List of Tables 7-8 List of Figures 8-9 summary for 9-10 ABSTRACT 10-11 The first chapter 11-17 1.1 topics sense 11-13 1.1.1 multicore software programming problems 11 1.1.2 Parallel programming difficulties 11-12 1.1.3 transactional memory model 12-13 1.1.4 STM memory management issues 13 1.2 domestic the outer Research 13-15 1.3 thesis structure and research 15-17 software transactional memory research 17-31 <br / > 2.1 the transaction and the transaction is stored 17-19 2.1.1 the concept of transaction 17 2.1.2 transactional storage 17-19 2.2 software transactional memory 19-21 specific implementations of the 2.2.1 software transactional storage 19-20 2.2.2 STM in the execution of the transaction process 20-21 2.3 software transactional memory development of key technologies 21-26 2.3.1 Data Structure Organization 22-23 2.3.2 concurrency control 23 2.3.3 conflict detection and conflict resolution 23-24 2.3.4 contention management 24-25 2.3.5 Memory Management 25 2.3.6 update the 25-26 2.4 RSTM system of introduction 26-30 the 2.4.1 metadata structure management 26-27 2.4.2 transaction descriptor 27 2.4.3 visible readers the contention manager 27-28 2.4.4 28 <br / > 2.4.5 synchronous operation primitive 28-29 2.4.6 RSTM, the API interface 29-30 2.4.7 RSTM the advantages and disadvantages 30 < br /> 2.5 Chapter Summary 30-31 Chapter memory management research 31-49 3.1 the STM memory management issues raised 31-32 <br / > 3.2 non-blocking synchronization the 32-34 3.2.1 nonblocking synchronization concept 32-33 3.2.2 nonblocking, the data structure 33-34 3.2.3 non-blocking synchronization research review and development prospects 34 3.3 nonblocking memory management 34-36 3.4 garbage collection research 36 -43 3.4.1 garbage collection program 37-41 3.4.2 nonblocking, synchronous garbage collection requirements 41-42 3.4.3 affect garbage recovery factors 42-43 350 multi-threaded memory allocation research 43-47 3.5.1 parallel multi-threaded The memory allocation requirements 43-44 <br / > 3.5.2 parallel multi-threaded memory allocation scheme 44-46 3.5.3 non-blocking memory allocation algorithm 46-47 3.6 STM memory management design requirements 47-48 3.7 Chapter Summary 48-49 Chapter MG Design and Implementation of the memory manager 49-73 4.1 design ready to work 49-50 4.1.1 design goals 49 the 4.1.2 design Conventions 49-50 4.2 the MG Memory Management Overview nbsp 4.2.1 foundation program choice; 50-54 50-52 4.2.2 Improvements to the original foundation program 52-53 4.2.3 program The overall idea 53-54 4.3 data structure design 54-57 4.3.1 memory block data structure 54-55 4.3 .2 distributor management linked list 55 4.3.3 hosting is the data structure nbsp 55-56 4.3.4 Clear the data structure; 56-57 < br /> 4.4 distributor and managed the design and realization 57-62 4.4.1 memory allocation and managed design 57-58 4.4.2 allocator algorithm 58-60 4.4.3 Hosted algorithm 60-62 4.5 garbage cleaner design and algorithm 62-71 <br / > 4.5.1 Selection of garbage objects 63 4.5.2 garbage removal timing 63-66 4.5.3 blocking problem solving and non-blocking program design 66-68 4.5.4 garbage removal algorithm to achieve the 68-71 4.6 non-blocking nature proved 71-72 4.7 Chapter Summary 72 -73 Chapter test analysis 73-81 5.1 test preparation 73 5.2 test environment 73 5.3 typical test program 73-75 5.4 test results 75-79 5.5 Analysis of test results the 79-80 5.6 Chapter Summary 80-81 Chapter VI Conclusion and further work 81-85 6.1 summarizes the 81-83 the 6.2 next job 83-85 References 85-89 biographical studying for a master's degree during learning situation 89-90 thank the 90

Related dissertations

  1. Research for Intermediate Result’s Management and Data Access Technology in Column-oriented Database
  2. Asymmetric Dual-Space Collectors
  3. Design and Implementation of Vectorized FFTs on the YHFT-Matrix
  4. Research of STM Conflict Management Based on Signature
    HaoYu ·Northeastern University ·2013 ·Master's thesis
  5. The Research and Realization of the High-Speed Signaling Data Collection System Based on Netio Technology of Multi-Core Processor
  6. Research and Realization of Network Management System Based on the CN56xx Series Network Processor
    ShenJingNie ·WRI ·2012 ·Master's thesis
  7. Design and Implementation of Traffic Control Gateway Based on Cavium Multi-Core Processing Platform
  8. Parallel Simulation of Large Scale Computer Systems
  9. Software Design of Video Surveillance Server Based on Tilera Multi-Core Processor
    ZhouSiZhong ·Zhejiang University ·2013 ·Master's thesis
  10. Collision Culling with Massive Bodies on Multi-core Processor
  11. Study on Search Results Clustering Algorithm Based on Multi-Core Technology
    LinShuo ·Guangxi University ·2012 ·Master's thesis
  12. The Design and Implementation of Maintenance Management System for Hotel Engineering Failures
    KongLingShuai ·Dalian University of Technology ·2012 ·Master's thesis
  13. Design and Implementation of Dispatching Module Based on Multi-core Processor Platform
    MaZuo ·Beijing Jiaotong University ·2012 ·Master's thesis
  14. Design and Implemention of Software Intermediate Layer
  15. Research on Stream Programming Framework and Language for Multi-core Processor Base on X10
  16. The R/W Manner Research and Optimal Design of the Shingled-recording Hard Drivers
  17. Research and Design of Multi-core Processor System Based on FPGA
    ZhuDan ·Yanshan University ·2013 ·Master's thesis
  18. Research of Multi-core Processor Scheduling Algorithm Based on Task Clustering and Duplication
    ZhaoLinXiang ·Hunan University ·2012 ·Master's thesis
  19. The Research of Linux2.6System Multicore Scheduling Based on the EDF
    JiaFeng ·Chengdu University of Technology ·2012 ·Master's thesis
  20. The Research of Energy-Aware Scheduling Algorithm for Multi-core processor
    QiuZuoZuo ·Wuhan University of Technology ·2012 ·Master's thesis