arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.03533cs.DC
收藏

共享内存感知的细粒度通信延迟敏感消息聚合

Shared Memory-Aware Latency-Sensitive Message Aggregation for Fine-Grained Communication

Kavitha Chandrasekar, Laxmikant Kale

AI总结:

本研究针对HPC中细粒度通信,提出共享内存感知的消息聚合方案,以降低消息开销和延迟,并通过代理应用验证其有效性。

摘要:

消息聚合通常用于降低高性能计算(HPC)应用中的通信成本。发送一条消息的开销顺序与每字节传输成本之间的差异,促使了针对诸如图算法和并行离散事件模拟(PDES)等若干不规则细粒度消息传递应用的消息聚合需求。虽然消息聚合在“全 MPI”模型中经常被使用,以合并映射到核心的进程之间的消息,但在进程内跨线程进行此类聚合(例如在 MPI+X 模型或 Charm++ SMP(共享内存并行)模式中)通常会被避免。进程内合并可能需要跨线程同步,并因争用而导致性能问题。然而,其结果是,不感知 SMP 的聚合机制可能无法充分利用 SMP 模式下应用程序可用的聚合机会。此外,虽然消息聚合的益处通常从减少开销(特别是每条消息的成本)的角度进行分析,我们也分析了有助于降低消息延迟(即从消息发送到接收的时间)的不同方案。消息延迟会影响若干应用程序,例如具有推测执行的 PDES,其中减少消息延迟可能导致更少的回滚。为了解决这些挑战,在我们的工作中,我们针对一系列代理应用程序,证明了共享内存感知的消息聚合方案在消息开销和延迟方面的有效性。

英文摘要:

Message aggregation is often used with a goal to reduce communication cost in HPC applications. The difference in the order of overhead of sending a message and cost of per byte transferred motivates the need for message aggregation, for several irregular fine-grained messaging applications like graph algorithms and parallel discrete event simulation (PDES). While message aggregation is frequently utilized in "MPI-everywhere" model, to coalesce messages between processes mapped to cores, such aggregation across threads in a process, say in MPI+X models or Charm++ SMP (Shared Memory Parallelism) mode, is often avoided. Within-process coalescing is likely to require synchronization across threads and lead to performance issues from contention. However, as a result, SMP-unaware aggregation mechanisms may not fully utilize aggregation opportunities available to applications in SMP mode. Additionally, while the benefit of message aggregation is often analyzed in terms of reducing the overhead, specifically the per message cost, we also analyze different schemes that can aid in reducing the message latency, ie. the time from when a message is sent to the time when it is received. Message latency can affect several applications like PDES with speculative execution where reducing message latency could result in fewer rollbacks. To address these challenges, in our work, we demonstrate the effectiveness of shared memory-aware message aggregation schemes for a range of proxy applications with respect to messaging overhead and latency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑