home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 27 / CDROM27.iso / share / dos / drsp-220.exe / README.TXT < prev   
Encoding:
Text File  |  1998-09-13  |  11.6 KB  |  273 lines

  1.                                DriveSpeed (DRSP)
  2.                             Version 2.20 SHAREWARE
  3.  
  4.                        Copyright (c) Stanislav Sokolov,
  5.                              May 1998 and onwards
  6.  
  7.  
  8.  
  9. 1.  What is DRSP?
  10. 2.  Why DRSP?
  11. 3.  What DRSP does?
  12. 4.  What DRSP does not do?
  13. 5.  COMMAND-line arguments.
  14. 6.  Common errors.
  15. 7.  Contacting the author.
  16. 8.  History.
  17. 9.  Disclaimer.
  18. 10. PS.
  19.  
  20. ==============================================================================
  21.  
  22. 1. What is DRSP?
  23. ----------------
  24.  
  25. DRSP is a program that tests the write and read speed of any write-enabled
  26. drive (no CD-ROM) by performing a series of DOS I/O operations. It allows you
  27. to adjust test parameters and log the results.
  28.  
  29.  
  30. 2. Why DRSP?
  31. ------------
  32.  
  33. For some time ago I discovered that there were no (known to me) programs,
  34. which would give a relevant information about any drives' speed. Some
  35. benchmarking programs give you a number (such as 13.8), which does not really
  36. tell you *how* fast (or slow) your drive works. Some programs, which give a
  37. MB/Min information can only test physical drives, leaving all other drives
  38. untested. I could not put up with such situation, and put together a small
  39. DRSP ver. 1.0, using QuickBASIC 4.5. That version was never published. Having
  40. improved my programming skills, I have totally rewritten the program in C++.
  41.  
  42.  
  43. 3. What DRSP does?
  44. ------------------
  45. Drive Speed uses the most common sequential write and read operations
  46. performed via DOS functions 3fH and 40H. The program can test almost any drive
  47. - physical or device driven - if there is enough disk space available.
  48.  
  49. First of all the program can check which drives are available, list them
  50. together with information about free and total space, and volume label.
  51.  
  52. You will then be asked several questions to prepare the program for the test.
  53. The first one is which drive to test. Simply press the relative drive letter
  54. in answer to that question.
  55.  
  56. Next question is about the size of the test file. You specify the amount in
  57. megabytes. The program then translates the value to kilobytes and compares it
  58. against the available space on the drive. If the value you specified is larger
  59. than the free space, the test-file size will be adjusted to match the free
  60. space. A too small value will produce inaccurate results. I would recommend
  61. 0.5MB for testing of floppy drives, and 3 to 5MB for other drives as minimum
  62. values.
  63.  
  64. The last question is about how many times the program should repeat the test.
  65. The absolute minimum is 3, while the value of 5 will give a reliable result.
  66.  
  67. The test is then run. It can only be aborted either after write or read
  68. operations. Just press 'Esc', and the test will be aborted as soon as
  69. possible. If you abort the test, no results will be displayed. Do not use
  70. Ctrl-Break - the program installs a routine, which would ignore Ctrl-Break or
  71. ^C signals. During the test the program writes the file (DRSPTEST.TMP) to the
  72. root of the specified drive, and then reads it, accumulating the time consumed
  73. by the operations.
  74.  
  75. Then DRSP performs a File Access Speed (FAS) test. That means that the program
  76. creates, opens, closes and deletes a file during 15 seconds the test is run.
  77. After this test the results are converted to the number of operations per
  78. second. Many benchmarking programs perform Disk Access Speed tests, totally
  79. forgetting that DOS also consumes some time, while performing a file
  80. operation. This is especially true for floppy disks. When one copies a large
  81. amount of files to a floppy, almost half of the copying time goes on creating,
  82. opening and closing files on the floppy.
  83.  
  84. At the end of the test you will be prompted to store the results in a log-file
  85. DRSP.LOG. If you answer affirmative, you will be asked to enter a one-line
  86. comment to the test. Here you can for example write what kind of machine and
  87. configuration you had. The result will be appended to previous results.
  88. DRSP.LOG is a plain ASCII test-file, which is stored in the same directory,
  89. where the executable is situated. The program is followed by a log-file with
  90. the results from my system.
  91.  
  92.  
  93. 4. What DRSP does not do?
  94. -------------------------
  95.  
  96. DRSP is rather a safe program - it performs no low-level I/O operations,
  97. redirecting everything through DOS. It makes it a bit slower than it otherwise
  98. could have been, but after all, 90% of all applications perform their I/O
  99. operations through DOS services. Thus the results are not so far away from the
  100. average performance.
  101.  
  102. DRSP does not check if you have any disk caching utility installed, though
  103. disk caching affects the results. Here again the results are adequate as you
  104. would normally run your system with some caching utility on.
  105.  
  106. DRSP does not check if it is testing a compressed drive (suck as Stacker).
  107. Although DRSP tries to determine free space availably and not to exceed it,
  108. some compressed drives will report more space than it is actually available.
  109. In this case a write error during test may occur. Simply repeat the test with
  110. a smaller size of a test-file. (Test file has an average compression ratio of
  111. 1.0:1 - that is, it can't be compressed.)
  112.  
  113. DRSP must write its test file first. That means that the program is unable to
  114. test write-protected or read-only drives (protected floppies, CD-ROMs, etc).
  115.  
  116. DRSP uses a DOS function, which only appeared with DOS 4.0, so it won't run on
  117. elder versions.
  118.  
  119. DRSP won't crash your disk. At the first sight of a write error it will
  120. terminate the test with an error message.
  121.  
  122.  
  123. 5. COMMAND-line arguments.
  124. --------------------------
  125.  
  126. DRSP accepts arguments, passed to it from COMMAND-line.
  127.  
  128.      n:                  Specify which drive to test. n is the drive letter
  129.                          ranging from A through Z. Both upper and lower case
  130.                          letters are allowed.
  131.  
  132.      /sn.n or /Sn.n      Set Size of the test-file, where n.n is the size in
  133.                          megabytes.
  134.  
  135.      /tn or /Tn          Set the number of Turns the test shall be repeated. n
  136.                          is the number between 3 and 999.
  137.  
  138.      /?                  Help screen.
  139.  
  140. If you omit any of the parameters, or enter an invalid value, you will be
  141. prompted to enter the value from inside the program. There must be no blank
  142. characters (space or tab) between the switch and the value it specifies. If
  143. you make use of COMMAND-line arguments, the question about searching available
  144. drives will not be shown.
  145.  
  146. Examples: DRSP c: /t5 /s4.5   Test drive C: using 4.5MB test-file, and
  147.                               repeating the test 5 turns.
  148.           DRSP c: -s4.5       The same as above, only you will be prompted to
  149.                               enter the number of turns from within the
  150.                               program.
  151.           DRSP c: /t 7 /s 8   Error! The program will ask you to enter both
  152.                               the number of turns and the size.
  153.  
  154.  
  155. 6. Common errors.
  156. -----------------
  157.  
  158. There are four known possible error types:
  159.  
  160.      I.   Error opening test-file. - Can occurs at the beginning of a test.
  161.           The program was unable to open a test file because: a) The drive you
  162.           wish to test is write-protected (or a CD-ROM drive) b) DRSPTEST.TMP
  163.           already exists in write-protected form, c) you did not have any more
  164.           root directory entries available, d) there was a disk error (run
  165.           ScanDisk, NDD or something like that).
  166.  
  167.      II.  Error writing to file. - Can occurs during the test. The program was
  168.           unable to write to the test-file due to one of the following
  169.           reasons: a) disk was unexpectedly full because another process in a
  170.           multi-tasking environment (Windows) filled it b) a compressed drive
  171.           reported more space than it is actually available (DRSP writes
  172.           random-generated strings so that test-file can almost not be
  173.           compressed).
  174.  
  175.      III. Overflow in a variable. - Can occur after the test. You selected a
  176.           too small test-file size on a relatively fast drive. This will
  177.           produce unrealistically huge speed-results, which can eventually
  178.           overflow the variables.
  179.  
  180.      IV.  Critical error while ... a file. - This error message type can occur
  181.           during FAS test. Ellipsis represent the operation which caused an
  182.           error. Though, if the first part of the test was successful, there
  183.           is no reason why FAS should fail.
  184.  
  185. Warning:  If the program is terminated during the test in an abnormal way,
  186.           such as power off, test file DRSPTEST.TMP will not be deleted. You
  187.           should then remove it manually. It is placed in the root directory
  188.           of the drive you tested prior the termination.
  189.  
  190. I have thoroughly debugged the program, but I am not the God, so there may
  191. still be some flaws remaining in the code.
  192.  
  193. If you experience any other errors, not listed here, please send me a letter
  194. (or e-mail) telling about them (see Contacting the author). Please include
  195. which parameters you selected (test-size, # of turns), and the characteristics
  196. of the drive you tried to test.
  197.  
  198.  
  199. 7. Contacting the author.
  200. -------------------------
  201.  
  202. If you have any comments, suggestions or bug-reports, please contact me either
  203. by e-mail or snail-mail. My addresses are:
  204.  
  205. Snail-mail:
  206.      Stanislav Sokolov,
  207.      Snorresvei 24,
  208.      1473 SKÅRER,
  209.      Norway
  210.  
  211. E-mail:
  212.      stanislavs@hotmail.com
  213. or
  214.      stanisls@sokrates.uio.no
  215.  
  216. Internet:
  217.      http://members.tripod.com/~stanislavs/
  218.  
  219. This program is SHAREWARE. If you find this program useful, please send a
  220. 10-15 USD equivalent to the address listed above. This will ennoble your
  221. spirit and provide you with free support and updates on new releases of this
  222. and other of my programs. Thank you.
  223.  
  224.  
  225. 8. History.
  226. -----------
  227.  
  228. Version        What's new.
  229. ..............................................................................
  230.  
  231. 2.20           File Access Speed (FAS) test added. Minor cosmetic
  232.                improvements. Code is modified to give better memory usage.
  233.                Pressing 'Esc' while entering comments does not abort appending
  234.                of results to the log-file. (After all, the user gets a
  235.                separate question if he/she wishes to append the results!)
  236.  
  237. 2.10           Added COMMAND-line arguments. One can now bypass the questions
  238.                inside the program. Added handler for floating point errors.
  239.  
  240. 2.01           Corrected the bug from ver 2.00. Added the possibility of
  241.                aborting the test while it is running, by pressing 'Esc'. Added
  242.                RAM-drive detection.
  243.  
  244. 2.00           The program is totally re-written in C++. It has become faster,
  245.                and more user-friendly. Alas, after releasing it on
  246.                DOWNLOAD.COM, I discovered a bug, which prevented users from
  247.                selecting a drive to test. About 370 people downloaded this
  248.                version before corrected ver 2.01 got into release. If you are
  249.                one of those - sorry.
  250.  
  251. 1.00           The program is born in QuickBASIC 4.5. It's functional, but not
  252.                user-friendly at all, and a bit slow. It has never got
  253.                released.
  254.  
  255.  
  256. 9. Disclaimer.
  257. --------------
  258.  
  259. #include <standard_disclaimer.h>
  260.      or see
  261. http://members.tripod.com/~stanislavs/prog/prog.htm
  262.  
  263.  
  264. 10. PS.
  265. -------
  266.  
  267. Are you a programmer yourself? You might like to have a look at the source
  268. code of this program. In so case download it from Internet:
  269. http://members.tripod.com/~stanislavs/src/drsp.cpp
  270.  
  271. ==============================================================================
  272.                                End of README.TXT
  273.