如何建设高大上的网站,wordpress在线考试,网站建设完成后交付方式,网站建设方案选公司有时候发现访问磁盘上文件很慢,但是不知道到底是不是硬盘的问题,此时可以使用该工具进行检测以方便排查问题
一、下载
https://github.com/axboe/fio/releases
注:(1)官网地址无法下载(https://bsdio.com/fio/、https://brick.kernel.dk/snaps/)
二、安装
1、Windo…有时候发现访问磁盘上文件很慢,但是不知道到底是不是硬盘的问题,此时可以使用该工具进行检测以方便排查问题
一、下载
https://github.com/axboe/fio/releases
注:(1)官网地址无法下载(https://bsdio.com/fio/、https://brick.kernel.dk/snaps/)
二、安装
1、Windows
安装fio-3.38-x64.msi,一直下一步即可
2、Linux
(1)在线安装
yum install fio -y
(2)离线安装
tar -xzvf fio-3.38.tar.gz -C /usr/local/
cd /usr/local/fio-3.38#进入fio解压包
chmod +x * #打开权限
./configure #预编译
make -j 4 #编译,-j 4表示开启4个内核进行并行编译
make install
三、检测是否安装正常
fio –v
检测性能假设:检测Z盘性能
1、随机读IOPS "fio.exe"-name=Fio -numjobs=2 -iodepth=128 -direct=1 -ioengine=windowsaio -sync=1 -rw=randread -bs=4K -size=1G -time_based -runtime=60 -group_reporting -thread -directory=Z\:\ 2、随机写IOPS "fio.exe"-name=Fio -numjobs=2-iodepth=128-direct=1-ioengine=windowsaio -sync=1-rw=randwrite -bs=4K -size=1G -time_based -runtime=60-group_reporting -thread -directory=Z\:\ 3、随机读吞吐 "fio.exe"-name=Fio -numjobs=2-iodepth=128-direct=1-ioengine=windowsaio -sync=1-rw=randread -bs=1M -size=1G -time_based -runtime=