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 write performance:

  1. Drop caches:
        # echo 3 > /proc/sys/vm/drop_caches
  1. Use dd to write a file named deleteme of the size 10G, filled with zeros /dev/zero as the input file to the directory where Ceph OSD is mounted, that is, /var/lib/ceph/osd/ceph-0/:
        # dd if=/dev/zero of=/var/lib/ceph/osd/ceph-0/deleteme           bs=10G count=1          oflag=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 write operations comes to be 121 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