FIO使用简介
- 操作步骤
解压、编译、安装:
[1@localhost 桌面]$ tar -zxvf fio-2.1.10.tar.gz
[1@localhost 桌面]$ cd fio-2.1.10
[1@localhost fio-2.1.10]$ ./configure
[1@localhost fio-2.1.10]# make
[1@localhost fio-2.1.10]$ su
密码:
[root@localhost fio-2.1.10]# make install
install -m 755 -d /usr/local/bin
install fio tools/fio_generate_plots tools/plot/fio2gnuplot tools/genfio /usr/local/bin
install -m 755 -d /usr/local/man/man1
install -m 644 fio.1 /usr/local/man/man1
install -m 644 tools/fio_generate_plots.1 /usr/local/man/man1
install -m 644 tools/plot/fio2gnuplot.1 /usr/local/man/man1
install -m 755 -d /usr/local/share/fio
install -m 644 tools/plot/*gpm /usr/local/share/fio/
执行命令进行顺序读测试:
fio -ioengine=libaio -bs=4k -direct=1 -thread -rw=read -filename=/dev/sda -name=“BS 4KB read test” -iodepth=16 -runtime=60
测试结果:
执行命令进行顺序写测试:
fio -ioengine=libaio -bs=4k -direct=1 -thread -rw=write -filename=/dev/sda –
name=“BS 4KB write test” -iodepth=16 -runtime=60
测试结果: