Let's benchmark multiple disk write performance:
- 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
- Drop caches:
# echo 3 > /proc/sys/vm/drop_caches
- 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=/dev/zero
of=$i/deleteme bs=10G count=1 oflag=direct &) ; done
To get the aggregated disk write performance, take the average of all the write speeds. In my case, the average comes out to be 127 MB/s: