Skip to content

Instantly share code, notes, and snippets.

@Thinkscape
Last active November 8, 2023 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thinkscape/67d4fb3f2f39f25421171138054dfb5a to your computer and use it in GitHub Desktop.
Save Thinkscape/67d4fb3f2f39f25421171138054dfb5a to your computer and use it in GitHub Desktop.
disk benchmark using fio at different block sizes
#!/bin/env bash
for bs in 4k 16k 64k 256k 1M 4M; do
echo "Running burst speed test of $1 with block size $bs";
fio --name=burst_speed_test --ioengine=libaio --iodepth=1 --rw=rw --direct=1 --runtime=60 --time_based \
--verify=crc32c --do_verify=1 --verify_fatal=1 --verify_dump=1 --verify_backlog=1000 \
--filename=$1 --bs=$bs --numjobs=1 --group_reporting;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment