Created
March 31, 2023 20:34
-
-
Save tntclaus/1730cf227fda929dc33e8abd4791b2b3 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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