Research on the System-Level Optimizing Key Techniques for MPI Communication on Multicore Systems

Author
LiuZhiQiang
Advisor
SongJunQiang
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Doctoral dissertation
Year
2011
Downloads
15
Citations
0

Request the full text

Abstract

Over the last decades of the 20th century, MPI (Message Passing Interface) have become a de facto standard of programming model in High Performance Computing (HPC) domain. The performance of MPI communications usually play a key role on the global performance of MPI-based programs. Thus Optimizing MPI communication is becoming extremely important.Recently, with the rapid development of multicore technologies, The optimization of MPI communication in multicore systems is strongly expected to be improved by combining their new characteristics with multicores. However, the existing optimizing techniques still remains at the technologies of process-MPI based communication which often incur performance issues such as large overhead, high memory visit, thus the cur-rent methods still have some limitations on further improving the communication per-formances. Towards addressing these issues of optimizing the performance of MPI communication on multicore systems, we concentrate on studying key optimization strategies from the views of threaded-MPI based communication techniques in this pa-per. As a result of our invesitigation, the following contributions have been achieved:(1) An effective threaded-MPI software technology, called MPI communication ac-celerator (MPIActor), is proposed for multicore systems. Compared with the traditional MPI implementation development methods to develop threaded-MPI, MPIActor with smaller development workload, more flexible usage performs better. Not only that, MPIActor can support all traditional process-based MPI softwares satisfying MPI-2 standards, and can inherit the performance advantages of inter-node communication supported by traditional MPI implementations. The experimental results of OSU_LATANCY benchmark on dual-way Nehalem-EP processor system show that the performance of intra-socket communication can be increased by 37% to 114% and the performance of inter-socket communication can be improved by 30% to 144% for MVAPICH2 1.4 supported by MPIActor in comparison with the pure MVAPICH2 1.4 when transferring 8KB to 2MB messages. At the same time, the experiments also show that the performance of intra-socket communication is increased by 48% to 106% and the performance of inter-socket communication is increased by 46% to 98% for Open MPI 1.5 supported by MPIActor compared to the pure Open MPI 1.5.(2) A novel hierarchical collective communication algorithm framework (MAH-CAF) and a group of effective threaded-MPI based intra-node collective communication algorithms are proposed. MAHCAF constructs hierarchical collective communication algorithms by using template design pattern. The intra-node and inter-node collective communication sub-processes (IntraCP and InterCP) of MAHCAF play extensible roles. IntraCP can not only be implemented by general independent algorithms regardless of multicore architecture but also be designed by the specific algorithms considering the characteristics of multicore architecture in multicore architecture drivers. The experi-ment results of Intel MPI benchmark show that MAHCAF integrated with general in-tra-node collective algorithms can remarkably improve the performance of MPI_Bcast, MPI_Allgather, MPI_Reduce and MPI_Allreduce compared with MVAPICH2 1.6,. In addition, the intra-node reduce algorithm for Nehalem architecture, called hierarchical segment reduce algorithm (HSRA), can greatly improve the performance of MPI_Reduce and MPI_Allreduce.(3) Towards reducing negative performance impact on MPI broadcast incurred by unbalanced processes arrival (UPA) patterns , a novel Competitive and Pipelined (CP) method based on MPIActor is proposed. CP method can regard the first arriving process as a leading process to execute inter-node collective communication by making better use of the advantages of running multiple processes in the intra-node of multicore sys-tem. By doing so, it can start the inter-node collective communication process as soon as possible and reduce the waiting cost. The experiment results of a micro benchmark show that the performance of broadcast algorithms enhanced by CP-method signifi-cantly outperforms the performance brought by other traditional algorithms. In addi-tion, the extensive experiments through running two real world applications also prove that CP method can greatly improve the performance of broadcast in real scenarios.(4) An efficient and effective Shared-memory Message Passing Interface (SMPI) on threaded-MPI is proposed for optimizing intra-node communication on multicore systems. Unlike copying the message from the source process to the destination process, SMPI-supported MPI processes can communicate with each other in manner of directly accessing the buffer of posted message on the same node. In particular, SMPI can be efficiently implemented by utilizing the existing pattern of MPIAcotor. The result of 4000 order square matrix multiplication computed by 64 processes on 8 nodes shows the performance of SMPI based cannon matrix multiplication algorithm can achieve a speedup of about 1.14 in contrast to MPI based algorithm.

Table of contents

Summary 11-13 Abstract 13-15 The first chapter 15-37 1.1 Background 15-23 < br /> 1.1.1 high-performance computing into the multicore era 15-18 1.1.2 MPI is still an important means to deal with multi-core systems parallel program development 18-20 1.1.3 multicore system on MPI communication performance optimization challenges facing 20-23 1.2 domestic and international research work 23-32 1.2.1 node peer-to-peer communication optimization related work 24-27 1.2.2 collective communication optimization work 27-31 1.2.3 threaded MPI 31 <br / > 1.2.4 MPI support software developments the 31-32 1.3 of this article the main content and innovation the research content 32-36 1.3.1 32-34 1.3.2 The main contributions the 34-36 1.4 paper tissue structures 36-37 the MPI Communication accelerator design 37-67 2.1 MPIActor overall structure the 37-44 the 2.1.1 MPIActor basic ideological 37-40 2.1.2 MPIActor, MPI thread support structure nbsp 40-44 2.2 MPIActor program working mechanism; 44-48 2.2.1 runtime mechanisms 45 2.2.2 compile-time mechanism 45-46 2.2.3 operating loading mechanism 46-48 2.3 MPI interface aggregation principle the 48-52 2.3.1 problem definitions 48-51 2.3.2 MPI interface analysis 51-52 2.4 point-to-point communication polymerization technology 52-56 2.4.1 communication request separation 52-53 2.4.2 inter-node communication request forwarding method the 53-55 2.4.3 MPI_ANY_SOURCE type, the processing of requests 55-56 2.5 communication domain and process group management interface polymerization technology the 56-60 2.5.1 Basic knowledge 56-58 2.5.2 process group structure interface polymerization 58-59 2.5.3 communication domain structure interface polymerization 59-60 2.6 based on lightweight single memory copy of the node point-to-point communication algorithm 60 - 62 2.6.1 communications infrastructure the 60-61 2.6.2 communication algorithm the 61-62 2.7 Experiments and results 62-65 < br /> 2.7.1 Experimental Method 62-63 2.7.2 Experimental results and analysis 63-65 2.8 Summary 65-67 Chapter optimized MPIActor-based set of communication 67-95 3.1 MPI collective communication interface Overview 68-71 3.2 MPIActor hierarchical collective communication algorithm framework are found; 71 the algorithm template -75 3.2.1 MPI_Allgather: an algorithm template example 71-73 3.2.2 graded collection communication the algorithm framework defined 73-75 3.3 Universal algorithm collective communication within a thread-based MPI node the 75-84 3.3.1 node broadcast algorithm and dispersed algorithms the 75-76 3.3.2 nodes collect reduction within 76-78 3.3.3 node scanning within 78-81 3.3.4 node 81-84 3.4 oriented Nehalem architecture the intra_reduce multistage reduction algorithm 84-87 3.4.1 algorithm basic idea 84-85 3.4.2 algorithm analysis 85-87 < br /> 3.5 Experiments and Results the 87-92 3.5.1 Experimental methods 87 3.5.2 broadcasting of performance studies (MPI_Bcast) 87-89 3.5.3 many-to-many broadcast (MPI_Allgather) performance 89-91 3.5.4 Reduction (MPI_Reduce) and full-reduction properties of (MPI_Allreduce) 91-92 < br /> 3.6 Summary 92-95 Chapter one for the non-equilibrium process reaches the the MPI broadcast mode performance optimization methods 95-111 4.1 Related work 4.2.2 Analysis 96 the 4.2 problem analysis and competition pipelining optimization design 96-101 4.2.1 performance model 96-98 98-99 4.2.3 contention-water method 99-101 4.3 contention-pipelined broadcast algorithm 101-104 4.4 experimental results 104-109 the 4.4.1 micro benchmark test (Micro, Benchmark House,) or 104-108 4.4.2 Application Testing 108-109 <br / > 4.5 Summary 109-111 Chapter a MPIActor-based shared memory message passing interface optimization techniques 111-123 5.1 the SMPI the basic thinking 112-113 5.2 SMPI interface definition 113-117 5.2.1 Conventions and data structures 114 5.2.2 point-to-point communication interfaces 114-115 5.2.3 collective communication interface to access 115-116 5.2.4 Control Interface 116-117 5.3 based the SMPI interfaces parallel programming rules 117-120 5.3.1 point-to-point communication 117-119 5.3.2 collective communication 119-120 5.4 instances with the experimental results of the application of algorithms nbsp 120-122 5.4.1 Test Case: the matrix multiplication cannon algorithm ; 120-121 5.4.2 Experimental results 121-122 5.6 Summary 122-123 Chapter 6 Conclusions and Prospects the 123-127 6.1 work summary 123-124 6.2 Job Outlook 124 - 127 Acknowledgements to References 127-129 the academic achievements nbsp 129-139 the author in the study period to obtain the identity of the first author; 139-141 < br /> Annex A of this article experimental platform 141-142 A.1 Introduction to \ 142

Related dissertations

  1. Software Design of HD Real-time Video Processing Based on Tilera Multicore Processor
    LiYiQing ·Zhejiang University ·2014 ·Master's thesis
  2. Research of RTEMS Embedded Operating System with Support for Muliticore Processor
    NiuYingZuo ·Harbin Engineering University ·2013 ·Master's thesis
  3. Multi-Core Programming for Dynamic Follow-Tree Index of Full Text Search Research
    ZhangXiang ·Guangxi University ·2013 ·Master's thesis
  4. Research on Verification of The Multi-core Processor Memory Systems
    LvZheng ·Northwestern University ·2013 ·Doctoral dissertation
  5. Optimization Techniques Research on Real-time Processing of Massive Network Streams
    SunXiaoZuo ·Institute of Computing Technology ·2008 ·Doctoral dissertation
  6. Research on Optimization for High Performance Hardware Transactional Memory in Multicore System
    FuZuo ·Harbin Institute of Technology ·2011 ·Doctoral dissertation
  7. Data Similarity Analysis and Optimization Technology for MPI Programs