-
-
Save ismaelnoble/6dfa822ca67a00c4248c811e9b1b85cd 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment