Last active
May 29, 2020 04:36
-
-
Save stongo/37e17f43edeb7c79f9f7745170a38a42 to your computer and use it in GitHub Desktop.
Disk Benchmarking
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/bash | |
echo "-- psync ioengine write test" | |
fio --name=global --randrepeat=0 --iodepth=16 --name=job2 --size=32g --nrfiles=1 --rw=write | |
echo "-- libaio ioengine write test" | |
fio --name=global --randrepeat=0 --iodepth=16 --name=job2 --size=32g --nrfiles=1 --rw=write --ioengine=libaio | |
echo "-- io_uring ioengine write test" | |
fio --name=global --randrepeat=0 --iodepth=16 --name=job2 --size=32g --nrfiles=1 --rw=write --ioengine=io_uring | |
echo "-- vsync ioengine read test" | |
for i in {1..5}; do | |
size=$((32*$i)) | |
no=$((40*$i)) | |
echo $i $size $no | |
fio --ramp_time=2 --name=global --rw=randread --blocksize=33b --name=job1 --iodepth=16 --ioengine=vsync --size=${size}g --number_ios=${no} --nrfiles=${i} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment