昊鼎王五:如何centos7下快速安装fio,实现磁盘的压力测试和验证?

版权声明:感谢您阅读我的文章,转载注明出处哦~~ https://blog.csdn.net/haoding205/article/details/81985323

昊鼎王五:如何centos7下快速安装fio,实现磁盘的压力测试和验证?

背景:

FIO是测试IOPS的非常好的工具,用来对硬件进行压力测试和验证,支持13种不同的I/O引擎,包括:sync,mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio 等等

1.安装:

yum install fio -y

2.使用:

2.1随机读的模式:

fio -filename=test.file -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=16k -size=10G -numjobs=10 -runtime=60 -group_reporting -name=test

2.2随机写的模式:

fio -filename=test.file -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=16k -size=10G -numjobs=10 -runtime=60 -group_reporting -name=test

3.知识拓展:

FIO分顺序读,随机读,顺序写,随机写,混合随机读写模式。
其他参数请输入命令:

fio -h

好了,聪明如你,知道了centos7下快速安装fio并使用,是不是很欢喜 ^_^

还有其他问题的可以在评论区留言或者扫码加博主获取资源或者提问。
这里写图片描述

猜你喜欢

转载自blog.csdn.net/haoding205/article/details/81985323