MPI+Threads: runtime contention and remedies

Author:

Amer Abdelhalim1,Lu Huiwei2,Wei Yanjie3,Balaji Pavan2,Matsuoka Satoshi1

Affiliation:

1. Tokyo Institute of Technology, Japan

2. Argonne National Laboratory, USA

3. Shenzhen Institute of Advanced Technologies at Chinese Academy of Sciences, China

Abstract

Hybrid MPI+Threads programming has emerged as an alternative model to the “MPI everywhere” model to better handle the increasing core density in cluster nodes. While the MPI standard allows multithreaded concurrent communication, such flexibility comes with the cost of maintaining thread safety within the MPI implementation, typically implemented using critical sections. In contrast to previous works that studied the importance of critical-section granularity in MPI implementations, in this paper we investigate the implication of critical-section arbitration on communication performance. We first analyze the MPI runtime when multithreaded concurrent communication takes place on hierarchical memory systems. Our results indicate that the mutex-based approach that most MPI implementations use today can incur performance penalties due to unfair arbitration. We then present methods to mitigate these penalties with a first-come, first-served arbitration and a priority locking scheme that favors threads doing useful work. Through evaluations using several benchmarks and applications, we demonstrate up to 5-fold improvement in performance.

Funder

U.S. Department of Energy

Japan Society for the Promotion of Science

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference28 articles.

1. MPICH. URL www.mpich.org. MPICH. URL www.mpich.org.

2. OpenMP. URL openmp.org. OpenMP. URL openmp.org.

3. OSU microbenchmarks suite. URL mvapich.cse.ohio-state.edu/benchmarks. OSU microbenchmarks suite. URL mvapich.cse.ohio-state.edu/benchmarks.

4. Introducing the Graph 500 May 2010. Cray User’s Group (CUG). Introducing the Graph 500 May 2010. Cray User’s Group (CUG).

Cited by 11 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Designing and prototyping extensions to the Message Passing Interface in MPICH;The International Journal of High Performance Computing Applications;2024-08-19

2. Lessons Learned on MPI+Threads Communication;SC22: International Conference for High Performance Computing, Networking, Storage and Analysis;2022-11

3. MPIX Stream: An Explicit Solution to Hybrid MPI+X Programming;EuroMPI/USA'22: 29th European MPI Users' Group Meeting;2022-09-14

4. High-Performance PDES on Manycore Clusters;Proceedings of the 2021 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation;2021-05-21

5. How I learned to stop worrying about user-visible endpoints and love MPI;Proceedings of the 34th ACM International Conference on Supercomputing;2020-06-29

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3