配置fio

以混合读写测试为例。

操作步骤

  1. 新建dev.fio文件。

    cd /home
    vi dev.fio

  2. 写入如下内容。

    [global]
    ioengine=libaio
    direct=1
    numjobs=1
    thread
    bs=4k
    rw=randrw
    rwmixwrite=30
    rwmixread=70
    iodepth=128
    ramp_time=300
    runtime=300
    time_based
    group_reporting
    
    [job1]
    filename=/dev/vdb