本篇文將簡單記錄一下FIO,Vdbench的測試腳本
FIO:
參數要求:單進程,粒度4k,directio,隨機寫,文件大小200m,隊列深度20,測試時長10s
fio -ioengine=libaio -bs=4k -direct=1 -rw=randwrite -size=200m -filename=/data/fiofile -name=4k-write -iodepth=20 -runtime=10 -numjobs=1
vdbench 文件系統測試
測試參數要求:2個客戶端,每個寫入10個100m文件,每個節點線程個數10,測試塊大小1m,做讀寫比1:1的順序讀寫,測試時長10s
hd=default,vdbench=/root/vdb,user=root,shell=ssh
hd=hd1,system=10.11.0.1
hd=hd2,system=10.11.0.2
fsd=fsd1,anchor=/data/cccc,depth=1,width=1,files=10,size=100m,shared=yes
fsd=fsd2,anchor=/data/cccc1,depth=1,width=1,files=10,size=100m,shared=yes
fwd=default,xfersize=1024k,fileio=sequential,fileselect=random,threads=10
fwd=fwd1,host=hd1,fsd=fsd1,operation=read
fwd=fwd2,host=hd1,fsd=fsd1,operation=write
fwd=fwd3,host=hd2,fsd=fsd2,operation=read
fwd=fwd4,host=hd2,fsd=fsd2,operation=write
rd=rd1,fwd=fwd*,fwdrate=max,format=restart,elapsed=1200,interval=10
順序讀寫不可以用 rdpct
其他測試腳本:
vdbench塊設備測試
測試參數要求:
directio模式,每個磁盤數據大小1g,線程個數10,測試塊大小4k,做讀寫比1:1的隨機讀寫,測試時長100s
hd=default,vdbench=/root/vdbench,user=root,shell=ssh
hd=hd1,system=10.11.xxx1
hd=hd2,system=10.11.xxx2
hd=hd3,system=10.11.xxx3
sd=default,openflags=o_direct,size=1GB,threads=10
sd=sd1,hd=hd1,lun=/dev/sdc
sd=sd2,hd=hd2,lun=/dev/sdd
sd=sd3,hd=hd3,lun=/dev/sde
wd=wd1,rdpct=50,seekpct=100,xfersize=4k
rd=default,interval=1,iorate=max
rd=rd1,wd=wd1,sd=sd*,elapsed=100
FIO與Vdbench的異同