Edenmal

Sysadmin Garden of Eden

Ceph: rbd bench Commands

Table of Contents
  1. 1. Intro
  2. 2. Requisite - RBD image for running the Benchmarks
  3. 3. rbd bench
    1. 3.1. Flags
    2. 3.2. Benchmarks
      1. 3.2.1. Write Benchmark
      2. 3.2.2. Read Benchmark
    3. 3.3. Notes

Intro

The reference to these commands is from Sébastien Han Blog Post “Ceph: validate that the RBD cache is active” and the rbd man Page.
For more posts about Ceph, take a look at Sébastien Han Blog.

Requisite - RBD image for running the Benchmarks

To be able to run a rbd benchmark, you need to create an image.
The command to create an image for this would be:

$ RBD_IMAGE_NAME="bench1"
$ rbd create --size=10G $RBD_IMAGE_NAME

rbd bench

Flags

Takes normal rbd command flags like:

The following flags are for the benchmark configuration:

Benchmarks

Write Benchmark

For sequential write benchmark:

$ rbd -p replicapool bench $RBD_IMAGE_NAME --io-type write --io-size 8192 --io-threads 256 --io-total 10G --io-pattern seq

Read Benchmark

For sequential read benchmark:

$ rbd -p replicapool bench $RBD_IMAGE_NAME --io-type read --io-size 8192 --io-threads 256 --io-total 10G --io-pattern seq

Notes

Have Fun!