Research on Algorithm of Parallel Copying Garbage Collection Based on Lisp 2 for Multicore System

Author
WuChangMao
Advisor
ZhangCongPin
School
Henan Normal
Major
Computer Software and Theory
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2011
Downloads
15
Citations
0

Request the full text

Abstract

As object-oriented languages and programming approach are widely used at present, garbage collection is drawing people’s more attention. Garbage collection which is also called Dynamic Memory Management is a mechanism of deallocating unreachable objects by Runtime System. The prevailing object-oriented languages such as C# and Java all support garbage collection. With garbage collection, programmers only pay attention to allocate memory for objects without taking destroying objects into consideration. The unreachable objects are deallocated automatically by garbage collector without the intervention of programmers, which considerably decreases the burden of programmers. Garbage collection avoids memory leak and errors caused by incorrect memory operations, e.g. dangling reference, improves the robustness of software as well. The performance and efficiency of garbage collector, however, directly affect the program’s executive efficiency and user’s experience. Therefore, improving the efficiency of garbage collector is of great importance in application fields.At the present time, multicore CPU and multicore GPU increasingly prevail, consequently their parallel computing ability sharply rise, all these offer the parallelization of garbage collection a solid basisWith the study on garbage collection, we have mainly accomplished the following works in this paper:1. We have deeply researched on the algorithms of garbage collectionBy means of looking up a large number of papers and treatises about garbage collection, we do many researches on the garbage collection algorithms e.g. Reference-Count algorithm, Mark-Sweep Algorithm, Copying Algorithm as well Generational Algorithm, especially parallel garbage collection algorithm, and compare these methods in the aspects of disadvantages, advantages and applicable surroundings.2. We have presented a novel copying garbage collection algorithm (Lisp 2-Copying-GC-Algorithm) based on Lisp 2 through deallocating unreachable objects on FromSpace and copying live objects to ToSpace.3. By means of dividing heap into equal blocks and defining 6 statuses for blocks, we have presented the parallel algorithm of Lisp 2-Copying-GC-Algorithm, called Lisp 2-Parallel-Copying-GC.4. The implementation of Lisp 2-Parallel-Copying-GC in multicore CPU systemIn multicore CPU system, we have implemented the algorithm of Lisp 2-Parallel-Copying-GC using the OpenMP 3.0 specification. OpenMP is a parallel language for shared memory system and distributed shared memory system, and also is a programming interface for multithread programming. The experimental results show that in multicore CPU system the proposed algorithm is able to improve the garbage collection efficiency in a large scale.5. The implementation of Lisp 2-Parallel-Copying-GC in multicore GPU systemCUDA is NVIDIA’s parallel computing architecture. It enables dramatic increases in computing performance by harnessing the power of the GPU. For the first time we conduct an effective exploration in garbage collection field using GPU system. In multicore GPU system, we have implemented Lisp 2-Parallel-Copying-GC. From the results we can see that the garbage collection efficiency is much improved in multicore GPU system than that in multicore CPU system.From the works above, we realize that with the multicore framework (multicore CPU system and multicore GPU system) prevailing, if garbage collection could employ the strong computing ability in multicore system, the efficiency of garbage collector will be largely improved so that the user’s experience will be better.

Table of contents

Abstract 4-6 ABSTRACT 6-12 Chapter Introduction 12-18 1.1 garbage collection history 12 < br /> 1.2 garbage collection software status and level 12-14 1.3 topics sense 14-17 1.3.1 research background : the popularity of multi-core systems 14 1.3.2 garbage collection to reduce the burden on the programmer 14-15 1.3.3 software garbage collection enhances the robustness 15-16 1.3.4 parallel garbage collection improves collection efficiency 16-17 1.4 this structure 17-18 Chapter garbage collection algorithms 18-28 <br / > 2.1 reference counting algorithm 18-19 2.2 mark sweep algorithm 19-20 2.3 mark - shrink and algorithm 20-23 2.4 node replication algorithm 23-25 ?? 2.5 generational algorithm 25 2.6 parallel collection algorithm 25-26 2.7 Summary 26 -28 CHAPTER parallel multi-core CPU node replication garbage collection algorithms and implementation 28-46 3.1 multi-core CPU Overview 28-30 3.1.1 multi-core CPU generation 28-29 3.1.2 multi-core CPU programming model 29 3.1.3 OpenMP parallel programming 29-30 3.2 based on Lisp 2 algorithm node replication garbage collection algorithm 30-32 3.3 based Lisp 2 multi-core CPU parallel algorithm node replication garbage collection 32-40 3.3.1 Lisp 2-Copying -GC-Algorithm algorithm parallelization method 32-33 3.3.2 concurrent mark phase 33-35 3.3.3 parallel migration address calculation stage 35 -38 3.3.4 parallel reference correction phase 38-39 3.3.5 parallel moving object stage 39-40 3.4 experimental Design 40 -43 3.4.1 algorithm data structure 40-42 3.4.2 hardware Configuration 42-43 3.4.3 software configuration 43 3.5 analysis of experimental results 43-44 3.6 Summary 44-46 Chapter multicore GPU parallel node replication garbage collection algorithms and implementation 46 -56 4.1 multicore GPU Overview 46-47 4.2 CUDA programming model 47-49 4.2.1 host and device 47-48 < br /> 4.2.2 Kernel function 48-49 4.2.3 thread hierarchy 49 4.3 GPU multicore parallel based LISP2 node replication garbage collection 49-53 4.3.1 GPU multicore next garbage collection process 50-51 4.3.2 concurrent mark phase 51 4.3.3 parallel address calculation stage migration 51-52 4.3.4 update phase parallel references 52-53 4.3.5 parallel moving object stage 53 4.4 experimental Design 53-54 4.4.1 hardware Configuration 54 4.4.2 software configuration 54 4.5 analysis of experimental results 54-55 <br / > 4.6 Summary 55-56 Chapter review and Outlook 56-59 5.1 work done 56-57 5.1.1 common garbage collection algorithm 56 5.1.2 presents Lisp 2-Copying-GC-Algorithm algorithm 56 5.1.3 presents parallelization Lisp 2-Parallel -Copying-GC algorithm 56-57 5.1.4 Lisp 2-Parallel-Copying-GC algorithm for multi-core CPU under the realization 57 5.1.5 Lisp 2-Parallel- Copying-GC algorithm to achieve under the multi-core GPU 57 5.2 garbage collection Prospects 57-59 References 59-64 Thanks 64-65 papers published during the study for a degree directory 65 participate in research projects 65-66

Related dissertations

  1. DDOS Attack Prevention System Desgin and Research
  2. Efficient Data Representation Combining with ELM and NMF
  3. Design and Optimization of Deep Packet Inspection System in Multicore Environment
    AiZuo ·Harbin Institute of Technology ·2013 ·Master's thesis
  4. Improved Push-Relabel Algorithm for Graph Cuts And Design and Implementation on the GPU
    LiZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  5. Research and Implementation of Parallel Query Processing in Column-store
    ZhangGuangHui ·Donghua University ·2014 ·Master's thesis
  6. Based on Cloud Computing of Cold Chain Logistics Distribution Vehicle Routing Optimization Researching the Method
  7. Research on Storage System in High Performance Routers
    FanJinDou ·Tsinghua University ·2013 ·Doctoral dissertation
  8. Self-Tuning Data Prefetcher for Embedded System
    XinYuan ·Zhejiang University ·2013 ·Master's thesis
  9. Research on Conflict Management Strategies in Multicore-oriented Software Transactional Memory
    XieYing ·Northeastern University ·2013 ·Master's thesis
  10. Asymmetric Dual-Space Collectors
  11. Research of Parallel Method for GPU-based Multiple Sequence Relevance Analysis
  12. Digital Architectural Design Parallel Integration Research
    HanDong ·Tianjin University ·2012 ·Master's thesis
  13. The Research of Precipitation Using KNN Classifier Based on Hadoop
  14. Fabrication and Transmission Property Research of Photonic Crystal Fiber
  15. Design and Supermode Analysis of Seven-core Photonic Crystal Fiber
    LiuMeng ·Yanshan University ·2013 ·Master's thesis
  16. Parallelization of Graph Algorithms
    ChenMeiXian ·Shanghai Jiaotong University ·2013 ·Master's thesis
  17. The Improvement of Hybrid Artificial Bee Colony
    DaiDianZuo ·Guangdong University of Technology ·2012 ·Master's thesis
  18. Research and Design of Embedded Browser Parallel Typesetting Layout Engine
  19. Research and Implementation of IPSec VPN Proxy Cluster System
    QiuWenZhen ·Harbin Engineering University ·2012 ·Master's thesis
  20. The Reasearch of Recommendation Algorithm Based on Network