安装:
apt-get install fio
测试单盘顺序读:
fio -filename=/dev/nvme0n1 -direct=1 -iodepth 64 -iodepth_batch 1 -iodepth_batch_complete 16 -rw=read -ioenginne=libaio -bs=16k -size=10G -numjobs=1 -runtime=60 -group_reporting -time_based -ramp_time=60 -name=nvme0
测试单盘随机读:
fio -filename=/dev/nvme0n1 -direct=1 -iodepth 64 -iodepth_batch 1 -iodepth_batch_complete 16 -rw=randread -ioenginne=libaio -bs=16k -size=10G -numjobs=1 -runtime=60 -group_reporting -time_based -ramp_time=60 -name=nvme0
测试单盘顺序写:
fio -filename=/dev/nvme0n1 -direct=1 -iodepth 64 -iodepth_batch 1 -iodepth_batch_complete 16 -rw=write -ioenginne=libaio -bs=16k -size=10G -numjobs=1 -runtime=60 -group_reporting -time_based -ramp_time=60 -name=nvme0
测试整盘(raid)顺序读:
fio -filename=/dev/sda -direct=1 -iodepth 64 -iodepth_batch 1 -iodepth_batch_complete 16 -rw=read -ioenginne=libaio -bs=16k -size=10G -numjobs=1 -runtime=60 -group_reporting -time_based -ramp_time=60 -name=nvme0
测试整盘(raid)顺序写: