⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dt-usersguide.t

📁 Linux磁盘测试的源代码,测试磁盘的读写性能
💻 T
📖 第 1 页 / 共 5 页
字号:
These options are used to specify various POSIX compliant open flags, andsystem specific flags, to test the affect of these open modes..HSSpecial Notes:.buEach operating system has different flags, which can be queried by reviewingthe \fIdt\fP help text ("\fIdt help\fP")..LP.EX    Syntax:        flags=flags      Set open flags: {excl,sync,...}.        oflags=flags     Set output flags: {append,trunc,...}..EE.nh 2 On Child Error \&"\fIoncerr=\fP\&" Option.This option allows you to control the action taken by \fIdt\fP when achild process exits with an error.  By default, the action is \fIcontinue\fP,which allows all child processes to run to completion.  If the child erroraction is set to \fIabort\fP, then \fIdt\fP aborts all child processesif \fBany\fP child process exits with an error status..EX    Syntax:        oncerr={abort|continue}  Set child error action..EE.nh 2 Terminal Parity Setting \&"\fIparity=\fP\&" Option.This option specifies the terminal parity setting to use during testing..EX    Syntax:        parity=string    Set parity to: even, odd, or none. on QNX parity=string    Set parity to: even, odd, mark, space, or none..EE.nh 2 Pass Limit \&"\fIpasses=\fP\&" Option.This option controls the number of passes to perform for each test..HSSpecial Notes:.buThe default is to perform 1 pass..buWhen using the "\fIof=\fP" option, each write/read combination isconsidered a single pass..buWhen multiple passes are specified, a different data pattern is usedfor each pass, unless the user specified a data pattern or pattern file.[ Please keep this in mind when using the "\fIdispose=keep\fP" option,since using this same file for a subsequent \fIdt\fP read verify pass,will report comparison errors... I've burned myself this way. ].LP.EX    Syntax:        passes=value     The number of passes to perform..EE.nh 2 Data Pattern \&"\fIpattern=\fP\&" Option.This option specifies a 32 bit hexadecimal data pattern to be used forthe data pattern.  \fIdt\fP has 12 built-in patterns, which it alternatesthrough when running multiple passes.  The default data patterns are:.EX 40x39c39c39, 0x00ff00ff, 0x0f0f0f0f, 0xc6dec6de, 0x6db6db6d, 0x00000000,0xffffffff, 0xaaaaaaaa, 0x33333333, 0x26673333, 0x66673326, 0x71c7c71c.EEYou can also specify the special keyword "\fIincr\fP" to use an incrementingdata pattern, or specify a character string (normally contained within singleor double quotes)..EX    Syntax:        pattern=value    The 32 bit hex data pattern to use.    or  pattern=iot      Use DJ's IOT test pattern.    or  pattern=incr     Use an incrementing data pattern.    or  pattern=string   The string to use for the data pattern..EESo, what is DJ's IOT test pattern?  This pattern places the logical blockaddress (lba) in the first word (4 bytes) of each block, with (lba+=0x01010101)being placed in all remaining words in the data block (512 bytes by default).In this way, the logical block is seeded throughout each word in the block..PPWhen specifying a pattern string via "\fIpattern=string\fP", the followingspecial mapping occors:.EX    Pattern String Mapping:       \\\\ = Backslash   \\a = Alert (bell)   \\b = Backspace       \\f = Formfeed    \\n = Newline        \\r = Carriage Return       \\t = Tab         \\v = Vertical Tab   \\e or \\E = Escape       \\ddd = Octal Value    \\xdd or \\Xdd = Hexadecimal Value.EE.nh 2 File Position \&"\fIposition=\fP\&" Option.This option specifies a byte offset to seek to prior to starting eachpass of each test..EX    Syntax:        position=offset  Position to offset before testing..EE.nh 2 Multiple Processes \&"\fIprocs=\fP\&" Option.This option specifies the number of processes to initiate performingthe same test.  This option allows an easy method for initiatingmultiple I/O requests to a single device or file system..HSSpecial Notes:.buThe per process limit on Tru64 UNIX is 64, and can be queried byusing the "\fIsysconfig -q proc\fP" command..buSpawning many processes can render your system useless, well at leastvery slow, and consumes large amounts of swap space (make sure youhave plenty!)..buThe parent process simply monitors (waits for) all child prcoesses..buWhen writing to a file system, the process ID (PID) is appending tothe file name specified with the "\fIof=\fP" option to create uniquefile names.  If no pattern is specified, each process is startedwith a unique data pattern.  Subsequent passes cycle through the12 internal data patterns.  Use "\fIdisable=unique\fP" to avoidthis new (Version 14.1) behaviour..buThe spawn() facility, used to execute on a different node, is notimplemented on the QNX Operating System at this time..LP.EX    Syntax:        procs=value      The number of processes to create..EE.nh 2 Random I/O Offset Alignment \&"\fIralign=\fP\&" Option.This option is used when performing random I/O, to align eachrandom block offset to a particular alignment, for example 32K..LP.EX    Syntax:        ralign=value     The random I/O offset alignment..EE.nh 2 Random I/O Data Limit \&"\fIrlimit=\fP\&" Option.This option is used with random I/O to specify the number of bytesto limit random I/O between (starting from block 0 to this range).This option is independent of the data limit option..LP.EX    Syntax:        rlimit=value     The random I/O data byte limit..EE.nh 2 Random Seed Value \&\fIrseed=\fP\&" Option.This options sets the seed to initialize the random number generatorwith, when doing random I/O.  When selecting random I/O, the totalstatistics displays the random seed used during that test.  Thisoption can be used to repeat the random I/O sequence of a test..LP.EX    Syntax:        rseed=value      The random seed to initialize with..EE.nh 2 Record Limit \&"\fIrecords=\fP\&" Option.This option controls the number of records to process for each writeand/or read pass of each test.  The "\fIcount=\fP" option is an aliasfor this option (supported for \fIdd\fP compatibility)..HSSpecial Notes:.buYou must specify either a data limit, record limit, or files limit toinitiate a test, unless the device type is "disk", in which case \fIdt\fPwill automatically determine the disk capacity..buWhen specifying a runtime via the "\fIruntime=\fP" option, the record limitcontrols how many records process for each pass (write and/or read pass)..buIf you specify a infinite "\fIrecords=Inf\fP" value, each pass will continueuntil the end of media or file is reached..LP.EX    Syntax:        records=value    The number of records to process..EE.nh 2 Run Time \&"\fIruntime=\fP\&" Option.This option controls how long the total test should run.  When used inconjunction with a data limit or record limit, multiple passes will beperformed until the runtime limit expires.  A later section entitled"\fITime Input Parameters\fP", describes the shorthand notation fortime values..EX    Syntax:        runtime=time     The number of seconds to execute..EE.nh 2 Slices \&"\fIslices=\fP\&" Option.This option is used with random access devices.  This option dividesthe media into slices.  Each slice contains a different range of blocksto operate on in a separate process.  If no pattern is specified, theneach slice is started with a unique data pattern.  Subsequent passesalternate through \fIdt's\fP 12 internal patterns..EX    Syntax:        slices=value     The number of disk slices to test..EENote:  This option can be used in conjuntion with multiple processesand/or asynchronous I/O options to generate a heavy I/O load, greatfor stress testing!.nh 2 Record Skip \&"\fIskip=\fP\&" Option.This option specifies the numer of records to skip prior to startingeach write and/or read pass of each test.  The skips are accomplishedby reading records..EX    Syntax:        skip=value       The number of records to skip past..EE.nh 2 Record Seek \&"\fIseek=\fP\&" Option.This option specifies the number of records to seek past prior tostarting each write and/or read test.  The seeks are accomplished bylseek()'ing past records, which is much faster than skipping when usingrandom access devices (\fIdd\fP could use this option)..EX    Syntax:        seek=value       The number of records to seek past..EE.nh 2 Data Step \&"\fIstep=\fP\&" Option.This option is used to specify non-sequential I/O requests to randomaccess devices.  Normally, \fIdt\fP does sequential read & writes, butthis option specifies that step bytes be seeked past after each request..EX    Syntax:        step=value       The number of bytes seeked after I/O..EE.nh 2 Terminal Speed \&"\fIspeed=\fP\&" Option.This option specifies the terminal speed (baud rate) to setup prior toinitiating the test.  Although \fIdt\fP supports all valid baud rates, somespeeds may not be supported by all serial line drivers, and in some cases,specifying higher speeds may result in hardware errors (e.g., silo overflow,framing error, and/or hardware/software overrun errors).  The valid speedsaccepted by \fIdt\fP are:.EX         0        50        75       110       134       150       200       300       600      1200      1800      2400      4800      9600     19200     38400      57600   115200.EEAlthough a baud rate of zero is accepted, this is done mainly for testingpurposes (some systems use zero to hangup modems).  The higher baud ratesare only valid on systems which define the Bxxxxx speeds in termios.h..HSSpecial Notes:.buThe default speed is 9600 baud..LP.EX    Syntax:        speed=value      The tty speed (baud rate) to use..EE.nh 2 Terminal Read Timeout \&"\fItimeout=\fP\&" Option.This option specifies the timeout to use, in 10ths of a second, whentesting terminal line interfaces.  This is the timeout used between eachcharacter after the first character is received, which may prevent testsfrom hanging when a character is garbled and lost..HSSpecial Notes:.buThe default terminal timeout is 3 seconds..buThe default timeout is automatically adjusted for slow baud rates..LP.EX    Syntax:        timeout=value    The tty read timeout in .10 seconds..EE.nh 2 Terminal Read Minimum \&"\fIttymin=\fP\&" Option.This option specifies the minmum number of characers to read, sets theVMIN tty attribute..HSSpecial Notes:.buThe tty VMIN field normally gets sets to the value of the block size(\fIbs=balue\fP)..buNote that on some systems, the VMIN field is an \fIunsigned char\fP,so the maximum value is 255..buOn QNX, this field is an \fIunsigned short\fP, so a maximum of 65535is valid..LP.EX    Syntax:        ttymin=value     The tty read minimum count (sets vmin)..EE.nh 2 Multiple Volumes \&"\fIvolumes=\fP\&" Option..nh 2 Multi-Volume Records \&"\fIvrecords=\fP\&" Option.These options are used with removal media devices, to define how manyvolumes and records on the last volume to process (i.e., tapes, etc).  By using these options, you do not have to \fIguess\fP at a data limitor record limit, to overflow onto subsequent volumes.  These optionsautomatically sets the "\fIenable=multi\fP" option. .EX    Syntax:        volumes=value    The number of volumes to process.        vrecords=value   The record limit for the last volume..EE.nh 2 Enable \&"\fIenable=\fP\&" & Disable "\fIdisable=\fP" Options.These options are used to either enable or disable program flags whicheither alter default test modes, test actions, or provide additionaldebugging information.  You can specify a single flag or multiple flagseach seperated by a comma (e.g., "\fIenable=aio,debug,dump\fP")..EX    Syntax:        enable=flag      Enable one or more of the flags below.        disable=flag     Disable one or more of the flags below..EEThe flags which can be enabled or disabled are described below..nh 3 POSIX Asynchronous I/O \&"\fIaio\fP\&" Flag.This flag is used to control use of POSIX Asynchronous I/O during testing,rather than the synchronous I/O read() and write() system calls..HSSpecial Notes:.buThis test mode is only supported on the Tru64 UNIX Operating Systemat this time.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -