Skip to content

Instantly share code, notes, and snippets.

@NiceRath
Last active August 25, 2025 12:46
Show Gist options
  • Save NiceRath/f938a400e3b2c8997ff0556cced27b30 to your computer and use it in GitHub Desktop.
Save NiceRath/f938a400e3b2c8997ff0556cced27b30 to your computer and use it in GitHub Desktop.
FIO NVMe Disk-Benchmark for 64k-Performance (MSSQL Server)
# TO RUN:
# apt install fio
# add the config-file on your target system
# replace '/dev/nvmeXn1' with either:
# the path to a block-device you want to benchmark (examples: /dev/md1, /dev/sdb, /dev/nvme2n1, /zfs_nvme [or whatever zfs mountpoint you use])
# the path to a test-file on a mounted partition of ZFS-volume (performance will most likely be worse than on the block-device directly)
# start: fio test.cnf
# NOTE: You might want to lower the iodepth and numjobs to the point where you do not see any improvement - we just eye-balled it
[global]
ioengine=libaio
direct=1
bs=64k
iodepth=1024
numjobs=64
size=20G
filename=/dev/nvmeXn1
time_based=1
runtime=120
stonewall
group_reporting
[read_64k_seq]
rw=read
bs=64k
[write_64k_seq]
rw=write
bs=64k
[rw_64k_seq]
rw=readwrite
bs=64k
[read_128k_seq]
rw=read
bs=128k
[read_4k_rand]
rw=randread
bs=4k
[read_64k_rand]
rw=randread
bs=64k
[write_64k_rand]
rw=randwrite
bs=64k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment