#cat /sys/block/nvme0n1/queue/scheduler
none
#cat /sys/block/sda/queue/scheduler
noop deadline [cfq]
* sda: SSD
* nvme
nvme
nvme
随机写
#fio -filename=/dev/nvme0n1 -direct=1 -iodepth=4 -thread -rw=randwrite -ioengine=libaio -bs=4k -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10
result:
bw=1071.8MB/s, iops=274369, avg=1450.82
顺序写
#fio -filename=/dev/nvme0n1 -direct=1 -iodepth=4 -thread -rw=write -ioengine=libaio -bs=4k -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10
result:
bw=1108.3MB/s, iops=283721, avg=1402.61</