Skip to content

Instantly share code, notes, and snippets.

@rwasef1830
Last active April 29, 2023 08:01
Show Gist options
  • Save rwasef1830/dd9a456f31899253eafb2bc5c1d568f8 to your computer and use it in GitHub Desktop.
Save rwasef1830/dd9a456f31899253eafb2bc5c1d568f8 to your computer and use it in GitHub Desktop.
fio server i/o test script
#!/bin/sh
fio --name=seqread --rw=read --direct=1 --ioengine=libaio --bs=8k --numjobs=8 --size=1G --runtime=600 --group_reporting
rm -f seq*
fio --name=seqwrite --rw=write --direct=1 --ioengine=libaio --bs=32k --numjobs=4 --size=2G --runtime=600 --group_reporting
rm -f seq*
fio --name=randread --rw=randread --direct=1 --ioengine=libaio --bs=8k --numjobs=16 --size=1G --runtime=600 --group_reporting
rm -f rand*
fio --name=randwrite --rw=randwrite --direct=1 --ioengine=libaio --bs=64k --numjobs=8 --size=512m --runtime=600 --group_reporting
rm -f rand*
fio --name=randrw --rw=randrw --direct=1 --ioengine=libaio --bs=16k --numjobs=8 --rwmixread=90 --size=1G --runtime=600 --group_reporting
rm -f rand*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment