Skip to content

Instantly share code, notes, and snippets.

@jandusek
Created September 16, 2019 13:15
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 jandusek/99c68b9b910a9509e4c6b3b8ca8b11dd to your computer and use it in GitHub Desktop.
Save jandusek/99c68b9b910a9509e4c6b3b8ca8b11dd to your computer and use it in GitHub Desktop.
Benchmark script used for OWC ThunderBay 6 tests
#!/bin/bash
DISK=/dev/rdiskX # make sure to use rdiskX and not just diskX as IO to diskX is buffered
COMMON="--randrepeat=1 --gtod_reduce=1 --iodepth=64 --ioengine=posixaio"
fio --rw=randread $COMMON --bs=4k --direct=1 --name="4kB Random Read" --size=1G --output=fio1.txt --filename=$DISK
sleep 5
fio --rw=randwrite $COMMON --bs=4k --direct=1 --name="4kB Random Write" --size=1G --output=fio2.txt --filename=$DISK
sleep 5
fio --rw=read $COMMON --bs=128k --direct=1 --name="128kB Sequential Read" --size=16G --output=fio3.txt --filename=$DISK
sleep 5
fio --rw=write $COMMON --bs=128k --direct=1 --name="128kB Sequential Write" --size=16G --output=fio4.txt --filename=$DISK
sleep 5
fio --rw=randrw $COMMON --bs=4k --direct=1 --rwmixread=75 --name="mixed 4kB Random RW direct" --size=1G --output=fio5.txt --filename=$DISK
sleep 5
fio --rw=rw $COMMON --bs=128k --direct=1 --rwmixread=75 --name="mixed 128kB Sequential RW direct" --size=16G --output=fio6.txt --filename=$DISK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment