All articles
  • Infrastructure solutions

RDMA over Converged Ethernet

5 minute read

If you are interested in a real-world deployment of RDMA over Converged Ethernet (RoCE), with an emphasis on significantly faster transfer times and better use of cluster server resources at a time of extreme growth in data volumes, you are in the right place. In this technical article we look at using RoCE together with an IBM Storage Scale cluster.

Oldřich Štefek

Summary

  • RDMA gives direct memory access in communication between servers in a cluster without involving the operating system, with high throughput and very low latencies.
  • The RoCE variant brings RDMA over Ethernet, so the cluster needs no specific InfiniBand hardware and can use existing Ethernet hardware.
  • RoCE for IBM Storage Scale has to be planned for already when the cluster is designed, choosing Ethernet switches with RoCE v2 support, which are then quick to configure.

IBM has offered a robust, highly scalable parallel file system called IBM General Parallel File System (GPFS) for many years, and it belongs to the broader product portfolio known as IBM Storage Scale. IBM Storage Scale is software-defined file and object storage whose data is stored in the GPFS filesystem. Today I would like to focus on network technologies that can fundamentally speed up network communication, guarantee low latencies and, last but not least, save a significant amount of the hardware resources of the servers on which the GPFS filesystem runs, whether in the HPC world of high-performance clusters or in an ordinary cluster. This is a specific use of IBM GPFS in combination with the "RDMA over Converged Ethernet" (RoCE) technology.

RDMA technology

"Remote Direct Memory Access" (RDMA) is generally characterised by direct memory access in communication between servers within the same parallel cluster, without involving the operating system. The technology lets a network adapter transfer data directly from the adapter into application memory, or from application memory straight to the adapter, which removes the need to copy data between application memory and the operating system's data buffers. With the right hardware, application communication can reach a throughput of hundreds of gigabits per second, very low latencies and significant savings of processor cycles and operating system buffer memory on the cluster nodes.

One way to implement RDMA communication is hardware based on the InfiniBand standard (switches, adapters, cabling, drivers). Besides a number of advantages (high throughput, CPU offloading, low latency, QoS and so on), this technology also has its pitfalls, and one of them, at least from my point of view, is the need to run two separate network worlds. Alongside the InfiniBand environment, the vast majority of today's data centres cannot do without Ethernet. In the HPC world of large computing clusters, running both worlds in parallel is not much of a constraint. In smaller environments, running InfiniBand and Ethernet side by side can be costly and demanding, not only in investment and operating costs but also in securing and maintaining the technical know-how.

RDMA over Ethernet

For some time now there has been a variant of RDMA that can run over the Ethernet protocol without specific InfiniBand hardware. This technology is called RoCE (RDMA over Converged Ethernet) and is offered, for example, by NVIDIA, which some time ago bought one of the leaders in this area, Mellanox. An undeniable advantage of this variant of RDMA is that when building a cluster you can choose or reuse existing Ethernet hardware. Today RoCE v2 has become the standard: a routable protocol that can run over UDP/IPv4 or UDP/IPv6 within what is called an Ethernet fabric, also known as "converged ethernet". The aim is to ensure lossless traffic within the Ethernet fabric using various mechanisms (ECN marking, CNP frames and so on). It is always necessary to verify that the components above really do support RoCE, including its version.

Designing a cluster with RoCE

Now that we know the general principle on which RoCE works, we can focus on using this protocol with an IBM GPFS cluster. We have to think about using RoCE when the architecture of the future cluster is being designed. If we decide to use RoCE, we need to choose suitable Ethernet switches with RoCE v2 support, which, given the importance of the cluster, should be deployed in the topology in high availability. It is also important to verify compatibility with the other Ethernet elements in the data centre and with the hardware, that is the network adapters, of the servers for which we plan to use RoCE, including the version and support on the part of the operating system and drivers.

Configuring RoCE

The first step is to configure the Ethernet switch (in our case an NVIDIA Ethernet switch running the Onyx 3.9 operating system). Besides the usual configuration parameters of the Ethernet interfaces concerned in switchport mode, the appropriate VLAN ID of the port is set.

Configuring RoCE on the LAN switch is quick: full RoCE v2 support can be enabled with a single command, followed by verification of the configuration.

Output of the roce lossless and show roce commands on the switch: RoCE lossless mode, PFC enabled, and the ECN and buffer settings for RoCE

RoCE support at the level of the Storage Scale cluster can be configured with the commands 'mmchconfig verbsPorts="mlx5_X mlx5_Y', 'mmchconfig verbsRdmaSend=yes' and 'mmchconfig verbsRdma=enable'.

Output of the mmdiag command on a GPFS cluster node: two network adapters and RDMA connections to the other nodes through the devices mlx5_0 and mlx5_1
Verifying that RoCE is used in the communication between the nodes in the cluster

IBM Redbooks

For those interested in more technical detail, further online materials are available from IBM, the creator of the software, for example:

IBM Spectrum Scale and IBM Elastic Storage System Network Guide (opens another website)

Highly Efficient Data Access with RoCE on IBM Elastic Storage Systems and IBM Spectrum Scale (opens another website)

Datera works very intensively with the IBM Storage Scale parallel cluster and related network technologies. It has a number of advanced, successful deployments behind it, many years of implementation and operations experience, and a team of specialists to match.

In the next article I will focus on a newer technology within the IBM GPFS cluster, "Multi-Rail over TCP" (MROT) in combination with RoCE. This technology can eliminate some less than optimal configuration requirements of network adapters at the level of the operating system and the GPFS cluster, and can increase the throughput of an already very powerful RoCE configuration.

Get in touch

A few sentences about what you are working on will help us prepare.

We describe how we handle personal data in our privacy policy.

You can also call us on +420 228 227 418 or email us at info@datera.cz.