fwd参数详细说明: fwd=name fwd=default fsd=(xx,….) host=host_label fileio=random fileio=sequential fileio=(seq,delete) stopafter=nnn fileselect=random/ sequential xfersizes=nn operation=xxxx rdpct=nn skew=nn threads=nn Unique name for this Filesystem Workload Definition. All parameters used will serve as default for all the following fwd’s. Name(s) of Filesystem Definitions to use Which host this workload to run on. How file I/O will be done: random or sequential How file I/O will be done: random or sequential Sequential I/O: When opening for writes, first delete the file For random I/O: stop and close file after ‘nnn’ reads or writes. Default 100 for random I/O. How to select file names or directory names for processing. Specifies the data transfer size(s) to use for read and write operations. Specifies a single file system operation that must be done for this workload. For ‘read’ and ‘write’ only. This allows a mix and read and writes against a single file. The percentage of the total amount of work for this FWD How many concurrent threads to run for this workload. (Make sure you have at least one file for each thread).
3、 测试运行定义(Run definition)
? 示例:rd=rd1,wd=wd*,elapsed=1800,interval=1,iorate=max
描述:
elapsed:Time of this run in seconds,default 30 seconds interval:Reporting interval in seconds iorate:Run an uncontrolled workload
4、 脚本示例
******************************************************************* * example1:
sd=sd1,lun=/dev/sdb,threads=32,openflags=o_direct
wd=wd1,sd=sd*,seekpct=seq,rdpct=100,xfersize=2m
rd=rd1,wd=wd*,elapsed=600,interval=1,iorate=max
*说明
* 测试磁盘设备(/dev/sdb),队列深度为32,采用2MB块大小,顺序读,测试时长为600秒。 *
*******************************************************************
******************************************************************* * example2:
sd=sd1,lun=/dir/a.file, size=100m,openflags=o_direct
wd=wd1,sd=sd*,seekpct=seq,rdpct=100,xfersize=2m
rd=rd1,wd=wd*,elapsed=600,interval=1,iorate=max
*说明
* 测试读出文件/dir/a.file,设置文件大小为100MB,以2MB块大小顺序读出,测试时长为600秒。 *
*******************************************************************
******************************************************************* * example3:
fsd=fsd1,anchor=/dir,depth=1,width=1,files=30,size=2m,openflags=o_direct
fwd=fwd1,fsd=fsd1,operation=read,xfersize=2m,fileio=sequential,fileselect=sequential,threads=32
rd=rd1,fwd=fwd*,fwdrate=max,format=yes,elapsed=600,interval=1
*说明
* 测试读出文件/dir,文件总数为30个,每个文件大小为2MB,以2MB块大小顺序读出,测试时长为600秒。 *
*******************************************************************