fio测试freenas共享的iscsi磁盘性能

4k随机读iops:

fio -ioengine=libaio -bs=4k -direct=1 -thread -rw=randread -filename=/dev/sdb -iodepth=32  -name=qatest -ramp_time=300 -runtime=100 -group_reporting

4k随机写iops:

fio -ioengine=libaio -bs=4k -direct=1 -thread -rw=randwrite -filename=/dev/sdb -iodepth=32 -name=qatest -ramp_time=300 -runtime=100 -group_reporting

iops需要关注lat延迟指标。

512k顺序读带宽:

fio -ioengine=libaio -bs=512k -direct=1 -thread -rw=read -filename=/dev/sdb -iodepth=32 -name=qatest -runtime=100 -group_reporting

512k顺序写带宽:

fio -ioengine=libaio -bs=512k -direct=1 -thread -rw=write -filename=/dev/sdb -iodepth=32 -name=qatest -runtime=100 -group_reporting

原文地址:https://www.cnblogs.com/zjd2626/p/7284524.html