Benchmark Ceph File System (CephFS) performance with the FIO tool.
Before you begin, make sure that you have the following prerequisites in place:
- A running IBM Storage Ceph cluster.
- Root-level access to the node.
- FIO tool is installed on the nodes.
- Block Device or the Ceph File System mounted on the node.
About this task
You can use the FIO tool to benchmark Ceph File System (CephFS) performance. This tool can also
be used to benchmark Ceph Block Device.
- Navigate to the node or the application where the Block Device or the CephFS is
mounted.
[root@host01 ~]# cd /mnt/ceph-block-device
[root@host01 ~]# cd /mnt/ceph-file-system
- Run FIO command. Start the
bs value from 4k and repeat in power of 2
increments (4k, 8k, 16k, 32k ... 128k... 512k, 1 m, 2 m, 4 m) and with different
iodepth settings. Also run tests at your expected workload operation
size.For example, 4 K tests with different
iodepth
values:
fio --name=randwrite --rw=randwrite --direct=1 --ioengine=libaio --bs=4k --iodepth=32 --size=5G --runtime=60 --group_reporting=1
For
example, 8 K tests with different
iodepth
values:
fio --name=randwrite --rw=randwrite --direct=1 --ioengine=libaio --bs=8k --iodepth=32 --size=5G --runtime=60 --group_reporting=1
Note: For more information on the usage of fio command, see the
fio man page.