Ceph¶
Contents
Note
The subsequent commands are executed within the cephclient
container.
$ docker exec -it cephclient_cephclient_1 bash
dragon@e0e0987bd105:/$
RADOS¶
Preparations¶
$ ceph osd pool create testing 100 100
pool 'testing' created
Execution¶
RADOS¶
$ rados bench -p testing 10 write --no-cleanup
$ rados bench -p testing 10 seq
$ rados bench -p testing 10 rand
$ rados -p testing cleanup
RBD¶
$ rbd create image01 --size 1024 --pool testing
$ rbd bench-write image01 --pool=testing
$ rbd remove -p testing image01
fio¶
Create a file /tmp/testing.fio
with this content
[global]
ioengine=rbd
clientname=admin
pool=testing
rbdname=image01
rw=randwrite
bs=4k
[rbd_iodepth32]
iodepth=32
$ rbd create image01 --size 1024 --pool testing
$ fio /tmp/testing.fio
$ rbd remove -p testing image01
Cleanup¶
$ ceph osd pool delete testing testing --yes-i-really-really-mean-it
pool 'testing' removed
INSTANCE¶
fio-plot¶
When using bench-fio from https://github.com/louwrentius/fio-plot from within an openstack instance
$ ./bench_fio --target /testfile --type file --mode randread randwrite --output FIO_OUT --size 6g --block-size 1k 2k 4k 8k 16k 32k 64k 128k
be aware that this scenario takes several hours (approx. 12) to complete