fio测试nvme性能

#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

随机读

#fio -filename=/dev/nvme0n1 -direct=1 -iodepth=4 -thread -rw=randread -ioengine=libaio -bs=4k  -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10

result:

bw=1816.2MB/s, iops=464930, avg=849.67

顺序读

#fio -filename=/dev/nvme0n1 -direct=1 -iodepth=4 -thread -rw=read -ioengine=libaio -bs=4k  -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10

result:

bw=1745.5MB/s, iops=446828, avg=887.56

混合随机读写:

#fio -filename=/dev/nvme0n1 -direct=1 -iodepth=4 -thread -rw=randrw -ioengine=libaio -bs=4k  -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10

result

bw=499805KB/s, iops=124951, avg=1796.13

sda

随机写

#fio -filename=/dev/sda -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=148181KB/s, iops=37045, avg=8948.92

顺序写

#fio -filename=/dev/sda -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=109418KB/s, iops=27354, avg=14595.72

随机读

#fio -filename=/dev/sda -direct=1 -iodepth=4 -thread -rw=randread -ioengine=libaio -bs=4k  -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10

result:

 bw=164057KB/s, iops=41014, avg=8070.85

顺序读

#fio -filename=/dev/sda -direct=1 -iodepth=4 -thread -rw=read -ioengine=libaio -bs=4k  -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10

result:

bw=244719KB/s, iops=61179, avg=6526.39

混合随机读写:

#fio -filename=/dev/sda -direct=1 -iodepth=4 -thread -rw=randrw -ioengine=libaio -bs=4k  -size=2G -numjobs=100 -name="EBS 4K randwrite test" -group_reporting -runtime=10
bw=65313KB/s, iops=16328, avg=12832.12
posted @ 2019-03-18 10:24  苏小北1024  阅读(3867)  评论(0编辑  收藏  举报