Page MenuHomeFreeBSD
Authored By
akshay1994.leo_gmail.com
Aug 2 2016, 6:38 PM
Size
839 B
Referenced Files
None
Subscribers
None

fio_test.sh

#Change this variable to the path of the device you want to test
block_dev=/dev/xvdc
# full write pass
sudo fio --name=writefile --size=9G --filesize=9G \
--filename=$block_dev --bs=1M --nrfiles=1 \
--direct=1 --sync=0 --randrepeat=0 --rw=write --refill_buffers --end_fsync=1 \
--iodepth=200 --ioengine=libaio
# rand read
sudo fio --time_based --name=benchmark --size=9G --runtime=30 \
--filename=$block_dev --ioengine=libaio --randrepeat=0 \
--iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 \
--numjobs=4 --rw=randread --blocksize=4k --group_reporting
# rand write
sudo fio --time_based --name=benchmark --size=9G --runtime=30 \
--filename=$block_dev --ioengine=libaio --randrepeat=0 \
--iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 \
--numjobs=4 --rw=randwrite --blocksize=4k --group_reporting

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
568512
Default Alt Text
fio_test.sh (839 B)

Event Timeline