性能学习-fio 磁盘读写性能极限

    技术2023-05-23  100

    1、首先fio安装

    yum list fio

    yum install fio.x86_64(已上一个命令的结果为准)

    2、执行fio命令

    -fio -filename =/data/test -direct=1 -iodepth 1 -thread -rw=randrw -ioengine=psync -bs=16K -size 2G -numjobs=10 -runtime=30 -group_reporting -name=mytest

    执行命令开始测试:

    3、执行结果分析

    如果iops结果值越大 说明磁盘读写能力越高

    Processed: 0.013, SQL: 9