tidb版本:v3.0.1
阿里云购买的机器,挂载SATA HDD本地盘,ansible安装的时候,tikv检测磁盘混合读写性能时,报如下错误:
我们tikv检测混合读写性能的命令是
fio -ioengine=psync -bs=32k -fdatasync=1 -thread -rw=randrw -percentage_random=100,0 -size=10G -filename=fio_randread_write_test.txt -name='fio mixed randread and sequential write test' -iodepth=4 -runtime=60 -numjobs=4 -group_reporting --output-format=json --output=fio_randread_write_test.json
我们去跟阿里云说他们的固态硬盘读写性能未能到达他们号称的性能值时,然后他们自己去测试了一遍发现没有问题,然后我们去看了下他们测试磁盘的脚本命令:
-
- 测试随机读IOPS,运行以下命令:
fio –direct=1 –iodepth=32 –rw=randread –ioengine=libaio –bs=4k –numjobs=4 –time_based=1 –runtime=1000 –group_reporting –filename=/dev/vdx
- 测试随机写IOPS,运行以下命令:
fio –direct=1 –iodepth=32 –rw=randwrite –ioengine=libaio –bs=4k –numjobs=4 –time_based=1 –runtime=1000 –group_reporting –filename=/dev/vdx
- NVMe SSD本地盘延迟性能测试
- 测试随机读延迟,运行以下命令:
fio –direct=1 –iodepth=1 –rw=randread –ioengine=libaio –bs=4k –numjobs=1 –time_based=1 –runtime=1000 –group_reporting –filename=/dev/vdx
- 测试随机写延迟,运行以下命令:
fio –direct=1 –iodepth=1 –rw=randwrite –ioengine=libaio –bs=4k –numjobs=1 –time_based=1 –runtime=1000 –group_reporting –filename=/dev/vdx
- 测试顺序读延迟,运行以下命令:
fio –direct=1 –iodepth=1 –rw=read –ioengine=libaio –bs=4k –numjobs=1 –time_based=1 –runtime=1000 –group_reporting –filename=/dev/vdx
- 测试顺序写延迟,运行以下命令:
fio –direct=1 –iodepth=1 –rw=write –ioengine=libaio –bs=4k –numjobs=1 –time_based=1 –runtime=100
发现阿里云官方的测试脚本和tidb安装过程中ansible检测tikv混合读写性能的脚本有很大差别,请问大佬买阿里云的固态硬盘参数有什么要求吗?