Created
August 8, 2016 14:47
-
-
Save DavidGarciaCat/8f067b0cb4d616362fca3cb35da9fd82 to your computer and use it in GitHub Desktop.
Flexible I/O tester - Disk IO performance inspector
This file contains hidden or 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/sh | |
| if [ ! -d /mnt/fio_test ]; then mkdir /mnt/fio_test; fi | |
| for RUN in 1 2; do | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randread --bs=16k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap | |
| sleep 5 | |
| done | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randread --bs=16k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap 2>&1 | tee 16k_read_test.txt | |
| for RUN in 1 2; do | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randread --bs=256k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap | |
| sleep 5 | |
| done | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randread --bs=256k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap 2>&1 | tee 256k_read_test.txt | |
| for RUN in 1 2; do | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randwrite --bs=16k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap | |
| sleep 5 | |
| done | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randwrite --bs=16k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap 2>&1 | tee 16k_write_test.txt | |
| for RUN in 1 2; do | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randwrite --bs=256k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap | |
| sleep 5 | |
| done | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randwrite --bs=256k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap 2>&1 | tee 256k_write_test.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment