I wanted to benchmark some microSD cards for Raspberry Pi running Ubuntu Server, so I needed some command line tool to test disk I/O. You can find the full article/explanation here, I’ll just TL;DR what I actually ran.
First, install fio
:
$ sudo apt-get install fio
Testing write speed:
$ fio --name TEST --eta-newline=5s --filename=temp.file --rw=write --size=2g --io_size=10g --blocksize=1024k --ioengine=libaio --fsync=10000 --iodepth=32 --direct=1 --numjobs=1 --runtime=60 --group_reporting
Testing read speed:
$ fio --name TEST --eta-newline=5s --filename=temp.file --rw=read --size=2g --io_size=10g --blocksize=1024k --ioengine=libaio --fsync=10000 --iodepth=32 --direct=1 --numjobs=1 --runtime=60 --group_reporting
Hope this helps, have fun clickity-clacking.
Leave a Reply