Skip to main content
QUICK REVIEW

[Paper Review] Ibdxnet: Leveraging InfiniBand in Highly Concurrent Java Applications

Stefan Nothaas, Kevin Beineke|arXiv (Cornell University)|Dec 5, 2018
Opportunistic and Delay-Tolerant NetworksComputer Science3 citations
TL;DR

Ibdxnet is a low-latency, high-throughput transport layer that enables Java applications to leverage InfiniBand's performance by integrating native C++ code via JNI into the DXNet messaging library. It achieves 10 million messages per second bi-directionally for small messages (<64 bytes) across multiple threads, outperforming FastMPJ by 4x and MVAPICH2 by 2x in message rate while maintaining scalable, lock-free concurrency.

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.

Motivation & Objective

  • Enable high-performance, low-latency messaging in Java applications using InfiniBand hardware.
  • Overcome the limitations of standard JVMs and existing libraries in accessing InfiniBand verbs efficiently.
  • Design a scalable, thread-aware transport layer that minimizes context switching and latency between Java and native code.
  • Support transparent integration with existing Java messaging frameworks like DXNet, enabling seamless migration from Ethernet to InfiniBand.
  • Achieve superior performance on small-message, high-concurrency workloads common in big data and real-time analytics.

Proposed method

  • Implement a native C++ subsystem using ibverbs to expose InfiniBand messaging verbs and RDMA capabilities.
  • Use JNI to create a lightweight, efficient interface between Java-based DXNet and the native Ibdxnet layer.
  • Design a scalable, lock-free architecture with dedicated send and receive threads and asynchronous queue pair management.
  • Introduce load-adaptive parking and SGEs (Scatter/Gather Elements) to optimize buffer usage and reduce context switching.
  • Extend DXNet’s outgoing ring buffer to support InfiniBand-specific data flow and connection scheduling.
  • Automate connection and QP (Queue Pair) management in the native layer to reduce application-level complexity.

Experimental results

Research questions

  • RQ1Can a Java-based messaging system achieve sub-microsecond latency and multi-million message-per-second throughput using InfiniBand?
  • RQ2How does a JNI-based native transport compare to MPI implementations in terms of message rate and latency for small, concurrent messages?
  • RQ3To what extent does a thread-aware, lock-free design improve scalability in high-concurrency, multi-node messaging workloads?
  • RQ4Can automatic connection and QP management be efficiently implemented in a high-performance, low-latency transport for Java?
  • RQ5Does the integration of InfiniBand into a Java messaging stack like DXNet provide measurable performance gains over traditional Ethernet or MPI-based solutions?

Key findings

  • DXNet with Ibdxnet achieves a bi-directional message rate of 10 million messages per second for small messages (<64 bytes) across multiple threads, surpassing FastMPJ by a factor of 4 and MVAPICH2 by a factor of 2.
  • The system scales efficiently in all-to-all communication across 8 nodes, reaching a total aggregated message rate of 43.4 million messages per second and a throughput saturation of 33.6 GB/s with only 2 KB message size.
  • Ibdxnet outperforms MVAPICH2 on small-message performance by up to 1.8 times in message rate, despite MVAPICH2 having lower latency in uni-directional benchmarks.
  • The native Ibdxnet subsystem reduces context switching overhead through shared memory buffers and optimized JNI data exchange, maintaining low latency even under high load.
  • The system demonstrates superior multi-threaded scalability compared to MVAPICH2, which suffers from global locking and cannot scale effectively with increased thread counts.
  • Ibdxnet enables transparent hardware abstraction: applications can switch between Ethernet and InfiniBand without code changes, provided the underlying hardware supports InfiniBand.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.