O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Let's benchmark single disk read performance:

  1. Drop caches:
        # echo 3 > /proc/sys/vm/drop_caches
  1. Use dd to read from the file, deleteme, which we created during the write test. We will read the deleteme file to /dev/null with iflag set to direct:
        # dd if=/var/lib/ceph/osd/ceph-0/deleteme of=/dev/null bs=10G         count=1 iflag=direct

Ideally, you should repeat step 1 and step 2 a few times and take the average value. In our case, the average value for read operations comes to be 133 MB/s, as shown in the following screenshot:

 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required