Skip to content

Latest commit

 

History

History
176 lines (74 loc) · 8.49 KB

1.12 主机定义(HD)参数详情.md

File metadata and controls

176 lines (74 loc) · 8.49 KB

1. ‘hd=host_label’

The host label is used for cross-referencing and reporting. Example: hd=localhost or hd=systemA

Use localhost when you want to set values for the current host, the host where the Vdbench master JVM is running.

hd=default specifies the default settings to be used for all later HD parameters. For a complete example, see example 5 below.

主机标签用于交叉引用和报告。例如,使用hd=localhosthd=systemA

在您希望为当前主机设置值时,请使用localhost,即运行Vdbench主JVM的主机。

hd=default指定了所有后续HD参数要使用的默认设置。完整示例,请参见下面的示例5

*
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
*
*
* Author: Henk Vandenbergh.
*
* Example 5: Simple multi-host parameter file.
* This test does a three second 4k read test from two hosts against the same file.
* The 'vdbench=' parameter is only needed when Vdbench resides in a different directory on the remote system.


hd=default,vdbench=/home/user/vdbench,user=user
hd=one,system=systema
hd=two,system=systemb

sd=sd1,host=*,lun=/home/user/junk/vdbench_test,size=10m
wd=wd1,sd=sd*,rdpct=100,xf=4k
rd=rd1,wd=wd1,el=3,in=1,io=10

2. ‘system=system_name’

When running Vdbench in multi-host mode you specify here the system name of the system’s IP address, e.g. system=x.y.z.com or system=12.34.56.78.

在多主机模式下运行Vdbench时,您需要在这里指定系统的系统名称或IP地址,例如,system=x.y.z.comsystem=12.34.56.78

3. ‘master=system_name/IP address

The Vdbench slave normally connects back to the Vdbench master using the master's IP address. There are some situations though where that IP address can or may not be used.

By using the new master= parameter the slave will now connect to either whatever is specified as master=zzzzzzzz, likely an IP address, or, when master=hostname is used Vdbench will run the hostname OS command and use that value which then is passed to the slave and used for connection back to the master.

通常情况下,Vdbench从节点会使用主节点的IP地址进行连接。但在某些情况下,可能不能或不应使用该IP地址。

通过使用新的master=参数,从节点现在将连接到master=zzzzzzzz指定的内容,通常是一个IP地址,或者当使用master=hostname时,Vdbench将运行hostname操作系统命令,并使用该值传递给从属节点,用于连接回主节点。

4. ‘jvms=nnn’

This parameter tells Vdbench how many JVMs to use on this host. See ‘Multi JVM Execution.

这个参数告诉Vdbench在这台主机上要使用多少个JVM。

5. ‘vdbench=/vdbench/dir/name’

This tells Vdbench where it can find its installation directory on a remote host. Default: the same directory as currently used. Use double quotes (“) when a directory name has embedded blanks, for instance on windows systems.

Note that when shell=vdbench is used this parameter is ignored since the Vdbench RSH residing^ 1 on the remote system will you its current Vdbench install directory.

这个参数指定了Vdbench在远程主机上的安装目录位置。默认情况下,安装目录与当前使用的目录相同。如果目录名包含空格(例如在Windows系统上),请使用双引号(“)。

请注意,当使用shell=vdbench时,此参数将被忽略,因为远程系统上的Vdbench RSH将使用其当前的Vdbench安装目录。

6. ‘shell=rsh | ssh | vdbench’

For multi-host execution Vdbench by default uses RSH. You can optionally use SSH. If your target system does not have RSH or SSH or if you can’t get the proper^ 2 settings on the local or remote systems to get RSH or SSH to work you can use Vdbench’s own RSH daemon by specifying shell=vdbench. On the target remote system you must do a one time start of ‘./vdbench rsh’ to start the Vdbench RSH daemon. This daemon of course will only work with Vdbench, and it is simply a small program that uses Java sockets to start a command and receive stdout/stderr output back. See also ‘portnumbers.txt’.

Note: If you have the MKS toolkit^ 3 installed on your Windows system you may want to remove the MKS version of RSH. Experience has shown that the stdout and stderr output streams created by this version of RSH do not close properly therefore preventing Vdbench from recognizing the completion of a remote copy of Vdbench.

对于多主机执行,默认情况下,Vdbench使用RSH。您也可以选择使用SSH。如果目标系统没有RSH或SSH,或者无法在本地或远程系统上设置RSH或SSH正常工作,您可以使用Vdbench自带的RSH守护程序,通过指定shell=vdbench来实现。在目标远程系统上,您需要执行一次./vdbench rsh来启动Vdbench RSH守护程序。这个守护程序只能与Vdbench一起工作,它是一个简单的程序,使用Java套接字启动命令并接收stdout/stderr输出。另请参阅“portnumbers.txt”。

注意:如果您在Windows系统上安装了MKS工具包,您可能需要删除MKS版本的RSH。经验表明,该版本的RSH创建的stdout和stderr输出流不会正确关闭,从而阻止Vdbench识别从节点的Vdbench执行是否完成。

7. ‘user=xxxx’

Used for RSH and SSH. Note: it is the user’s responsibility to properly define the RSH or SSH security settings on the local and on the remote hosts.

这个参数适用于RSH和SSH。注意:用户有责任在本地和远程主机上正确定义RSH或SSH的安全设置。

8. ‘mount=xxx’

This parameter is mainly useful when doing some serious multi-host file system testing. If you for instance have 20 target clients that you have connected all to the same file system it is nice not to have to manually create all these mount points and issue the mount commands.

The mount= parameter can be used in two places:

  • As part of a Host Definition (HD).

  • As part of a Run Definition (RD).

When used as a Host Definition parameter you specify the complete mount command that you want issued on the remote system, e.g.:

mount="mount -o forcedirectio /dev/dsk/c2t6d0s0 /export/h01"

Vdbench will create the mount point directory if needed, in this example /export/h01 and then will issue the mount command.

When used as a Run Definition parameter (RD), you only specify the mount options, e.g.: mount="-o noforcedirectio".

Vdbench will replace the (possible) mount options as specified as part of the Host Definition with the newly specified mount options.

When you code ‘mount=reset’, the original mount command as specified will be executed.

Note, that for normal file system testing operations, each host will need his own FSD parameter, unless the ‘shared=yes’ FSD parameter is used in which case all hosts can use the same.

这个参数在进行一些严格的多主机文件系统测试时非常有用。例如,如果您有20个目标客户端都连接到同一个文件系统,那么手动创建所有这些挂载点并发出挂载命令将会很麻烦。

mount=参数可以在两个地方使用:

  • 作为主机定义(HD)的一部分。
  • 作为运行定义(RD)的一部分。

当作为主机定义参数使用时,您需要指定要在远程系统上发出的完整挂载命令,例如:

mount="mount -o forcedirectio /dev/dsk/c2t6d0s0 /export/h01"

Vdbench会在需要时创建挂载点目录,例如在这个例子中是/export/h01,然后发出挂载命令。

当作为运行定义参数(RD)使用时,您只需指定挂载选项,例如mount="-o noforcedirectio"

Vdbench将使用新指定的挂载选项替换主机定义中指定的(可能的)挂载选项。

当您编写mount=reset时,将执行指定的原始挂载命令。

请注意,对于正常的文件系统测试操作,每个主机都需要自己的FSD参数,除非使用了shared=yes FSD参数,在这种情况下,所有主机都可以使用相同的参数。