Skip to content

RDMA-examples: A repository of practical code examples showcasing the fundamental concepts and usage of RDMA (Remote Direct Memory Access) technology.

License

Notifications You must be signed in to change notification settings

PKUcoldkeyboard/RDMA-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDMA-examples

RDMA-examples is a repository of practical code examples showcasing the fundamental concepts and usage of RDMA (Remote Direct Memory Access) technology.

Server Workflow

  • Initialize RDMA resources.
  • Wait for client connection.
  • Allocate and pin server buffer.
  • Accept client connection.
  • Send information about the local server buffer to the client.
  • Wait for disconnection.

Client Workflow

  • Initialize RDMA resources.
  • Connect to the server.
  • Exchange information about the server buffer by sending/receiving.
  • Perform RDMA write from the local buffer to the server buffer.
  • Perform RDMA read to read the content of the server buffer into a second local buffer.
  • Compare the content of the first and second local buffers for matching.
  • Disconnect.

Usage

  • To start the server, use the following command:
bin/server -a <host> -p <port>
  • To start the client, use the following command:
bin/client -a <host> -p <port> -s <message>

Replace with the desired host address and with the desired port number. For the client, is the message to be sent to the server. if and are not set, the program will use default values.

Please note that RDMA-examples assumes that RDMA resources are properly set up and configured on the system.

About

RDMA-examples: A repository of practical code examples showcasing the fundamental concepts and usage of RDMA (Remote Direct Memory Access) technology.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published