Skip to content

Instantly share code, notes, and snippets.

@cdhunt
Created September 28, 2021 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdhunt/adcaca31b0a78427c14bf1239aad480f to your computer and use it in GitHub Desktop.
Save cdhunt/adcaca31b0a78427c14bf1239aad480f to your computer and use it in GitHub Desktop.
[global]
ioengine=libaio # sync|libaio|mmap
group_reporting
thread
size=10g # Size of test file
cpus_allowed=1 # Only use this CPU core
runtime=300s # Run test for 5 minutes
[test1]
filename=/var/opt/mssql/tmp/fio-test-file
direct=1 # If value is true, use non-buffered I/O. Non-buffered I/O usually means O_DIRECT
readwrite=write # read|write|randread|randwrite|readwrite|randrw
iodepth=1 # How many operations to queue to the disk
blocksize=4k
[test2]
filename=/var/opt/mssql/data/fio-test-file
direct=0
readwrite=write
iodepth=1
blocksize=4k
[test3]
filename=/var/opt/mssql/data/fio-test-file
direct=1
readwrite=write
iodepth=1
blocksize=4k
[test4]
filename=/var/opt/mssql/data/fio-test-file
direct=1
readwrite=write
iodepth=16
blocksize=4k
[test5]
filename=/var/opt/mssql/data/fio-test-file
direct=1
readwrite=write
iodepth=1
blocksize=128k
[test6]
filename=/var/opt/mssql/data/fio-test-file
direct=0
readwrite=write
iodepth=1
blocksize=256k
[test7]
filename=/var/opt/mssql/data/fio-test-file
direct=0
readwrite=randwrite
iodepth=1
blocksize=4k
[test8]
filename=/var/opt/mssql/data/fio-test-file
direct=0
readwrite=randwrite
iodepth=16
blocksize=256k
[test9]
filename=/var/opt/mssql/data/fio-test-file
direct=0
readwrite=randwrite
iodepth=16
blocksize=4k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment