fio: Linux hard drive benchmark
I'm always on a lookout for good hard drive benchmark tools. fio is pretty good, especially because it's easy to setup and execution is pretty self-explanatory:
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=1G --readwrite=randrw --rwmixread=0
The only parameter that does need bit of explanation is --rwmixread parameter:
- 0 means 0 read, 100 write.
- 100 means 100 read, 0 write.
- 50 is half and half