-
-
Save MirecX/707ef4ccb3c137b903934e041db7c7c8 to your computer and use it in GitHub Desktop.
ZFS benchmarking using fio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/MirecX/707ef4ccb3c137b903934e041db7c7c8/raw/78dfc33e31de5d5c46201df690cae7904153f749/zfsbench | bash -