JonMagon / KDiskMark

A simple open-source disk benchmark tool for Linux distros
GNU General Public License v3.0
1.04k stars 43 forks source link

What fio commands are being used? #130

Open ZaxLofful opened 11 months ago

ZaxLofful commented 11 months ago

There isn't a discussion section on this repo, so I just had to ask in a issue.

Wanted to know what command is being used for these tests?

I am trying to re0plciate the same test at the CLI for testing ZFS pools, but cannot get anywhere near the same speeds (even on the same host as with your product) and I am not sure what I am missing...

igorpupkinable commented 11 months ago

Can https://github.com/JonMagon/KDiskMark/issues/119 help? or this?

igorpupkinable commented 11 months ago

There are two fio calls in this program. Here to prepare the file and here to run the test.

igorpupkinable commented 11 months ago

Basically it calls the following with default settings:

fio
  --output-format=json
  --create_only=1
  --filename=/location/to/test/KDM_20230922093345.txt
  --size=1024m
  --zero_buffers=0
  --name=prepare

fio
  --output-format=json
  --ioengine=libaio
  --randrepeat=0
  --refill_buffers
  --end_fsync=1
  --direct=1
  --rwmixread=70
  --filename=/location/to/test/KDM_20230922093345.txt (matches filename option in the first command)
  --name=read/write/rw/randread/randwrite/randrw (value depends on the specific test)
  --size=1024m (matches size option in the first command)
  --zero_buffers=0
  --bs=1m/4k (value depends on the test, but generally block size is 1MB for sequential test and 4KB for random test)
  --runtime=5
  --rw=read/write/rw/randread/randwrite/randrw (matches name option)
  --iodepth=8/1/32/1 (value depends on the specific test)
  --numjobs=1