ceph压测

ceph测试工具fio安装

wget http://brick.kernel.dk/snaps/fio-2.0.7.tar.gz

yum install libaio-devel

yum install zlib-devel

tar -zxvf fio-2.0.7.tar.gz

cd fio-2.0.7

make

make install

生成测试用的文件

dd if=/dev/zero of=/data/test bs=4k count=524288

ceph性能测试

4k随机读
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=randread -ioengine=libaio -bs=4k -size=50G -numjobs=10 -runtime=300 -group_reporting -name=mytest

4k顺序读
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=read -ioengine=libaio -bs=4k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest

4k随机写
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=randwrite -ioengine=libaio -bs=4k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest_4k_10G_randwrite 

4k顺序写
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=write -ioengine=libaio -bs=4k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest 

4k混合读写
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=randrw -rwmixread=70 -ioengine=libaio -bs=4k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest -ioscheduler=noop 
64k随机读
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=randread -ioengine=libaio -bs=64k -size=50G -numjobs=10 -runtime=300 -group_reporting -name=mytest

64k顺序读
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=read -ioengine=libaio -bs=64k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest

64k随机写
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=randwrite -ioengine=libaio -bs=64k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest_4k_10G_randwrite 


64k顺序写
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=write -ioengine=libaio -bs=64k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest 

64k混合读写
fio -filename=/data/test -direct=1 -iodepth 64 -thread -rw=randrw -rwmixread=70 -ioengine=libaio -bs=64k -size=50G -numjobs=30 -runtime=300 -group_reporting -name=mytest -ioscheduler=noop 
posted @ 2022-04-15 20:58  彬彬l  阅读(91)  评论(0编辑  收藏  举报