Skip to content

Instantly share code, notes, and snippets.

@koungkub
Created April 28, 2020 07:55
Show Gist options
  • Save koungkub/76cad605bdd17832ee607b2283344f29 to your computer and use it in GitHub Desktop.
Save koungkub/76cad605bdd17832ee607b2283344f29 to your computer and use it in GitHub Desktop.
I/O benchmark
// install
sudo apt install fio -y
// read
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read.fio --bs=4k --iodepth=64 --size=4G --readwrite=randread;
// write
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randwrite;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment