Coder Social home page Coder Social logo

rdma_ubench's Introduction

RDMA ubench

A multi-threaded microbenchmark to measure the maximum throughput of one-sided RDMA verbs (RDMA READ and RDMA WRITE) between a server node and a client node.

Build

Dependencies

  • rdma-core: RDMA library. We implement the benchmark with libibverbs.
  • libzmq: exchange queue pair info between the server and the client.
  • gflags: parse command-line flags.
  • spdlog: better logging.

Install these packages from your Linux distribution's package manager or compile libzmq with CMake to generate the CMake dependency file (except for rdma-core).

Compile

mkdir build && cd build
cmake ..
cmake --build .

The binary ubench will be available in build/ after the build completes.

Usage

Server:

./ubench --server [other options...]

Client:

./ubench [other options...]

The client will issue RDMA requests to the server and report the throughput (op/s).

Options

  • --zmq_ip: ZeroMQ server IP
  • --zmq_port: ZeroMQ server port
  • --ib_dev: RDMA device (e.g. mlx5_0)
  • --ib_port: RDMA device port (default to 1)
  • --server_threads: Number of server threads. Note that the server is basically idle after the connection has been established. Thus we only create the buffer for each server thread but do not actually launch the threads.
  • --client_threads: Number of client threads which issue one-sided RDMA verbs to access the server.
  • --msg_size: RDMA payload size.
  • --batch: Number of work requests to post to the RDMA device with ibv_post_send.
  • --read: Perform RDMA READ instead of RDMA WRITE. Run ubench without the flag performs RDMA WRITE.
  • --sec: Benchmark duration (seconds).

Default values for these flags can be found in ubench.cc.

rdma_ubench's People

Contributors

jim90247 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vegewong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.