Skip to content

Instantly share code, notes, and snippets.

@wallentx
Created May 29, 2021 06:17
Show Gist options
  • Select an option

  • Save wallentx/f4a7f7b558ddb7b57fdd0c03ae86239b to your computer and use it in GitHub Desktop.

Select an option

Save wallentx/f4a7f7b558ddb7b57fdd0c03ae86239b to your computer and use it in GitHub Desktop.
Fio benchmark that somewhat reflects plot creation
#!/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