使用: fio configfile
结果主要观察:iops和bw(带宽)
配置文件示例:
[global]
description=Emulation of Intel IOmeter File Server Access Pattern
[iometer]
bssplit=4k/30:8k/40:16k/30
rw=randrw
rwmixwrite=30
direct=1
time_based
runtime=180s
ioengine=sync
filename=/dev/mapper/ioband1
numjobs=32
group_reporting
附带dd测试,使用dd命令可以进行顺序读写的测试:
命令如下:
# time dd if=/dev/sda2 f=/dev/null bs=8k count=1000
# time dd if=/dev/zero f=/opt/iotest bs=8k count=1000
# time dd if=/dev/sda2 f=/opt/iotest
参照以下资料:
http://blog.csdn.net/wyzxg/article/details/7454072
http://linux.chinaitlab.com/administer/827851.html