📄 dt-usersguide.t
字号:
.buBeware, you may need to rebuild \fIdt\fP on new versions of Tru64 Unixdue to POSIX changes and/or AIO library changes between major releases..buReference the "\fIaios=\fP" option, for more special notes..LP.EX Flag: aio POSIX Asynchronous I/O.(Default: disabled).EE.nh 3 Reporting Close Errors \&"\fIcerror\fP\&" Flag.This flag controls where close errors are reported as an error or afailure. When disabled, close errors are reported as a warning.This flag is meant to be used as a workaround for device drivers whichimproperly return failures when closing the device. Many systemutilities ignore close failures, but when testing terminals andtapes, the close status us \fIvery\fP important. For example withtapes, the close reflects the status of writing filemarks (whichalso flush buffered data), and the rewind status..EX Flag: cerrors Report close errors. (Default: enabled).EE.nh 3 Data Comparison \&"\fIcompare\fP\&" Flag.This flag disables data verification during the read pass of tests.This flag should be disabled to read to end of file/media to obtainmaximum capacity statistics, or to obtain maximum performance statistics(less overhead)..EX Flag: compare Data comparison. (Default: enabled).EE.nh 3 Core Dump on Errors \&"\fIcoredump\fP\&" Flag.This flag controls whether a core file is generated, via abort(), when\fIdt\fP is exiting with a failure status code. This is mainly used forprogram debug, and is not of much interest to normal users. When testingmultiple processes, via fork(), this is the only way to debug since thestandard \fIdbx\fP debugger can't be used with child processes (this isfinally changing in the Tru64 UNIX V2.0 release, we've waited a long time)..EX Flag: coredump Core dump on errors. (Default: disabled).EE.nh 3 Diagnostic Logging \&"\fIdiag\fP\&" Flag.This option is only valid on Tru64 Unix. When enabled, error messagesget logged to the binary error logger. This is useful to correlatedevice error entries with test failures. Please note, the loggingonly occurs when running as superuser (API restriction, not mine!)..EX Flag: diag Log diagnostic msgs. (Default: disabled).EE.nh 3 Debug Output \&"\fIdebug\fP\&" Flag..nh 3 Verbose Debug Output \&"\fIDebug\fP\&" Flag..nh 3 Random I/O Debug Output \&"\fIrdebug\fP\&" Flag.These flags enable two different levels of debug, which are useful whentrouble-shooting certain problems (i.e., what is \fIdt\fP doing to causethis failure?). Both flags can be specified for full debug output..EX Flag: debug Debug output. (Default: disabled) Debug Verbose debug output. (Default: disabled) rdebug Random debug output. (Default: disabled).EE.nh 3 Dump Data Buffer \&"\fIdump\fP\&" Flag.This flag controls dumping of the data buffer during data comparision failures.If a pattern file is being used, then the pattern buffer is also dumped foreasy comparision purposes. To prevent too many bytes from being dumped, esp.when using large block sizes, dumping is limited to 64 bytes of data..HSSpecial Notes:.buWhen the failure occurs within the first 64 bytes of the buffer, dumpingstarts at the beginning of the buffer..buWhen the failure occurs at some offset within the data buffer, then dumpingstarts at (data limit/2) bytes prior to the failing byte to provide context..buThe start of the failing data is marked by an asterisk '*'..buYou can use the \fIdlimit=\fP option to override the default dump limit..buBuffer addresses are displayed for detection of memory boundary problems..LP.EX Flag: dump Dump data buffer. (Default: enabled).EE.nh 3 Tape EEI Reporting \&"\fIeei\fP\&" Flag.This option controls the reporting of Extended Error Information (EEI)on Tru64 UNIX systems, for tape devices when errors occur. The standardtape information available from \fImt\fP is reported, along with the EEIstatus, CAM status, and SCSI request sense data. This is excellentinformation to help diagnose tape failures. (thank-you John Meneghini!).EX Flag: eei Tape EEI reporting. (Default: enabled).EE.nh 3 Tape Reset Handling \&"\fIresets\fP\&" Flag.This option is used during SCSI bus and device reset testing, toreposition the tape position (tapes rewind on resets), and tocontinue testing. This option is only enabled for Tru64 UNIXsystems (currently), since this option requires reset detectionfrom EEI status, and tape position information from the CAM tapedriver (although \fIdt\fP also maintains the tape position as asanity check against the drivers' data)..EX Flag: resets Tape reset handling. (Default: disabled).EE.nh 3 Flush Terminal I/O Queues \&"\fIflush\fP\&" Flag.This flag controls whether the terminal I/O queues get flushed beforeeach test begins. This must be done to ensure no residual characters areleft in the queues from a prior test, or else data verification errors willbe reported. Residual characters may also be left from a previous XOFF'edterminal state (output was suspended)..EX Flag: flush Flush tty I/O queues. (Default: enabled).EE.nh 3 Log File Header \&"\fIheader\fP\&" Flag.When a log file is specified, \fIdt\fP automatically writes the commandline and \fIdt\fP version information at the beginning of the log file.This option allows you to control whether this header should be written..EX Flag: header Log file header. (Default: enabled).EE.nh 3 Logical Block Data Mode \&"\fIlbdata\fP\&" Flag.This option enables a feature called logical block data mode. This featureallows reading/writing of a 4-byte (32-bit) logical block address at thebeginning of each data block tested. The block number is stored usingSCSI byte ordering (big-endian), which matches what the SCSI Write Samew/lbdata option uses, so \fIdt\fP can verify this pattern, generatedby \fIscu\fP's "write same" command..HSSpecial Notes:.buThe starting logical block address defaults to 0, unless overridden withthe "\fIlba=\fP" option..buThe logical block size defaults to 512 bytes, unless overridden withthe "\fIlbs=\fP" option..buThe logical block address is always inserted started at the beginning ofeach data block (record)..buEnabling this feature will degrade performance statistics (slightly)..LP.nh 3 Enable Loopback Mode \&"\fIloopback\fP\&" Flag.This flag specifies that either the input or output file should be usedin a loopback mode. In loopback mode, \fIdt\fP forks(), and makes thechild process the reader, while the parent process becomes the writer.In previous versions of \fIdt\fP, you had to specify both the same inputand output file to enable loopback mode. When specifying this flag,\fIdt\fP automatically duplicates the input or output device, which isa little cleaner than the old method (which still works)..PPSome people may argue that \fIdt\fP should automatically enable loopbackmode when a single terminal or FIFO device is detected. The rationalebehind not doing this is described below:.bn .You may wish to have another process as reader and/or writer (which alsoincludes another program, not necessarily \fIdt\fP)..bnYou may wish to perform device loopback between two systems (e.g., toverify the terminal drivers of two operating systems are compatible)..bnA goal of \fIdt\fP is \fInot\fP to force (hardcode) actions or optionsto make the program more flexible. A minimum of validity checking isdone to avoid being too restrictive, although hooks exists to do this..LP.HSSpecial Notes:.buThe read verify flag is automatically disabled..buThis mode is most useful with terminal devices and/or FIFO's (named pipes)..LP.nh 3 Microsecond Delays \&"\fImicrodelay\fP\&" Flag.This flag tells \fIdt\fP that delay values, i.e. "\fIsdelay=\fP" and others,should be executed using microsecond intervals, rather the second intervals.(thank-you George Bittner for implementing this support!).EX Flag: microdelay Microsecond delays. (Default: disabled).EE.nh 3 Memory Mapped I/O \&"\fImmap\fP\&" Flag.This flag controls whether the memory mapped API is used for testing.This test mode is currently supported on SUN/OS, Tru64 UNIX, and Linuxoperating systems..HSSpecial Notes:.buThe block size specified "\fIbs=\fP" \fImust\fP be a multiple of the systemdependent page size (normally 4k or 8k)..buAn msync() is done after writing and prior to closing to force modifiedpages to permanent storage. It may be useful to add an option to inhibitthis action at some point, but my testing was specifically to time mmapperformance. Obviously, invalidating the memory mapped pages, kind ofdefeats the purpose of using memory mapped files in the first place..buSpecifying multiple passes when doing a read verify test, gives you agood indication of the system paging utilization on successive passes..buMemory mapping large data files (many megabytes) may exhaust certainsystem resources. On an early version of SUN/OS V4.0?, I could hang mysystem by gobbling up all of physical memory and forcing paging (thiswas certainly a bug which has probably been corrected since then)..LP.EX Flag: mmap Memory mapped I/O. (Default: disabled).EE.nh 3 Test Modem Lines \&"\fImodem\fP\&" Flag.This flag controls the testing of terminal modem lines. Normally,\fIdt\fP disables modem control, via setting CLOCAL, to prevent testsfrom hanging. When this flag is enabled, \fIdt\fP enables modem control,via clearing CLOCAL, and then monitoring the modem signals looking foreither carrier detect (CD) or dataset ready (DSR) before allowing thetest to start..HSSpecial Notes:.buThe program does not contain modem signal monitoring functions for theall operating systems. The functions in \fIdt\fP are specific toTru64 UNIX and ULTRIX systems, but these can be used as templates forother operating systems..LP.EX Flag: modem Test modem tty lines. (Default: disabled).EE,nh 3 Multiple Volumes \&"\fImulti\fP\&" Flag.This flag controls whether multiple volumes are used during testing.When this flag is enabled, if the data limit or record count specifieddoes not fit on the current loaded media, the user is prompted toinsert the next media to continue testing. Although this is usedmostly with tape devices, it can be used with any removeable media..EX Flag: multi Multiple volumes. (Default: disabled).EE.nh 3 Control Per Pass Statistics \&"\fIpstats\fP\&" Flag.This flag controls whether the per pass statistics are displayed. Ifthis flag is disabled, a single summary line is still displayed perpass and the total statistics are still displayed in the full format..EX Flag: pstats Per pass statistics. (Default: enabled).EE.nh 3 Read After Write \&"\fIraw\fP\&" Flag.This flag controls whether a read-after-write will be performed.Sorry, \fIraw\fP does \fBnot\fP mean character device interface.Normally \fIdt\fP performs a write pass, followed by a read pass.When this flag is enabled the read/verify is done immediately afterthe write..EX Flag: raw Read after write. (Default: disabled).EE.nh 3 Control Program Statistics \&"\fIstats\fP\&" Flag.This flag controls whether any statistics get displayed (both passand total statistics). Disabling this flag also disabled the passstatistics described above..EX Flag: stats Display statistics. (Default: enabled).EE.nh 3 Table(sysinfo) timing \&"\fItable\fP\&" Flag.On Tru64 UNIX systems, this option enables additional timing informationwhich gets reported as part of the statistics display. (thanks toJeff Detjen for adding this support!).EX Flag: table Table(sysinfo) timing. (Default: disabled).EE.nh 3 Unique Pattern \&"\fIunqiue\fP\&" Flag.This flag controls whether multiple process, get a unqiue datapattern. This affects processes started with the "\fIslices=\fP"or the "\fIprocs=\fP" options. This only affects the \fIprocs=\fPoption when writing to a regular file..EX Flag: unique Unique pattern. (Default: enabled).EE.nh 3 Verbose Output \&"\fIverbose\fP\&" Flag.This flag controls certain informational program messages such asreading and writing partial records. If you find these messagesundesirable, then they can be turned off by disabling this flag..EX Flag: verbose Verbose output. (Default: enabled).EE.nh 3 Verify Data \&"\fIverify\fP\&" Flag.This flag controls whether the read verify pass is performed automaticallyafter the write pass. Ordinarily, when specifying an output device viathe "\fIof=\fP" option, a read verify pass is done to read and perform adata comparision. If you only wish to write the data, and omit the dataverification read pass, then disable this flag..EX Flag: verify Verify data written. (Default: enabled).EE.HS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -