-
-
Save ersivv/2d4f0468180587cc9737897c8e5b040e 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