fio-常用命令
-
最简单的fio命令:fio --name=test --filename=/dev/nvme0n1
- 实际为"4k单job顺序读全盘,队列深度1,job数量1",大部分参数都有默认值
- 顺序填盘:fio --output-format=normal -ioengine=libaio -randrepeat=0 -norandommap -thread -stonewall -group_reporting -loops=2 -random_generator=tausworthe64 -filename=/dev/${disk} -direct=1 -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -name=test -rw=write -bs=128k -numjobs=1 -iodepth=512 -size=100% -offset=0
- 128k顺序写带宽测试:fio --output-format=normal -ioengine=libaio -randrepeat=0 -norandommap -thread -stonewall -group_reporting -runtime=3600 -time_based -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -filename=/dev/${disk} -direct=1 -name=test -rw=write -bs=128k -numjobs=1 -iodepth=512 -size=100% -offset=0
- 128k顺序读带宽测试:fio --output-format=normal -ioengine=libaio -randrepeat=0 -norandommap -thread -stonewall -group_reporting -runtime=1800 -time_based -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -filename=/dev/${disk} -direct=1 -name=test -rw=read -bs=128k -numjobs=1 -iodepth=512 -size=100% -offset=0
-
随机填盘:fio --output-format=normal -ioengine=libaio -randrepeat=0 -norandommap -thread -stonewall -group_reporting -loops=2 -filename=/dev/${disk} -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -direct=1 -name=test -rw=randwrite -bs=4k -numjobs=2 -iodepth=128 -size=100% -offset=0
-
4k随机写测试:fio --output-format=normal -ioengine=libaio -randrepeat=0 -norandommap -thread -stonewall -group_reporting -runtime=3600 -time_based -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -filename=/dev/${disk} -direct=1 -name=test -rw=randwrite -bs=4k -numjobs=8 -iodepth=64 -size=100% -offset=0
- 4k随机读测试:fio --output-format=normal -ioengine=libaio -randrepeat=0 -norandommap -thread -stonewall -group_reporting -runtime=1800 -time_based -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -filename=/dev/${disk} -direct=1 -name=test -rw=randread -bs=4k -numjobs=8 -iodepth=128 -size=100% -offset=0
-
4k随机读时延测试:fio --output-format=normal -ioengine=sync -randrepeat=0 -norandommap -thread -stonewall -group_reporting -runtime=600 -time_based -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -filename=/dev/${disk} -direct=1 -name=test -rw=randread -bs=4k -numjobs=1 -iodepth=1 -size=100% -offset=0
- 4k随机写时延测试:fio --output-format=normal -ioengine=sync -randrepeat=0 -norandommap -thread -stonewall -group_reporting -runtime=600 -time_based -percentile_list=99:99.9:99.99:99.999:99.9999:99.99999:99.999999 -random_generator=tausworthe64 -filename=/dev/nvme0n1 -direct=1 -name=test -rw=randwrite -bs=4k -numjobs=1 -iodepth=1 -size=100% -offset=0



本文来自博客园,作者:Fēngwèi,转载请注明原文链接:https://www.cnblogs.com/fengwei-blogs/p/18832235

浙公网安备 33010602011771号