Skip to content

Instantly share code, notes, and snippets.

@tntclaus
Created March 31, 2023 20:34
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 tntclaus/1730cf227fda929dc33e8abd4791b2b3 to your computer and use it in GitHub Desktop.
Save tntclaus/1730cf227fda929dc33e8abd4791b2b3 to your computer and use it in GitHub Desktop.
#!/bin/bash
DEVICE=$1
if [ -z "$DEVICE" ]
then
echo "Provide device path"
exit 0
fi
echo "Device: $DEVICE"
echo "fio -ioengine=libaio -sync=1 -direct=1 -name=test -bs=4k -iodepth=1 -rw=write -runtime=60"
fio -ioengine=libaio -sync=1 -direct=1 -name=test -bs=4k -iodepth=1 -rw=write -runtime=60 -filename=$DEVICE
echo "------------------------------------"
echo "fio -ioengine=libaio -fsync=1 -direct=1 -name=test -bs=4k -iodepth=1 -rw=write -runtime=60"
fio -ioengine=libaio -fsync=1 -direct=1 -name=test -bs=4k -iodepth=1 -rw=write -runtime=60 -filename=$DEVICE
echo "------------------------------------"
echo "fio -ioengine=libaio -sync=1 -direct=1 -name=test -bs=4k -iodepth=32 -rw=randwrite -runtime=60"
fio -ioengine=libaio -sync=1 -direct=1 -name=test -bs=4k -iodepth=32 -rw=randwrite -runtime=60 -filename=$DEVICE
echo "------------------------------------"
echo "fio -ioengine=libaio -fsync=32 -direct=1 -name=test -bs=4k -iodepth=32 -rw=randwrite -runtime=60"
fio -ioengine=libaio -fsync=32 -direct=1 -name=test -bs=4k -iodepth=32 -rw=randwrite -runtime=60 -filename=$DEVICE
echo "------------------------------------"
echo "fio -ioengine=libaio -direct=1 -name=test -bs=4k -iodepth=128 -rw=randwrite -runtime=60"
fio -ioengine=libaio -direct=1 -name=test -bs=4k -iodepth=128 -rw=randwrite -runtime=60 -filename=$DEVICE
echo "------------------------------------"
echo "fio -ioengine=libaio -sync=1 -direct=1 -name=test -bs=4M -iodepth=32 -rw=write -runtime=60"
fio -ioengine=libaio -sync=1 -direct=1 -name=test -bs=4M -iodepth=32 -rw=write -runtime=60 -filename=$DEVICE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment