1舒憾、安裝vdbench所需環(huán)境
yum -y install java
#安裝jdk(沒有網(wǎng)絡(luò)可以配本地鏡像源)
將vdbench壓縮包導(dǎo)入環(huán)境
https://www.oracle.com/technetwork/cn/server-storage/vdbench-downloads-1901681-zhs.html
此網(wǎng)站可以下載vdbench軟件包 --需要注冊(cè)O(shè)racle賬號(hào)
yum -y install unzip
#安裝zip解壓工具
unzip vdbench504.zip -d /root/vdbench504
#解壓到指定路徑
yum -y install csh
#安裝csh環(huán)境
hd=default,vdbench=/root/vdbench504/,user=root,shell=ssh
hd=hd_1,system=node14
fsd=fsd_1,anchor=/mnt/yrfs/100m_0709_1,depth=8,width=4,files=100,size=(1k,20,4k,20,8k,15,16k,15,32k,15,64k,15),shared=yes
fwd=format,threads=16,xfersize=4k
fwd=fwd_1,fsd=fsd_1,host=hd_1,xfersize=16k,fileio=random,fileselect=random,operation=create,threads=16,openflags=o_direct
rd=rd1,fwd=(fwd*),fwdrate=max,format=restart,elapsed=10,interval=5
system值修改為主機(jī)名
等價(jià)于
最終生成的文件總數(shù)為 寬度的 深度次方 乘以 文件數(shù)