Skip to content

Instantly share code, notes, and snippets.

@ismaelnoble
Forked from mergwyn/zfsbench
Created November 18, 2022 16:15
Show Gist options
  • Save ismaelnoble/6dfa822ca67a00c4248c811e9b1b85cd to your computer and use it in GitHub Desktop.
Save ismaelnoble/6dfa822ca67a00c4248c811e9b1b85cd to your computer and use it in GitHub Desktop.
ZFS benchmarking using fio
#!/usr/bin/env bash
set -o errexit
echo $(date):Random read
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Random write
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Sequential read
fio --filename=test --sync=1 --rw=read --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Sequential write
fio --filename=test --sync=1 --rw=write --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment