946426f7创建于 2022年3月31日历史提交
project : "fio"
maxiterations : 1000
startworkload : ""
stopworkload : ""
object :
 -
   name : "scheduler"
   info :
          desc : "The scheduler of disk."
          get : "cat /sys/block/sda/queue/scheduler |awk  -F '[][]' '{print $2}'"    #get the scheduler of the disk
          set : "echo $value > /sys/block/sda/queue/scheduler"                       #set the scheduler of the disk
          needrestart : "false"
          type : "discrete"
          options :
                  - "noop"
                  - "deadline"
                  - "cfq"
          dtype : "string"


 -
   name : "bs"
   info :
           desc : "Block size."
           get : "cat fio/fio-test.sh |grep ^BLOCKSIZE |awk -F '=' '{print $2}'"
           set : "sed -i 's/^BLOCKSIZE=.*/BLOCKSIZE=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "discrete"
           options :
                   - "4k"
                   - "128k"
                   - "256k"
                   - "512k"
                   - "1M"
           dtype : "string"
 -
   name : "numjobs"
   info :
           desc : "Number of jobs for the test."
           get : "cat fio/fio-test.sh |grep ^NUMJOBS |awk -F '=' '{print $2}'"
           set : "sed -i 's/^NUMJOBS=.*/NUMJOBS=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "continuous"
           scope :
                   - 1
                   - 16
           step : 1
           dtype : "int"
 -
   name : "size"
   info :
           desc : "Test file size."
           get : "cat fio/fio-test.sh |grep ^SIZE |awk -F '=' '{print $2}'"
           set : "sed -i 's/^SIZE=.*/SIZE=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "discrete"
           options :
                   - "10G"
                   - "100G"
                   - "300G"
           dtype : "string"
 -
   name : "direct"
   info :
           desc : "Whether use cache or not."
           get : "cat fio/fio-test.sh |grep ^DIRECT |awk -F '=' '{print $2}'"
           set : "sed -i 's/^DIRECT=.*/DIRECT=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "discrete"
           options :
                   - "0"
                   - "1"
           dtype : "string"
 -
   name : "rw"
   info :
           desc : "Test type."
           get : "cat fio/fio-test.sh |grep ^RW |awk -F '=' '{print $2}'"
           set : "sed -i 's/^RW=.*/RW=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "discrete"
           options :
                   - "read"
                   - "write"
                   - "rw"
                   - "randread"
                   - "randwrite"
                   - "randrw"
           dtype : "string"

 -
   name : "iodepth"
   info :
           desc : "Iodepth of the test."
           get : "cat fio/fio-test.sh |grep ^IODEPTH |awk -F '=' '{print $2}'"
           set : "sed -i 's/^IODEPTH=.*/IODEPTH=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "continuous"
           scope :
                   - 1
                   - 16
           step : 1
           dtype : "int"

 -
   name : "runtime"
   info :
           desc : "Time of the test."
           get : "cat fio/fio-test.sh |grep ^RUNTIME |awk -F '=' '{print $2}'"
           set : "sed -i 's/^RUNTIME=.*/RUNTIME=$value/g'  fio/fio-test.sh"
           needrestart : "false"
           type : "discrete"
           options :
                   - "30"
                   - "300"
           dtype : "string"