Let's benchmark multiple disk read 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=$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: