Vdbench For Linux简明操作手册

2019-08-30 22:30

Vdbench For Linux

简明操作手册

Vdbench is a disk and tape I/O workload generator for verifying data integrity and measuring performance of direct attached and network connected storage on Windows, Solaris, Linux, AIX, OS/X and HP/UX.

目 录

一、运行环境 ............................................................................................................................................ 3 二、Vdbench目录说明 ............................................................................................................................. 3 三、Vdbench基本命令介绍 ..................................................................................................................... 3 四、Vdbench 脚本参数解释 .................................................................................................................... 4 1、 2、 3、 4、

存储定义(Storage definition) ................................................................................................ 4 工作负荷定义(Workload definition) .................................................................................... 5 测试运行定义(Run definition) .............................................................................................. 6 脚本示例 ..................................................................................................................................... 6

一、运行环境

二、Vdbench目录说明

1、 执行程序文件

#./vdbench

2、 软件操作说明文件

#vdbench.pdf

3、 示例脚本文件,及脚本说明

#cd examples

三、Vdbench基本命令介绍

1、 进入Vdbench目录,给Vdbench执行文件赋予“777”权限。

#cd /vdbench

#chmod 777 vdbench

2、 执行Vdbench测试命令。

#./vdbench -f ./test/seq_read_sdb -o /testlog/seq_read_sdb_1 命令解释:

命 令 ./vdbench -f ./test/seq_read_sdb -o /testlog/seq_read_sdb_1 测试的执行文件 指定测试脚本参数 测试脚本文件路径 指定测试输入参数 测试结果输入路径 描 述 备 注

四、Vdbench 脚本参数解释

1、

存储定义(Storage definition)

? raw:裸盘测试。

示例:sd=sd1,lun=/dev/sdb,threads=32,openflags=o_direct

描述:定义一个存储过程(sd),测试磁盘裸设备(/dev/sdb)。 lun=/dev/sdb:指定测试的盘符,裸盘路径。

threads=32:设置测试进程队列深度,常用有1、2、4、8、16、32、64等,数值越高表示对磁盘的压力越大。

openflags=o_direct:处理缓存的方法。“o_direct”使用Linux的“O_DIRECT”选项不使用缓存直接写入磁盘。

注意:测试过程组合有:sd、wd、rd

? filesys:文件系统测试。

1、测试单个文件

示例1:sd=sd1,lun=/dir/a.file,size=100m,openflags=o_direct

描述:定义一个存储过程(sd),测试“/div/a.file”文件,设定文件大小为100MB。 lun=/dir/a.file:指定测试一个文件完整路径。

注意:测试过程组合有:sd、wd、rd

2、测试多个文件

示例2:fsd=fsd1,anchor=/dir,depth=1,width=1,files=15,size=128k,openflags=o_direct

描述:定义的是文件存储过程(fsd),指定存储路径为“/dir”。

depth=1:路径的深度,数值代表文件夹的级别。

width=1:每层文件夹下子文件夹数。 files=15:测试最后一层文件夹中将自动生成的文件个数。

size=128k:每个测试文件的大小。 例:

depth=3,width=2,files=15,size=1m

测试最后一层一共生成2^3=8个文件夹,每个文件夹下生成15个文件,共有8*15*1=120MB的文件数据。

注意:测试过程组合有:fsd、fwd、rd

fsd参数详细说明: fsd=name fsd=default count=(nn,mm) anchor=/dir/ shared=yes/no width=nn depth=nn files=nn sizes=(nn,nn,…..) distribution=all creates openflags=(flag,..) total_size=nnn Unique name for this File System Definition. All parameters used will serve as default for all the following fsd’s. Creates a sequence of FSD parameters. The name of the directory where the directory structure will be created. Default ‘no’: See FSD sharing How many directories to create in each new directory. How many levels of directories to create under the anchor. How many files to create in the lowest level of directories. Specifies the size(s) of the files that will be created. Default ‘bottom’, creates files only in the lowest directories. ‘all’ Files in all directories. Pass extra flags to (Solaris) file system open request (See: man open) Stop after a total of ‘nnn’ bytes of files have been created. workingsetsize=nnwss=nn Causes Vdbench to only use a subset of the total amount of files defined In the file structure. See workingsetsize. 2、 工作负荷定义(Workload definition)

? 测试裸盘,或测试单个文件

示例:wd=wd1,sd=sd*,seekpct=seq,rdpct=100,xfersize=2m

描述:定义一个工作量过程。通过“sd”参数指定前面所定义的存储过程,“sd*”表示所有“sd”开头的存储过程。

seekpct:random(100) or sequential(0)

* 100% random : seekpct=100 * 100% sequential : seekpct=0 * 20% random : seekpct=20

rdpct:read(100) or write(0)

* 100% read : rdpct=100 * 100% write : rdpct=0 * 70% read : rdpct=70

xfersize:Data transfer size,default 4k

? 测试多个文件

示例:

fwd=fwd1,fsd=fsd1,operation=read,xfersize=256k,fileio=sequential,fileselect=sequential,threads=6


Vdbench For Linux简明操作手册.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:拿来主义文体分析

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: