Last active
April 25, 2021 12:22
-
-
Save nazarii-piontko/fe99a99640b6a2e9ec9b06f2daa4dc4d to your computer and use it in GitHub Desktop.
Benchmark disk I/O on Linux (Ubuntu)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install | |
apt-get update -y | |
apt-get install -y fio | |
# Random read/write | |
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75 | |
# Randon read | |
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randread |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment