I use the same PC and same NVMe SSDs do the raid performance test on different OS. The steps are as follows:
mdadm -C -v /dev/md0 -l0 -n4 /dev/nvme[0123]n1
mkfs.xfs /dev/md0
mount -o discard /dev/md0 /data
fio --bs=128k --ioengine=libaio --numjobs=1 --direct=1 -- buffered=0 \
--iodepth=128 --rw=write --norandommap --randrepeat=0 --stonewall \
--exitall_on_error --scramble_buffers=1 --group_reporting --do_verify=0 \
--name=test --size=50G --filename=/data/test.txt --ramp_time=0 \
--runtime=300 --time_based --output=128kseqw.log
On Centos8 the Bandwidth is 14GB/s , but on Centos7 the Bandwidth is only 7.5GB/s.
I don't know why there are have such a big gap?
How to test the centos7 nvme ssd mdadm raid performance ?