Skip to main content
QUICK REVIEW

[论文解读] Ibdxnet: Leveraging InfiniBand in Highly Concurrent Java Applications

Stefan Nothaas, Kevin Beineke|arXiv (Cornell University)|Dec 5, 2018
Opportunistic and Delay-Tolerant NetworksComputer Science被引用 3
一句话总结

Ibdxnet 是一种低延迟、高吞吐量的传输层,通过 JNI 将本机 C++ 代码集成到 DXNet 消息库中,使 Java 应用程序能够利用 InfiniBand 的性能。它在多个线程上实现了每秒 1000 万条消息的双向传输速率(小消息 <64 字节),消息速率比 FastMPJ 快 4 倍,比 MVAPICH2 快 2 倍,同时保持可扩展的无锁并发性能。

ABSTRACT

In this report, we describe the design and implementation of Ibdxnet, a low-latency and high-throughput transport providing the benefits of InfiniBand networks to Java applications. Ibdxnet is part of the Java-based DXNet library, a highly concurrent and simple to use messaging stack with transparent serialization of messaging objects and focus on very small messages (&lt; 64 bytes). Ibdxnet implements the transport interface of DXNet in Java and a custom C++ library in native space using JNI. Several optimizations in both spaces minimize context switching overhead between Java and C++ and are not burdening message latency or throughput. Communication is implemented using the messaging verbs of the ibverbs library complemented by an automatic connection management in the native library. We compared DXNet with the Ibdxnet transport to the MPI implementations FastMPJ and MVAPICH2. For small messages up to 64 bytes using multiple threads, DXNet with the Ibdxnet transport achieves a bi-directional message rate of 10 million messages per second and surpasses FastMPJ by a factor of 4 and MVAPICH by a factor of 2. Furthermore, DXNet scales well on a high load all-to-all communication with up to 8 nodes achieving a total aggregated message rate of 43.4 million messages per second for small messages and a throughput saturation of 33.6 GB/s with only 2 kb message size.

研究动机与目标

  • 使用 InfiniBand 硬件在 Java 应用程序中实现高性能、低延迟的消息传输。
  • 克服标准 JVM 和现有库在高效访问 InfiniBand verbs 方面的局限性。
  • 设计一种可扩展的、线程感知的传输层,最大限度减少 Java 与本机代码之间的上下文切换和延迟。
  • 支持与现有 Java 消息框架(如 DXNet)的透明集成,实现从以太网到 InfiniBand 的无缝迁移。
  • 在大数据和实时分析中常见的小消息、高并发工作负载中实现卓越性能。

提出的方法

  • 使用 ibverbs 实现本机 C++ 子系统,暴露 InfiniBand 消息传递 verbs 和 RDMA 能力。
  • 使用 JNI 在基于 Java 的 DXNet 和本机 Ibdxnet 层之间创建轻量、高效的接口。
  • 设计一种可扩展的无锁架构,配备专用的发送和接收线程以及异步队列对(QP)管理。
  • 引入负载自适应停车机制和 SGE(分散/聚集元素),以优化缓冲区使用并减少上下文切换。
  • 扩展 DXNet 的出站环形缓冲区,以支持 InfiniBand 特定的数据流和连接调度。
  • 在本机层自动管理连接和 QP(队列对),以降低应用层的复杂性。

实验结果

研究问题

  • RQ1基于 Java 的消息系统能否在使用 InfiniBand 时实现亚微秒级延迟和数百万条消息每秒的吞吐量?
  • RQ2与 MPI 实现相比,基于 JNI 的本机传输在小消息、并发消息场景下的消息速率和延迟表现如何?
  • RQ3在高并发、多节点消息传输工作负载中,线程感知的无锁设计在多大程度上提升了可扩展性?
  • RQ4能否在高性能、低延迟的 Java 传输中高效实现连接和 QP 的自动管理?
  • RQ5将 InfiniBand 集成到 DXNet 等 Java 消息栈中,是否能为传统以太网或基于 MPI 的解决方案带来可测量的性能提升?

主要发现

  • DXNet 搭配 Ibdxnet 在多个线程上实现了每秒 1000 万条消息的双向消息速率(小消息 <64 字节),比 FastMPJ 快 4 倍,比 MVAPICH2 快 2 倍。
  • 系统在 8 个节点的全对全通信中表现出高效可扩展性,总聚合消息速率达每秒 4340 万条,吞吐量饱和度达 33.6 GB/s,仅需 2 KB 消息大小。
  • 尽管 MVAPICH2 在单向基准测试中延迟更低,Ibdxnet 在小消息性能上仍比 MVAPICH2 快最多 1.8 倍的消息速率。
  • 本机 Ibdxnet 子系统通过共享内存缓冲区和优化的 JNI 数据交换,减少了上下文切换开销,在高负载下仍能保持低延迟。
  • 与 MVAPICH2 相比,Ibdxnet 在多线程可扩展性方面表现更优,后者因全局锁机制无法有效扩展线程数量。
  • Ibdxnet 实现了透明的硬件抽象:只要底层硬件支持 InfiniBand,应用程序即可在不修改代码的情况下在以太网和 InfiniBand 之间无缝切换。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。