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

📄 dt.html

📁 Linux磁盘测试的源代码,测试磁盘的读写性能
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE>Data Test Program (dt)</TITLE></HEAD><BODY BGCOLOR="#D98719"><CENTER><H2><STRONG>Data Test Program (<I>dt</I>)</STRONG></H2></CENTER><H2>What Is this Program Used For?</H2>    <I>dt</I> is a generic data test program used to verify proper operation ofperipherals, file systems, device drivers, or any data stream supported by theoperating system.  In its' simplest mode of operation, <I>dt</I> writes and thenverifys its' default data pattern, then displays performance statisics and othertest parameters before exiting.  Since verification of data is performed,<I>dt</I> can be thought of as a generic diagnostic tool.<P>    <I>dt</I> is conditionalized to run on Digital UNIX, SUN, ULTRIX, OSF/MK,QNX, Linux, and Windows/NT operating systems.  The Windows/NT version requiresthe Cygnus Solutions<A HREF="http://sourceware.cygnus.com/cygwin"><I>cygwin</I> toolkit</A>.<P>    <I>dt</I> command lines are similar to the <I>dd</I> program, which ispopular on most UNIX systems.  It contains numerous options to give the usercontrol of various test parameters.<P>    <I>dt</I> has been used to successfully test disks, tapes, serial lines,parallel lines, pipes, and memory mapped files.  In fact, <I>dt</I> can be usedfor any device that allows the standard open, read, write, and close systemcalls.  Special support is necessary for some devices, such as serial lines,for setting up the speed, parity, data bits, etc.<H2>Latest <I>dt</I> Kits:</H2><DL><DD><A HREF="ftp/dt/dt-Overview.ppt"><I>dt</I> Program Overview (PowerPoint).</A><DD><A HREF="ftp/dt/dt-UsersGuide.pdf"><I>dt</I> User's Manual (.pdf)</A> thanks to Hank Jakiela<DD><A HREF="ftp/dt/dt-UsersGuide.ps.gz"><I>dt</I> User's Manual (Postscript).</A><DD><A HREF="ftp/dt/dt-source.tar.gz">Latest <I>dt</I> source kit Version 14.2</A><DD><A HREF="ftp/dt/dt-V3.2.tar.gz">Digital Unix V3.2x <I>dt</I> executable.</A><DD><A HREF="ftp/dt/dt-ptos.tar.gz">Tru64 Unix V4.0F <I>dt</I> executable.</A><DD><A HREF="ftp/dt/dt-dlm.tar.gz">TruCluster Wave V1.6 <I>dt</I> executable.</A><DD><A HREF="ftp/dt/dt-Wave4.tar.gz">TruCluster Wave 4.0 <I>dt</I> executable.</A><DD><A HREF="ftp/dt/dt-steelos.tar.gz">Tru64 Unix T5.0 <I>dt</I> executable.</A><DD><A HREF="ftp/dt/dt-win32.tar.gz">Windows/NT Data Test Program <I>dt</I> Kit.</A><DD><A HREF="ftp/linux/alpha-dt.tar.gz">Linux Alpha Data Test Program <I>dt</I> Kit.</A><DD><A HREF="ftp/linux/intel-dt.tar.gz">Linux Intel Data Test Program <I>dt</I> Kit.</A><DD><A HREF="ftp/FreeBSD/dt-FreeBSD.tar.gz">FreeBSD 4.0 Data Test Program <I>dt</I> Kit.</A>.<DD><A HREF="ftp/sco/dt-sco.tar.gz">SCO UnixWare 7.1 Data Test Program <I>dt</I> Kit.</A></DL><P>Unpack the above archives via: "<B>gzip -dc kit-name.tar.gz | tar xvf -</B>"<H3>Please Note:</H2> While the latest <I>dt</I> source is <B>Version 14.2</B>,only the latest operating system releases are kept up to date.  Also, if you arerunning with Zincos, you may wish to download and recompile from scratch via:<P><PRE>	% <B>cp -p Makefile.linux Makefile</B>	% <B>make clean</B> ; <B>make depend</B> ; <B>make</B></PRE><H2>Latest Changes:</H2><DL><DD><A HREF="dt/WhatsNew-Jan29,2001.html">What's New as of January 29th, 2001</A> (Version 14.2)<DD><A HREF="dt/WhatsNew-Apr02,2000.html">What's New as of April 2nd, 2000</A> (Version 13.10)<DD><A HREF="dt/WhatsNew-Jan12,2000.html">What's New as of January 12th, 2000</A> (Version 13.0)<DD><A HREF="dt/WhatsNew-Nov11,1999.html">What's New as of November 11th, 1999</A> (Version 12.10)<DD><A HREF="dt/WhatsNew-Aug02,1999.html">What's New as of August 2nd, 1999</A> (Version 12.3)<DD><A HREF="dt/WhatsNew-Jan13,1999.html">What's New as of January 13th, 1999</A> (Version 11.3)<DD><A HREF="dt/WhatsNew-Apr08,1998.html">What's New as of April 8th, 1998</A> (Version 10.15)<DD><A HREF="dt/WhatsNew-Jan28,1998.html">What's New as of January 28th, 1998</A> (Version 10.12)<DD><A HREF="dt/WhatsNew-May14,1997.html">What's New as of May 14th, 1997</A> (Version 10.8)<DD><A HREF="dt/WhatsNew-Mar30,1996.html">What's New as of March 30th, 1996</A> (Version 10.2)<DD><A HREF="dt/WhatsNew-Feb21,1996.html">What's New as of February 21st, 1996</A> (Version 9.4)<DD><A HREF="dt/WhatsNew-Dec09,1995.html">What's New as of December 9th, 1995</A> (Version 9.0)<DD><A HREF="dt/WhatsNew-Jul27,1995.html">What's New as of July 27th, 1995</A> (Version 8.0)</DL><HR><A HREF="mailto:Robin.Miller@compaq.com"><IMG SRC="gifs/mailbox.gif" ALT="Mail"></A>Send mail to admin of this page: <EM>Robin.Miller@compaq.com</EM> <A HREF="index.html"><IMG SRC="gifs/home04.gif" ALT="Home"></A>To Robin's home page.<P>Last modified: February 14th, 2001<HR><H2>Uses For <I>dt</I>:</H2>Those people with an imagination can find many uses for <I>dt</I>, butI'll list a few just to whet your appetite:<UL><LI>Testing of tape devices using different block sizes to determinethe best blocking factor for optimum performance and capacity.This is very important for streaming tapes devices.<LI>Write tapes to end of tape, to determine the total tape capacity.This gives the total data capacity of tapes, after inter-recordgaps, preamble/postambles, or pad blocks are written on the tape.<LI>Read existing tapes with data comparison disabled, to determinethe amount of data on the tape.  This is useful to determine howmuch disk space is required to read in a tape, or to simply verifythe tape can be read without errors.<LI>Reading/writing an entire tape to ensure device drivers properlysense and handle end of tape error conditions.<LI>Write a tape and ensure it can be read on another tape drive totest drive compatibility (also referred to as transportability).<LI>Read multiple tape files to ensure file marks and end of tape arereported and handled properly by tape drivers.<LI>I/O to disks using the raw device interface, to determine theoptimum performance of the controller.  This usually gives agood indication of how well the controller cache or read-aheadimproves I/O performance for sequential file access.<LI>I/O to disk files through the file system, to determine the affectthe buffer cache has on write and read performance.  You must knowthe characteristics of your O/S's buffer cache to select file sizesto either get optimum performance from the cache, or to defeat theaffect of the buffer cache.<LI>Reading/writing of entire disks, to ensure the media capacity anderror handling is properly reported by device drivers.<LI>Test memory mapped files to compare I/O performance against rawand file system I/O.  Typically, memory mapped I/O approaches theraw device performance.<LI>Testing I/O to files on NFS mounted file systems.  This will giveyou a good indication of your ethernet performance to remote files.<LI>Writing/reading pipes to verify pipe operation and performance.<LI>Initiating multiple processes to test optimizations of buffer cache,device drivers, and/or intelligent controllers.  This is also usefulto test multiple device access and for loading the I/O sub-system.<LI>Force I/O at different memory boundaries to test low level driverhandling.  Using the align option, you can set memory alignment fortesting specialized device driver DMA code.  This is very usefulwhen developing new I/O sub-systems.<LI>Do loopback testing of parallel or serial lines on either the samesystem or different systems.  This is a useful compatibility testwhen running different machines running different operating systems.<LI>Enable POSIX Asynchronous I/O to verify proper operation of this APIand to determine performance gains (over standard synchronous I/O).This is also useful for queuing multiple I/O requests to drivers andfor testing SCSI tag queuing and RAID configurations.<LI>Specify variable record options for testing variable tape devices.<LI>On Tru64 cluster systems, distributed lock manager (DLM) options canbe used to control access to shared devices or files.<LI>Also available on Tru64 UNIX is the ability to use Extended Errorinformation (EEI) to detect and recover from SCSI bus/device resets(tape is repositioned for continuing the test).</UL>    Although I've started to add specific testing of serial lines with modemcontrol, this support is incomplete and untested.<P>    I hope you find <I>dt</I> as useful as I have.  This is usually one of thefirst tools I port to a new operating system, since it's an excellent diagnosticand performance tool.<H2>Help Text:</H2><PRE>% <B>dt help</B>Usage: dt options...    Where options are:        if=filename      The input file to read.

⌨️ 快捷键说明

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