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 multiple disk read performance:

  1. Get the total number of disks in use with the Ceph OSD; in my case, it's three disks:

        # mount | grep -i osd | wc -l
  1. Drop caches:
        # echo 3 > /proc/sys/vm/drop_caches
  1. The following command will execute the dd command on all the Ceph OSD disks:
        # for i in `mount | grep osd | awk '{print $3}'`;          do (dd if=$i/deleteme         of=/dev/null bs=10G count=1 iflag=direct &); done 

To get the aggregated disk read performance, take the average of all the read speeds. In my case, the average comes out to be 137 MB/s:

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