Skip to content

Instantly share code, notes, and snippets.

@mtulio
Created August 31, 2018 07:54
Show Gist options
  • Save mtulio/8589994390637332448f8416f0d090c8 to your computer and use it in GitHub Desktop.
Save mtulio/8589994390637332448f8416f0d090c8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Benchmark in Linux OS using FIO and IOping
## FIO
# Random read performance
time fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 \
--name=test --filename=./test-r \
--bs=4k --iodepth=64 --size=40G --readwrite=randrw --rwmixread=75
# Random write performance
./fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 \
--name=test --filename=./test-w \
--bs=4k --iodepth=64 --size=40G --readwrite=randwrite
## IOPing
./ioping -c 10 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment