将fio的包上传到服务器上,默认我已经放在了tidb的家目录上,/home/tidb/
fio工具使用方法:
[root@tidb01 ~]# unzip fio_test.zip [root@tidb01 ~]# cd fio_test/ [root@tidb01 ~/fio_test]# chmod +x fio* parse_fio_output.py [root@tidb01 ~/fio_test]# ls -l total 4156 -rwxr-xr-x 1 root root 4241936 Aug 10 20:37 fio -rwxr-xr-x 1 root root 1620 Aug 10 20:37 fio_auto_run.sh -rwxr-xr-x 1 root root 3271 Aug 10 20:37 parse_fio_output.py -rw-r--r-- 1 root root 86 Oct 14 11:37 readme.txt
测试对应磁盘的fio,首先看对应的操盘挂载到了什么目录下。
比如,/dev/sdb磁盘挂载在/data
测试命令为:
[root@tidb01 ~/fio_test]# sh fio_auto_run.sh /data
等待测试结果,对比tidb对磁盘读写的阈值。