Created
May 29, 2021 06:17
-
-
Save wallentx/f4a7f7b558ddb7b57fdd0c03ae86239b to your computer and use it in GitHub Desktop.
Fio benchmark that somewhat reflects plot creation
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 | |
| | |
| FIO=$(mktemp /tmp/fioXXXXXXXX.fio) | |
| TARGET=$1 | |
| | |
| FIO_TMP=$(cat <<- EOF | |
| [global] | |
| bs=128K | |
| iodepth=256 | |
| direct=1 | |
| ioengine=libaio | |
| group_reporting | |
| time_based | |
| name=chia | |
| log_avg_msec=1000 | |
| bwavgtime=1000 | |
| filename=$TARGET/fiotest.tmp | |
| size=100G | |
| | |
| [rd_qd_256_128k_1w] | |
| stonewall | |
| bs=128k | |
| iodepth=256 | |
| numjobs=1 | |
| rw=read | |
| runtime=60 | |
| write_bw_log=seq_read_bw.log | |
| | |
| [wr_qd_256_128k_1w] | |
| stonewall | |
| bs=128k | |
| iodepth=256 | |
| numjobs=1 | |
| rw=write | |
| runtime=60 | |
| write_bw_log=seq_write_bw.log | |
| EOF | |
| ) | |
| | |
| echo "$FIO_TMP" > $FIO | |
| | |
| fio $FIO | |
| | |
| rm $TARGET/fiotest.tmp | |
| rm $FIO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment