Administrator
发布于 2024-07-05 / 2 阅读
0
0

fio常用测试

# 随机读时延
fio -bs=4k -ioengine=libaio -iodepth=1 -direct=1 -rw=randread -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-randread-lat --size=10G -filename=test

# 随机写时延
fio -bs=4k -ioengine=libaio -iodepth=1 -direct=1 -rw=randwrite -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-randwrite-lat --size=10G -filename=test

# 随机混合读写时延性能
fio --bs=4k --ioengine=libaio --iodepth=1 --direct=1 --rw=randrw --time_based --runtime=60 --refill_buffers --norandommap --randrepeat=0 --group_reporting --name=fio-read --size=1G --filename=test

# 顺序读吞吐带宽
fio -bs=128k -ioengine=libaio -iodepth=32 -direct=1 -rw=read -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-read-throughput --size=2G -filename=test

# 顺序写吞吐带宽
fio -bs=128k -ioengine=libaio -iodepth=32 -direct=1 -rw=write -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput --size=2G -filename=test

# 顺序读吞吐性能
fio --bs=128k --ioengine=libaio --iodepth=32 --direct=1 --rw=read --time_based --runtime=60 --refill_buffers --norandommap --randrepeat=0 --group_reporting --name=fio-rw --size=2G --filename=test

# 随机读 IOPS
fio -bs=4k -ioengine=libaio -iodepth=32 -direct=1 -rw=randread -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-randread-iops --size=10G -filename=test

# 随机写 IOPS
fio -bs=4k -ioengine=libaio -iodepth=32 -direct=1 -rw=randwrite -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-randwrite-iops --size=10G -filename=test

# 随机读写IOPS
fio -bs=4k -ioengine=libaio -iodepth=32 -direct=1 -rw=randrw -time_based -runtime=60  -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-randrw-iops --size=10G -filename=test


评论