fio-test

Test block device I/O operation performance by using fio tool.

What It Tests

  • Block Device Sequential Reading Performance: Sequential read times per second

  • Block Device Random Reading Performance: Random read times per second

  • Block Device Sequential writing Performance: Sequential write times per second

  • Block Device Random Writing Performance: Random write times per second

  • Block Device Sequential Reading/Writing Performance: Sequential read/write times per second

  • Block Device Random Reading/Writing Performance: Random read/write times per second

Preconditions

  • Block device must be present and functional

  • System requires root privileges

  • fio package should be available

Test Parameters

Parameter

Default

Description

PARTITION

""

Specify partition that used for test

IOENGINE

"sync"

Available IO engines: sync, psync, libaio

BLOCK_SIZE

"4k"

Block size

SKIP_INSTALL

"False"

Skip package installation

Test Steps

- cd ./automated/linux/fio-test
- ./fio-test.sh -p "${PARTITION}" -i "${IOENGINE}" -b "${BLOCK_SIZE}" -s "${SKIP_INSTALL}"

Refer to fio-test.yaml for complete test definition and execution details.

Expected Results

  • The block device writing/reading operation is successful

  • The block device writing/reading iops is captured

References