Page MenuHomePhabricator
Paste P13663

Speed test script
ActivePublic

Authored by dcaro on Thu, Jan 7, 3:02 PM.
#!/bin/bash -e
device=/dev/sdc
echo "##### Linear read:"
fio -ioengine=libaio -direct=1 -invalidate=1 -name=test -bs=4M -iodepth=32 -rw=read -runtime=60 -filename=$device
echo "##### Linear write:"
fio -ioengine=libaio -direct=1 -invalidate=1 -name=test -bs=4M -iodepth=32 -rw=write -runtime=60 -filename=$device
echo "#### Peak parallel random read:"
fio -ioengine=libaio -direct=1 -invalidate=1 -name=test -bs=4k -iodepth=128 -rw=randread -runtime=60 -filename=$device
echo "#### Single-threaded read latency:"
fio -ioengine=libaio -sync=1 -direct=1 -invalidate=1 -name=test -bs=4k -iodepth=1 -rw=randread -runtime=60 -filename=$device
echo "#### Peak parallel random write:"
fio -ioengine=libaio -direct=1 -invalidate=1 -name=test -bs=4k -iodepth=128 -rw=randwrite -runtime=60 -filename=$device
echo "#### Journal write latency (with sync):"
fio -ioengine=libaio -sync=1 -direct=1 -invalidate=1 -name=test -bs=4k -iodepth=1 -rw=write -runtime=60 -filename=$device
echo "#### Journal write latency (with fsync):"
fio -ioengine=libaio -fsync=1 -direct=1 -invalidate=1 -name=test -bs=4k -iodepth=1 -rw=write -runtime=60 -filename=$device
echo "#### Single-threaded random write latency:"
fio -ioengine=libaio -sync=1 -direct=1 -invalidate=1 -name=test -bs=4k -iodepth=1 -rw=randwrite -runtime=60 -filename=$device