home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / cdqck120 / cdquick.txt < prev    next >
Text File  |  1995-06-11  |  64KB  |  1,276 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.                                   C D - Q U I C K
  19.                                      C a c h e
  20.  
  21.                                     Version 1.20
  22.  
  23.  
  24.  
  25.  
  26.                               Program Reference Manual
  27.  
  28.  
  29.                         Copyright (c) 1994-95 by Peter Volpa
  30.                                 All Rights Reserved
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.                                     _______
  45.                                ____|__     |                (R)
  46.                             --|       |    |-------------------
  47.                               |   ____|__  |  Association of
  48.                               |  |       |_|  Shareware
  49.                               |__|   o   |    Professionals
  50.                             -----|   |   |---------------------
  51.                                  |___|___|    MEMBER
  52.  
  53.  
  54.  
  55.                                     Peter Volpa
  56.                                   Circuit Systems
  57.                                   418 Church Road
  58.                           Sicklerville, NJ 08081-1727  USA
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                  TABLE OF CONTENTS
  65.  
  66.  
  67.  
  68.  
  69.         Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  70.              Features . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  71.              System Requirements  . . . . . . . . . . . . . . . . . . . .  2
  72.  
  73.         License . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  74.  
  75.         Ordering Information  . . . . . . . . . . . . . . . . . . . . . .  4
  76.              Registering CD-QUICK Cache by Credit Card  . . . . . . . . .  4
  77.              Registering in Europe  . . . . . . . . . . . . . . . . . . .  5
  78.              Registering via CompuServe . . . . . . . . . . . . . . . . .  5
  79.  
  80.         Disclaimer  . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  81.  
  82.         Trademarks  . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  83.  
  84.         Measuring Existing CD-ROM Performance . . . . . . . . . . . . . .  6
  85.  
  86.         Installing CD-Quick Cache . . . . . . . . . . . . . . . . . . . .  7
  87.              UnInstalling the Software  . . . . . . . . . . . . . . . . .  7
  88.  
  89.         Choosing a Cache Size . . . . . . . . . . . . . . . . . . . . . .  8
  90.  
  91.         Using Multiple CD-ROM Drives  . . . . . . . . . . . . . . . . . .  8
  92.  
  93.         CD-Quick Command Line Parameters Reference  . . . . . . . . . . .  9
  94.              Memory Usage and CD-Quick  . . . . . . . . . . . . . . . . . 12
  95.  
  96.         CD-ROM Drive Performance Testing  . . . . . . . . . . . . . . . . 13
  97.              Displaying Cache Statistics from DOS . . . . . . . . . . . . 14
  98.              Displaying Cache Statistics from Windows . . . . . . . . . . 14
  99.  
  100.         CD-ROM Drive Mechanics and Why CD-Quick Cache Helps . . . . . . . 15
  101.  
  102.         Revision History  . . . . . . . . . . . . . . . . . . . . . . . . 16
  103.  
  104.         Appendix A - Error Messages . . . . . . . . . . . . . . . . . . . 17
  105.  
  106.         Appendix B - Common Questions and Answers . . . . . . . . . . . . 19
  107.  
  108.         Appendix C - Comparing CD-Quick to Microsoft's SmartDrive 5.0+  . 20
  109.  
  110.         Appendix D - Distribution Points for CD-Quick Cache . . . . . . . 22                                                                            1
  111.  
  112.         Introduction
  113.  
  114.         CD-ROM drives are wonderful pieces of technology.  By using optics
  115.         instead of magnetics, vast amounts of data can be stored in a small
  116.         amount of space on a plastic disc.  But as with most technology,
  117.         there are always design tradeoffs made.  In the case of a data
  118.         storage system, the tradeoff is between the amount of data that can
  119.         be stored and the speed with which you can access that data.  Even
  120.         with quadruple speed CD-ROM drives, the average time it takes to
  121.         reposition a drive's read head to a new location and start reading
  122.         data is at least a couple of HUNDRED milliseconds.  Compare that
  123.         with the under 15 millisecond access times of today's hard drives. 
  124.         Due to the nature of CD-ROM drive mechanics, this situation will not
  125.         be changing any time soon.  In a word, CD-ROM drives are slow.
  126.  
  127.         Data caching has been used for years to speed up the performance of
  128.         magnetic disk drives.  Caching is a memory management technique that
  129.         reads and stores frequently used data in a memory buffer for fast
  130.         access.  With caching, every time you request data from your drive,
  131.         this data is also placed in a memory buffer.  The next time the data
  132.         is needed it can be found in RAM, so actual disk reads are saved.  
  133.         This results in a tremendous increase in performance.  Until re-
  134.         cently, effective CD-ROM caching has been unavailable.
  135.  
  136.  
  137.         Presenting CD-Quick Cache
  138.  
  139.         CD-Quick Cache will dramatically improve the performance of your
  140.         CD-ROM drive.  By storing frequently read data in fast extended
  141.         (XMS) memory, disc reads are almost instantaneous.  CD-Quick uses an
  142.         intelligent caching algorithm and dynamic read-ahead buffering to
  143.         insure top performance.
  144.  
  145.         CD-Quick is compatible with virtually all CD-ROM hardware and
  146.         software.  It will work with CD-ROM applications that require a DOS
  147.         drive letter as well as with software that bypass the Microsoft CD-
  148.         ROM Extensions (MSCDEX.EXE) and access the CD-ROM device driver
  149.         directly.  The software will also work seamlessly with Microsoft
  150.         Windows and will not conflict with any hard disk caching software.
  151.  
  152.         CD-Quick will operate with up to 26 CD-ROM drives (the DOS maximum
  153.         for drive letters).
  154.  
  155.         Included with CD-Quick Cache are two CD-ROM utilities, CDTEST and
  156.         QUICKMON.  CDTEST will evaluate the performance of your CD-ROM
  157.         system by measuring the time it takes to walk through a CD's direc-
  158.         tory structure and read data.  You can run this test with or without
  159.         CD-Quick installed to benchmark your CD-ROM drive's performance.  
  160.         QUICKMON is a Microsoft Windows application that will give you
  161.         statistical information on CD-ROM and CD-Quick Cache reads.  This
  162.         utility will show the total reads requested by your application, how
  163.         many reads CD-Quick has saved and what this percentage was.                                                                            2
  164.  
  165.         CD-Quick loads as a terminate and stay resident program (TSR).  On
  166.         most systems, the program will use only 11K of conventional memory.  
  167.         This is usually comparable to the typical amount of memory used for
  168.         MSCDEX buffers.  With CD-Quick loaded, these buffers can be reduced. 
  169.         The result in most cases, is almost the same amount of memory is
  170.         used with CD-Quick as without it.  Under DOS 5+, CD-Quick may be
  171.         loaded "high".
  172.  
  173.  
  174.          
  175.         Features:
  176.  
  177.  
  178.              *    Will work with any CD-ROM drive.
  179.  
  180.              *    Can use up to 10MB of extended (XMS) memory for a CD-ROM
  181.                   cache.
  182.  
  183.              *    Easily handles multiple CD-ROM drives.
  184.  
  185.              *    Uses only 11K of conventional memory and can be loaded
  186.                   "high".
  187.  
  188.              *    Uses an intelligent caching algorithm to keep the most
  189.                   frequently read data in the cache and a dynamic read-ahead
  190.                   strategy to anticipate and read the data that needs to be
  191.                   read next.
  192.  
  193.  
  194.  
  195.         System Requirements:
  196.  
  197.              *    An IBM or compatible computer with an 80286 or higher
  198.                   processor and a minimum of 384KB extended (XMS) memory.
  199.  
  200.              *    At least one CD-ROM drive.
  201.  
  202.              *    PC or MS-DOS 3.1 or later.
  203.  
  204.              *    Any standard XMS memory manager such as MS-DOS HIMEM.SYS,
  205.                   386MAX by Qualitas or Quarterdeck's QEMM-386.                                                                            3
  206.  
  207.         License
  208.  
  209.         CD-QUICK Cache is distributed as "shareware".  It is NOT public
  210.         domain or free software.
  211.  
  212.         Non-registered users of this software are given the opportunity to
  213.         evaluate the complete CD-QUICK Cache software package for 30 days
  214.         with no obligation.  If, after the evaluation period, you find
  215.         CD-QUICK to be suitable for your needs, you must register your copy
  216.         or discontinue using CD-QUICK.
  217.  
  218.         What we're saying is if you use this program, then you should pay
  219.         for your copy.  That way Circuit Systems will be able to provide
  220.         updates, support, and generally stay in business.
  221.  
  222.         When you register CD-QUICK you will receive a personal KeyCode and
  223.         the latest version of all the software that comprises the CD-Quick
  224.         package.  Your KeyCode will disable the opening shareware screen and
  225.         may be used with all future versions of CD-Quick.  This means once
  226.         you've registered, you're registered for life.  You may use any new
  227.         versions of CD-Quick Cache as they become available free of charge.
  228.  
  229.         Your KeyCode is derived from your name and may not be distributed in
  230.         any manner.  CD-Quick Cache is LICENSED TO THE SINGLE PERSON WHO
  231.         REGISTERED THE PROGRAM.
  232.  
  233.         All users are granted a limited license to copy the UNREGISTERED
  234.         version (this means everything except your KeyCode) of CD-Quick
  235.         Cache for the trial use of others.  Please feel free to give copies
  236.         of CD-Quick to your friends and associates.  That's what shareware
  237.         is about.
  238.  
  239.         This license does NOT include distribution or copying of this
  240.         software:
  241.  
  242.  
  243.              *    In conjunction with any other product or service.
  244.  
  245.              *    In general use within a company or school.
  246.  
  247.              *    For any "disk fee" other than a small (generally $2.00 to
  248.                   $5.00) copying charge.
  249.  
  250.              *    For distribution in any modified form.  The file contain-
  251.                   ing this license information MUST be included along with
  252.                   full documentation and all the files that make up this
  253.                   software package.
  254.  
  255.  
  256.         The data record in the included VENDINFO.DIZ file contains detailed
  257.         license information governing distribution.                                                                            4
  258.  
  259.         Ordering Information
  260.  
  261.         A CD-Quick Cache registration licenses you to use the product on a
  262.         regular basis.  Registration also entitles you to lifetime technical
  263.         support and allows you free use of all future versions of CD-Quick
  264.         Cache.
  265.  
  266.         An individual registration costs $29.  Upon receipt of your paid
  267.         registration form, we will send you the latest registered version of
  268.         CD-Quick Cache with full documentation on the disk.  New Jersey
  269.         residents should include 6% sales tax.
  270.  
  271.         Site licensing is also available.  Prices are based on the estimated
  272.         number of users.  Please write for more information.
  273.  
  274.         A CD-Quick Cache registration form is included in the distribution
  275.         package for your convenience.  You may print an order form when CD-
  276.         Quick loads by answering "Yes" when asked.  You may also print the
  277.         file ORDERFRM.TXT anytime.  Please take time to fill this out and
  278.         return it.  If you would like high-quality software to continue to
  279.         be made available on a try-first basis and for a reasonable cost, it
  280.         is up to YOU to support such programs.
  281.  
  282.         Please send your registration form, suggestions and any
  283.         comments that you might have to:
  284.  
  285.  
  286.                    Peter Volpa         or       For questions only,
  287.                  Circuit Systems                 no orders.  Call
  288.                  418 Church Road                  (609) 875-5433
  289.              Sicklerville, NJ  08081-1727         12 - 8 PM EST
  290.  
  291.  
  292.         Questions may also be sent by Email on CompuServe to 72202,3043 or
  293.         via the Internet at '72202.3043@compuserve.com'.
  294.  
  295.  
  296.         Registering CD-QUICK Cache by Credit Card
  297.  
  298.         We have established a special arrangement with the Public (software)
  299.         Library for those of you who wish to order by credit card.  For
  300.         credit card orders only, you can order from PsL with your Master
  301.         Card, Visa, AmEx or Discover card by calling 800-242-4PsL (from
  302.         overseas: 713-524-6394).  You may also FAX to 713-524-6398 or
  303.         CompuServe to 71355,470 or mail to PsL, P.O. Box 35705, Houston, TX
  304.         77235-5705.  THESE NUMBERS ARE FOR ORDERING ONLY.  Circuit Systems
  305.         can NOT be reached at those numbers.  To contact Circuit Systems for
  306.         information about dealer pricing, volume discounts, site licensing,
  307.         the status of shipment of the product, the latest version number or
  308.         for technical information, please call Circuit Systems at 609-
  309.         875-5433 or write to Circuit Systems, 418 Church Road, Sicklerville
  310.         NJ 08081-1727 USA.  PsL's order number for CD-QUICK is #11726.
  311.  
  312.         PsL's office hours for phone orders are 7AM-6PM CST Monday-Thursday
  313.         and 7AM-12:30PM CST on Fridays.  Please give your name exactly as it
  314.         appears on your card and the billing address for the card.                                                                            5
  315.  
  316.         Registering in Europe
  317.  
  318.         If you live in Europe, you may also order CD-Quick from Computer
  319.         Solutions Software GmbH in Germany.  Please use the order form 
  320.         EURORDER.TXT when you order from Computer Solutions.
  321.  
  322.  
  323.         Registering via CompuServe
  324.  
  325.         If you are a CompuServe member, you can register CD-Quick Cache
  326.         online.  CD-Quick's registration fee will be included in your
  327.         monthly CompuServe bill.  After you logon, just type 'GO SWREG' for
  328.         CompuServe's shareware registration service.  CD-Quick's registra-
  329.         tion number is #4214.
  330.  
  331.  
  332.         DISCLAIMER
  333.  
  334.         ALTHOUGH WE HAVE EXTENSIVELY TESTED CD-QUICK CACHE AND BELIEVE IT
  335.         WILL PERFORM AS DESCRIBED IF USED CORRECTLY, WE SUPPLY THIS PROGRAM
  336.         AS IS.  CIRCUIT SYSTEMS DISCLAIMS ALL WARRANTIES, EXPRESSED OR
  337.         IMPLIED, THAT THIS PROGRAM IS FIT FOR ANY PURPOSE.  CIRCUIT SYSTEMS
  338.         ALSO ASSUMES NO LIABILITY FOR ANY DAMAGES EITHER DIRECT OR CONSE-
  339.         QUENTIAL, WHICH MAY RESULT FROM THE USE OF THIS PROGRAM.
  340.  
  341.  
  342.         Trademarks
  343.  
  344.         MS-DOS is a registered trademark and Windows is a trademark of
  345.         Microsoft Corporation.
  346.  
  347.         386MAX is a registered trademark of Qualitas, Inc.
  348.  
  349.         QEMM-386 is a registered trademark of Quarterdeck Office Systems,
  350.         Inc.
  351.  
  352.         PC-DOS, PC/AT, PC/XT, and PS/2 are registered trademarks of
  353.         IBM Corporation.
  354.  
  355.  
  356.         Association of Shareware Professionals
  357.  
  358.         This program is produced by a member of the Association of Shareware
  359.         Professionals (ASP).  ASP wants to make sure that the shareware
  360.         principle works for you. If you are unable to resolve a share-
  361.         ware-related problem with an ASP member by contacting the member
  362.         directly, ASP may be able to help. The ASP Ombudsman can help you
  363.         resolve a dispute or problem with an ASP member, but does not
  364.         provide technical support for members' products.  Please write to
  365.         the ASP Ombudsman at 545 Grover Road, Muskegon MI 49442-9427 or send
  366.         a Compuserve message via CompuServe Mail to ASP Ombudsman
  367.         70007,3536.  The OMB may be contacted by FAX by sending to the ASP
  368.         FAX number: (616) 788-2765.  In communication with the OMB please
  369.         include a telephone number and/or FAX if available.                                                                            6
  370.  
  371.         Before You Begin
  372.  
  373.         The very first thing that you should do before going any further is
  374.         to make a backup copy of your distribution disk.  To do this just
  375.         use the DOS command DISKCOPY.  This will work whether or not you
  376.         have two floppy disk drives.  It also doesn't matter if the diskette
  377.         you want to copy to is formatted or not.  DISKCOPY will format it
  378.         for you.
  379.  
  380.         From the DOS prompt type this:
  381.  
  382.                   DISKCOPY A: A:
  383.  
  384.         You will be asked to "Insert source diskette in drive A:".  This
  385.         should be your original CD-Quick Cache disk.  Continue to follow the
  386.         directions on the screen and you will have your backup copy.
  387.  
  388.  
  389.         Measuring Existing CD-ROM Performance
  390.  
  391.         Before actually installing CD-Quick Cache you may want to use the
  392.         included CDTEST utility to evaluate your CD-ROM drive's performance
  393.         without a cache installed.  To run CDTEST with your backup disk in
  394.         drive A:, just type A:CDTEST.  Since different CD-ROM's contain
  395.         differing file layouts (some have many files in a few subdirectories
  396.         while others have fewer files in many subdirectories) it may be
  397.         helpful to have a few CD-ROM's to test with.
  398.  
  399.         You must have MSCDEX.EXE loaded to run CDTEST (most systems are set
  400.         up to load this automatically).  If you are running Microsoft
  401.         Windows in Enhanced mode you should exit Windows and return to DOS
  402.         for this test.  Window's Enhanced mode multi-tasking prevents
  403.         accurate timing results.
  404.  
  405.         If you have more than one CD-ROM drive, you can select which drive
  406.         to test.  When comparing the performance of one drive to another, be
  407.         sure you test with the same CD-ROM in each drive.
  408.  
  409.         With a CD-ROM in your drive, select the "Walk directories" test. 
  410.         This test will scan the entire CD-ROM searching for the largest
  411.         file.  When it finishes the scan, it reports the time taken.
  412.  
  413.         Next select "Do read test".  This test will read the largest file
  414.         found (must be a least 2MB) first sequentially and then randomly. 
  415.         The test will be repeated three times.  Individual and total times
  416.         will be reported.
  417.  
  418.         You should now print your results to enable you to compare this
  419.         performance to your system's performance with CD-Quick installed.
  420.  
  421.         It's also possible to test your CD-ROM drive's performance without a
  422.         cache even with CD-Quick installed.  Use the '/OFF' option on CD-
  423.         Quick to disable the cache.  You can use the '/ON' option to enable
  424.         it again.                                                                            7
  425.  
  426.         Installing CD-Quick Cache
  427.  
  428.         CD-Quick Cache includes an Install program to make installation very
  429.         easy.  The Install program can be used to install CD-Quick on your
  430.         computer and configure it for caching CD-ROM data.  Install can also
  431.         be used to update a previous CD-Quick configuration.
  432.  
  433.         When you start Install, you will first be asked for the source
  434.         (where the CD-Quick files are now) and destination (where you want
  435.         CD-Quick to be copied to) drives and path.
  436.  
  437.         When this information is provided the Install program will create a
  438.         subdirectory on your hard drive called "\CDQUICK".  The default
  439.         "from" drive is the drive where INSTALL.EXE is located and the
  440.         default "to" drive is drive C:.  These may be changed to any other
  441.         drives or directories as needed.  Install will copy all the needed
  442.         CD-Quick Cache files from your floppy drive to that subdirectory.
  443.  
  444.         Next you will be asked if you want CD-Quick to determine the amount
  445.         of memory to use for data caching or if you would rather assign this
  446.         yourself.
  447.  
  448.         Install will scan your AUTOEXEC.BAT file looking for at least one
  449.         line containing MSCDEX.EXE, the Microsoft CD-ROM Extensions.  If
  450.         found, the command to load CD-Quick will be added to your
  451.         AUTOEXEC.BAT file.  A backup of your unmodified AUTOEXEC.BAT file
  452.         will be saved in the file AUTOEXEC.CDQ.  The number of buffers
  453.         MSCDEX uses will be lowered to 6.
  454.  
  455.         To run the install program, insert your backup copy of CD-Quick
  456.         Cache into your floppy drive and type:
  457.  
  458.                   A:INSTALL
  459.  
  460.         Follow the directions and before you know it, you will have CD-Quick
  461.         Cache installed, speeding up your CD-ROM drive.  If your memory
  462.         manager includes software to optimize upper memory use, you may want
  463.         to rerun it after CD-Quick has been installed.
  464.  
  465.         If you are using the Install program to upgrade your software, an
  466.         option has been added to prompt you for your Name and KeyCode.  Just
  467.         start Install with the '/R' switch.  e.g. INSTALL  /R
  468.  
  469.  
  470.         Running CD-Quick with Microsoft's SmartDrive
  471.  
  472.         CD-Quick Cache will run just fine with SmartDrive.  If you have 
  473.         SmartDrive version 5.0 or later (included with MS-DOS v6.2), you
  474.         need to add the '/U' switch when loading SmartDrive.  This turns off
  475.         SmartDrive's CD-ROM caching.  If you used CD-Quick's Install pro-
  476.         gram, this will be done for you automatically.
  477.  
  478.  
  479.         UnInstalling the Software
  480.  
  481.         If for any reason you want to return your system to the way it was
  482.         before you installed CD-Quick, just use the DOS COPY command to copy
  483.         AUTOEXEC.CDQ to AUTOEXEC.BAT.  Then delete the CD-Quick files.                                                                            8
  484.  
  485.         Choosing a Cache Size
  486.  
  487.         With CD-Quick and its install program it's possible to automatically
  488.         determine a cache size.  The amount of XMS memory allocated for the
  489.         cache depends on the amount of free XMS memory in your system when
  490.         CD-Quick loads.  If you let CD-Quick choose the amount of memory,
  491.         the following guide will be used.
  492.  
  493.         If your system has:      CD-Quick will:
  494.  
  495.              <= 512KB free  -    Use all available XMS memory
  496.              <= 1MB   free  -    Use 512KB for the cache
  497.              <= 4MB   free  -    Use 1MB for the cache
  498.              >  4MB   free  -    Use 2MB for the cache
  499.  
  500.         You may also decide to set the cache size yourself.  In setting a
  501.         cache size, you should realize that larger cache sizes will increase
  502.         performance because more data is available.  With the cache holding
  503.         more data, the chances of finding the data you need increase and the
  504.         much slower reads of your CD-ROM drive are avoided.
  505.  
  506.         You should keep in mind that the amount of memory you allocate to
  507.         CD-Quick must be balanced against the needs of other applications in
  508.         your system.  It's possible to improve the performance of the cache
  509.         but slow down an application that runs faster with more memory.  The
  510.         statistics that CD-Quick provides may be helpful in selecting a
  511.         cache size and optimizing overall performance.
  512.  
  513.         If you have problems running certain applications when CD-Quick is
  514.         loaded and they go away when CD-Quick is not loaded, it's due to the
  515.         way you have your memory apportioned.  The memory you have allocated
  516.         to CD-Quick is no longer available to other application.  You can
  517.         reduce your cache size by setting it manually.  Please see appendix
  518.         B for more information.
  519.  
  520.  
  521.         Using Multiple CD-ROM Drives
  522.  
  523.         There are two methods used to support multiple CD-ROM drives.  The
  524.         first setup uses a single hardware device driver for all CD-ROMs. 
  525.         Each drive is assigned a separate "unit" number.  This scheme is
  526.         almost always used with multiple SCSI CD-ROM drives.  All drives are
  527.         connected to a single SCSI controller and the hardware device driver
  528.         works with this controller.  If you use only one hardware device
  529.         driver, a single loading of CD-Quick will cache all drives.  CD-
  530.         Quick is aware of the separate unit numbers and will behave accord-
  531.         ingly.  The hardware device driver is loaded by a line in your
  532.         CONFIG.SYS file.  Check the instructions that came with your CD-ROM
  533.         drive if you need more information on this.
  534.  
  535.         The second method used with multiple drives, is to load a separate
  536.         hardware device driver for each drive.  This is usually needed when
  537.         each drive uses a proprietary interface and each is from a different
  538.         manufacturer.  For multiple device drivers, CD-Quick must be loaded
  539.         once for each device driver.  If you use the included Install
  540.         program, either case will be handled automatically.                                                                            9
  541.  
  542.         CD-Quick Command Line Parameters Reference
  543.  
  544.         If you don't use the supplied Install program to automatically
  545.         modify your AUTOEXEC.BAT file, and for general reference, we will
  546.         describe how CD-Quick is installed.
  547.  
  548.         As previously mentioned, CD-Quick Cache is a TSR.  Its only require-
  549.         ment is that it must be loaded before MSCDEX.EXE (Microsoft CD-ROM
  550.         Extensions).  When loaded, CD-Quick is positioned between your CD-
  551.         ROM's hardware device driver and MSCDEX.  MSCDEX interacts with CD-
  552.         Quick instead of your device driver.
  553.  
  554.         CD-Quick allows you to set a few parameters when it loads.  The only
  555.         one required in order to load is the name of your CD-ROM hardware
  556.         device driver.  The others are optional.  All parameters may be
  557.         specified in any order.
  558.  
  559.         CD-Quick command line format:
  560.  
  561.          CDQ [/D:<drivername>] [cachesize] [/C] [/F] [/NAME=<username>]
  562.              [/KEY=<code>] [/NOHMA] [/ON] [/OFF] [/HELP] [/?]
  563.  
  564.  
  565.         /D:<drivername>
  566.  
  567.         This parameter tells CD-Quick the name of your CD-ROM's hardware
  568.         device driver and is required for CD-Quick to work.  The hardware
  569.         device driver is loaded by a line in your CONFIG.SYS file.  It will
  570.         look something like:
  571.  
  572.           DEVICE=CDROMDRV.SYS  /D:MSCD001
  573.  
  574.         Since this driver is supplied by the manufacturer of your CD-ROM
  575.         drive, its name will vary.  The thing to look for is the driver name
  576.         parameter used when loading MSCDEX.  The Microsoft CD-ROM Extensions
  577.         require the same parameter in the same form as CD-Quick.  So if you
  578.         have:
  579.  
  580.           MSCDEX  /D:MSCD001
  581.  
  582.         in your AUTOEXEC.BAT file, you know you need the following line
  583.         (before MSCDEX) in order to load CD-Quick:
  584.  
  585.           CDQ  /D:MSCD001
  586.  
  587.  
  588.         Cachesize
  589.  
  590.         This parameter sets the amount of memory allocated to CD-Quick's
  591.         data cache.  It is just the number in "KB" (Kilobytes) that you
  592.         want CD-Quick to use.  If you set Cachesize to zero or omit it, CD-
  593.         Quick will determine its cache size itself based on the amount of
  594.         free XMS memory in your system.  As an example, for a 1024K (1MB
  595.         cache), you would have:
  596.  
  597.           CDQ  1024                                                                           10
  598.  
  599.         /C
  600.  
  601.         If CD-Quick doesn't always recognize disc changes, you should try
  602.         loading it with the '/C' switch.  When this switch is used, CDQ
  603.         will flush its cache whenever your CD-ROM device driver says the
  604.         disc has changed or is not sure.  Older drives will be more likely
  605.         to need this option than will newer drives.  Don't use this option
  606.         unless you need it, as it may slow performance on some systems.
  607.  
  608.  
  609.         /F
  610.  
  611.         After CD-Quick is installed, you can use the '/F' switch to flush 
  612.         the cache for all CD-ROM drives.  Normally CD-Quick will do this 
  613.         automatically when needed.  This option has been added for those
  614.         people who have old CD-ROM drives that may not properly report disc
  615.         changes.  With this "flush" option you can manually clear the cache
  616.         yourself if needed.
  617.  
  618.  
  619.         /NAME=<username>
  620.  
  621.         This parameter is for people who have registered CD-Quick.  When
  622.         you register you will receive a KeyCode that is derived from your
  623.         name.  This parameter is needed so CD-Quick can compare your
  624.         KeyCode to your name.  If they match, the opening shareware screen
  625.         will not be displayed.  Any spaces in your name should be replaced
  626.         by underscores.  Case is not important.
  627.  
  628.  
  629.         /KEY=<keycode>
  630.  
  631.         This is the companion parameter used with "/NAME=" which was just
  632.         described.  Registered users receive a 4 digit hexadecimal number
  633.         to supply as your KeyCode.  For an example, if your name is John
  634.         Smith and your KeyCode is 5A27, you should have:
  635.  
  636.           CDQ  /NAME=JOHN_SMITH  /KEY=5A27
  637.  
  638.  
  639.         /NOHMA
  640.  
  641.         If you are using DOS v5.0+, and you have DOS loaded in the High
  642.         Memory Area (HMA), CD-Quick will attempt to use any free HMA memory
  643.         to store its cache index.  There are a few other programs that can
  644.         also use free memory in the HMA.  This switch allows you to disable
  645.         CD-Quick's use of the HMA and make more of it available to other
  646.         applications.  The cache index will be allocated in conventional
  647.         memory instead.  This option should rarely be needed.
  648.  
  649.  
  650.         /ON
  651.  
  652.         After CD-Quick is installed, it's possible to turn the cache on and
  653.         off.  The default when loaded is on.  If you've previously turned
  654.         it off, this option will re-enable it.                                                                           11
  655.  
  656.         /OFF
  657.  
  658.         As mentioned, it's possible to turn CD-Quick's caching on and off. 
  659.         This switch will disable caching for all CD-ROM drives.
  660.  
  661.  
  662.         /HELP or /?
  663.  
  664.         Gives a brief summary of CD-Quick's command line options.
  665.  
  666.  
  667.         An Example Please
  668.  
  669.         As an example of all of this, let's assume you have in your
  670.         AUTOEXEC.BAT file the line:
  671.  
  672.           MSCDEX  /D:MSCD001
  673.  
  674.         You want to use 2048KB (2MB) of XMS memory for a data cache.  You
  675.         have registered your copy of CD-Quick Cache (thank you!) and your
  676.         name is Jack Sprat.  Your KeyCode is '83C9'.  You would add this
  677.         line to your AUTOEXEC.BAT file before MSCDEX:
  678.  
  679.           CDQ  /D:MSCD001  2048  /NAME=JACK_SPRAT  /KEY=83C9                                                                           12
  680.  
  681.         Memory Usage and CD-Quick
  682.  
  683.         To get the most out of both your computer and CD-Quick, it may be
  684.         helpful to know a little about how CD-Quick uses memory.  CD-Quick
  685.         uses three different blocks of memory when it's loaded.  The first
  686.         block contains the actual program and is 11K in size.  CD-Quick
  687.         discards all of its start up code and data when it goes resident. 
  688.         The 11K remaining is only the code for the cache itself.
  689.  
  690.         The next and probably most obvious block is in extended (XMS)
  691.         memory.  This area is used to store the data from your CD-ROM.
  692.  
  693.         CD-Quick uses a cache index to locate the correct block of XMS
  694.         memory when it's needed.  This index can be located in the High
  695.         Memory Area, Upper Memory Area or in conventional memory.  CD-Quick
  696.         needs approximately 6KB of cache index for each 1MB of XMS cache. 
  697.         This cache index will be allocated in the HMA if DOS is loaded high
  698.         and there is enough room.  If the HMA can't be used, the Upper
  699.         Memory Area is tried next and finally conventional memory.  The HMA
  700.         is the best place for this data.  There is usually about 20KB of
  701.         free memory in this area and very few programs can use it.  It's
  702.         not easy to see the amount of free HMA memory.  DOS v6.2 has a
  703.         barely documented switch on the MEM command to display it however. 
  704.         You can type:
  705.  
  706.              MEM  /a
  707.  
  708.         to list the amount of free memory in the HMA.
  709.  
  710.         If MS-DOS is loaded into the HMA, it will attempt to place its
  711.         buffers in the HMA as well.  Each buffer uses approximately 532
  712.         bytes of memory.  If are using caching software for your hard
  713.         drive, having more than 10 buffers set wastes memory and can
  714.         prevent CD-Quick from using the HMA.  The number of buffers is set
  715.         by the BUFFERS= parameter in your CONFIG.SYS file.  
  716.  
  717.         One of the few applications that will use the HMA is DOS's own 
  718.         DoubleSpace (or DriveSpace) disk compression.  If you use disk
  719.         compression, the HMA is actually a good place for working data. 
  720.         However it will most likely leave insufficient memory in the HMA
  721.         for CD-Quick.  CD-Quick will be forced to use other memory instead. 
  722.         There's not much you can do about this, but it's important to know
  723.         what's going on here.
  724.  
  725.  
  726.         Reducing MSCDEX Buffers With CD-Quick
  727.  
  728.         As mentioned in the Install section, the buffers normally used with
  729.         MSCDEX should be reduced with CD-Quick.  With most CD-ROMs these
  730.         buffers waste memory and do not improve performance.  There are a
  731.         few CDs that benefit from having a few buffers set.  The optimum
  732.         number of buffers to use with CD-Quick is 6.  More than this gives
  733.         no benefit.  You may even want to set this lower.  However, 4 is
  734.         the minimum you can set.  Keep in mind that each MSCDEX buffer uses
  735.         2KB of memory.
  736.  
  737.         INSTALL will make the proper change for you, but if you don't use
  738.         the Install program, add "/M:6" to MSCDEX.                                                                           13
  739.  
  740.         CD-ROM Drive Performance Testing
  741.  
  742.         It's always helpful, when you're doing things to increase the
  743.         performance of your system, to have some way of quantifying this
  744.         improvement.  To make this easier, and to show the effectiveness of
  745.         CD-Quick, we have included a testing utility called CDTEST.
  746.  
  747.         CDTEST will perform two timed tasks on a CD-ROM.  The first test
  748.         will walk the directory structure of your CD-ROM.  By walking the
  749.         directory structure, we mean this test will visit every subdirec-
  750.         tory and look at each file.  As it's doing that, it will search for
  751.         the largest file on your CD-ROM.
  752.  
  753.         CD-ROM's differ in the number of subdirectories and also in the way
  754.         these are laid out.  Some CD-ROM's have very few if any subdirec-
  755.         tories and only a few very large files.  This type of CD won't give
  756.         you very meaningful results for this test.  With so few files and
  757.         directories, it only takes a fraction of a second to read them all.
  758.  
  759.         A CD-ROM that has many subdirectories and files is what you need
  760.         for this test.  If CDTEST finds you have too few directories and
  761.         files, it displays a message warning of this fact.
  762.  
  763.         Since the way CD-ROM's are laid out varies from CD to CD, it's best
  764.         to have a few CD-ROM's to use when testing.  Some CD's will have
  765.         all their subdirectories in the root directory.  Others will have a
  766.         real tree structure with many levels of subdirectories.  With CD-
  767.         Quick loaded, you will notice varying degrees of improvement
  768.         (depending on file layout) when doing a directory walk.
  769.  
  770.         The second test CDTEST can perform is a read test.  The program
  771.         will read the largest file on your CD-ROM (found while doing the
  772.         directory walk).  This file is first read sequentially and then
  773.         randomly.  For the sequential read, 256 blocks are read from the
  774.         beginning of the file.  Each block on a CD-ROM is 2048 bytes (2KB),
  775.         so the test reads 512KB.  A CD-ROM block is the same thing as a
  776.         sector.  CDTEST will display the time it takes to do this read.
  777.  
  778.         Next a random read will read 128 blocks (256KB) from the same file. 
  779.         These blocks will be scattered all over the CD.  Since it's impor-
  780.         tant for the random test to access data that is widely dispersed,
  781.         the file to be read must be at least 2MB in size.  Actually it
  782.         should be as large as possible.  As with the sequential read test,
  783.         the time taken will be reported.
  784.  
  785.         These read tests are repeated for three trials.  Each time the same
  786.         data is read and the time reported.  After the three tests are
  787.         completed, the total time taken is also displayed.
  788.  
  789.         With CD-Quick loaded, you will notice a dramatic difference between
  790.         the first read test and the following tests.  For the first test,
  791.         the CD-ROM must be read directly.  When it's time to read the data
  792.         again, the cache can quickly find the data in memory.  It should be
  793.         noted that since the total amount of data read is 768KB, you must
  794.         have at least that much RAM allocated to the cache for this test. 
  795.         Otherwise the cache will not be large enough to hold all the data
  796.         and your CD-ROM will have to be read directly.  Remember, direct
  797.         reads are slow.  Cache reads are FAST!                                                                           14
  798.  
  799.         Displaying Cache Statistics from DOS
  800.  
  801.         CD-Quick has the ability to display cache statistics.  This is
  802.         another way to get a feel for the improvement CD-Quick provides. 
  803.         Anytime after CD-Quick is loaded, you can type CDQ from the DOS
  804.         prompt to display status information.
  805.  
  806.         Displayed will be:
  807.         Cache size, type and drive, Logical transfers (the total number of
  808.         2048 byte blocks requested), Physical transfers (the total number
  809.         of blocks that had to be read from the CD-ROM), Transfers saved
  810.         (the total number of blocks read from the cache), and Percent saved
  811.         (the percent of cache transfers vs. physical transfers).
  812.  
  813.         A sample might look like this:
  814.  
  815.         CD-QUICK Cache, v1.20 Copyright (c) 1994-95 by Peter Volpa, Circuit
  816.         Systems
  817.  
  818.         Using 1024K XMS cache for drive E:
  819.               1411  Logical transfers
  820.                659  Physical transfers
  821.                752  Transfers saved
  822.                 53  percent saved.
  823.  
  824.         Because of CD-Quick's read-ahead buffering, your actual time
  825.         savings will almost always be better than what is represented here. 
  826.         With read-ahead buffering,  CD-Quick will read more data than is
  827.         requested, saving all of it in the cache.  When that data is later
  828.         requested (and your CD-ROM's read head is usually somewhere else)
  829.         this data will be retrieved from RAM.  Performance is improved
  830.         because the drive didn't have to reposition its read head.  Unfor-
  831.         tunately the numbers can't reflect this action.  Transfers weren't
  832.         saved because data was requested only once and read from the CD
  833.         only once, but TIME was saved because the drive head didn't have to
  834.         move.  Any time you avoid moving the drive head you save time.
  835.  
  836.  
  837.         Displaying Cache Statistics from Windows
  838.  
  839.         Also included with CD-Quick is a status utility that runs under
  840.         Microsoft Windows.  This utility called QUICKMON, is located in the
  841.         same directory as CD-Quick.  QUICKMON will display the same status
  842.         information as CDQ will under DOS, but all information will be
  843.         displayed in a small pop-up window.  This allows you to view cache
  844.         operation in real time.  As you're using an application to access
  845.         your CD-ROM, you'll see the cache statistics as they update!  You
  846.         can also flush and enable/disable the cache from here.  QUICKMON is
  847.         initially set to be "Always on top" so it can easily be seen.  This
  848.         operation can be changed by a choice on its pull down menu.  
  849.  
  850.         You can use Windows' File Manager to start QUICKMON.  Just change
  851.         to the "\CDQUICK" subdirectory and double-click on QUICKMON.  To
  852.         make operation easier, you may want to add QUICKMON to one of your
  853.         Windows program groups.
  854.  
  855.         The same attention to CD-Quick's read-ahead buffering applies when
  856.         interpreting QUICKMON's statistics.  Refer to the section above.                                                                           15
  857.  
  858.         CD-ROM Drive Mechanics and Why CD-Quick Cache Helps
  859.  
  860.         For those of you who are interested, I'd like to give you a brief
  861.         explanation of the inner workings of CD-ROM drives.  After you
  862.         understand some of what goes on behind the scenes you'll see why a
  863.         CD-ROM cache is really a necessity with today's computers.
  864.  
  865.         Data on a CD-ROM is recorded in equal length sectors on a single
  866.         spiral track that starts at the inner edge of the disc and finishes
  867.         at the outer edge.  This track is on the order of .6 microns wide,
  868.         with a turn spacing of 1.6 microns.  A micron, if you don't happen
  869.         to remember, is equal to a millionth of a meter.  A human hair is
  870.         about 100 microns in diameter.  A CD-ROM has a track density of
  871.         about 16,000 turns per inch if you measured across the disc.  If
  872.         you stretched this track out into a straight line it would measure
  873.         over 3 miles in length!
  874.  
  875.         A drive's read head assembly consists of a solid state laser,
  876.         lenses, a beam splitting mirror and a photo diode to detect the
  877.         reflected light.  In relative terms this assembly is massive.  The
  878.         magnetic heads used in hard disk drives are tiny by comparison.
  879.  
  880.         CD-ROM drives utilize a principle called constant linear velocity
  881.         (CLV).  With CLV the data must pass across the read head at the
  882.         same speed, no matter where on the disc it is positioned.  Because
  883.         data sectors on the outer and inner edges are the same length, the
  884.         rotational speed of the disc must constantly change as the read
  885.         head changes position.  If it didn't, the bits on the outer edge of
  886.         the disk would pass by almost 3 times faster than those near the
  887.         center.
  888.  
  889.         So to summarize the mechanical problem we face, we must precisely
  890.         follow a very narrow track of data using a relatively massive laser
  891.         assembly.  At the same time we must constantly vary the rotational
  892.         speed of the disc so the data passes at a constant linear speed
  893.         when we move the read head.  And we want to be able to reposition
  894.         this read head and be ready to access new data as quickly as
  895.         possible.
  896.  
  897.         As you can imagine, it's just not possible to do this very quickly. 
  898.         The more mass something has, the slower you can whip it around.  If
  899.         in addition, you have to position it with sub-micron accuracy, this
  900.         takes more time.  And if you also have to readjust to a new rota-
  901.         tional speed, you need more time still.
  902.  
  903.         This is why CD-ROM access times are slow and it's not going to
  904.         change any time soon.  Although triple and quadruple speed drives
  905.         have increased the raw data rate (by increasing the rotational
  906.         speed), access times have not dropped proportionally.
  907.  
  908.         The key to speeding up CD-ROM performance is to minimize the number
  909.         of times we reposition the read head.  Because every time we move
  910.         this head, we waste time.  The way to reduce head movement is to
  911.         use a cache like CD-Quick.  Once data is read into the cache, it
  912.         will be accessed from RAM instead of the CD.  If we can anticipate
  913.         data to read when we are positioned at this data, we can minimize
  914.         head movement.  CD-Quick uses advanced caching techniques to help
  915.         ensure that the data you need most will be found in the cache.                                                                           16
  916.  
  917.         Revision History
  918.  
  919.  
  920.         Version 1.20 - 6/12/95
  921.         It was possible for some other Windows programs to assume 
  922.         QuickMon's Rabbit icon when minimized.  Fixed.  If a cache size
  923.         greater than 10MB was specified and memory was available, it would
  924.         be allocated.  Fixed.  Improved compatibility with some older
  925.         drives that don't handle disc changes quite right.  Also added a
  926.         "Change Fix" option to CDQ.  Improved performance for triple and
  927.         quad speed drives.  In CDTEST if a CD-ROM was changed after doing a
  928.         directory walk, and a read test was attempted, it failed.  Added a
  929.         warning message.  Added a documentation file in Windows Write
  930.         format.  Changed the default cache size when automatic size deter-
  931.         mination is used.
  932.  
  933.         Version 1.11 - 3/15/95
  934.         If you used a single hardware device driver with multiple CD-ROM
  935.         drives, the Install program would put multiple instances of CDQ in
  936.         your AUTOEXEC.BAT file.  Fixed.
  937.  
  938.         Version 1.10 - 3/6/95
  939.         Now smaller and even faster!  All start up code and data are now
  940.         discarded before going resident.  This reduces the resident program
  941.         size to 11KB.  The data for the cache index has been separated from
  942.         the program and will use the HMA if available.  The cache search
  943.         routine has been improved to speed lookups, increasing cache
  944.         throughput.  Added flush and enable/disable options to CDQ and
  945.         QuickMon.  Added help option to CDQ.  QuickMon was unable to start
  946.         up minimized.  Fixed.  No longer supports locating the cache data
  947.         in upper memory.
  948.  
  949.         Version 1.02 - 1/18/95
  950.         In the opening shareware screen, if you choose to print an order
  951.         form and your printer was offline, CD-Quick would wait for the
  952.         printer to be put back online.  This gave the appearance that the
  953.         software was hung.  Logic to detect this condition has been added. 
  954.         Enhanced the Install program to work with any type of CD-ROM
  955.         extensions (not just Microsoft's MSCDEX).  Changes made to the
  956.         AUTOEXEC.BAT file might not get saved if you used a hard drive
  957.         cache that did write caching and you rebooted from within the
  958.         install program.  Fixed.   QUICKMON would display a cache size of
  959.         1024K on startup if the CD-ROM drive had not been accessed first. 
  960.         Fixed.  A real artist created a better looking icon for QUICKMON.
  961.  
  962.         Version 1.01 - 12/30/94
  963.         While Microsoft's MemMaker was optimizing upper memory use, CD-
  964.         Quick was unable to find your CD-ROM's real hardware device driver. 
  965.         This resulted in too high a number of CD-ROM drives being reported,
  966.         and caused MSCDEX to report an error.  CD-Quick has been changed to
  967.         enable it to always find the true device driver.
  968.  
  969.         Version 1.00 - 12/20/94
  970.         First release.                                                                           17
  971.  
  972.                             Appendix A - Error Messages
  973.  
  974.  
  975.         Cache has already been installed.
  976.  
  977.              You have already loaded CD-Quick using this Device Driver
  978.              name.  If you want to use CD-Quick with another device driver,
  979.              specify a different driver name.
  980.  
  981.  
  982.         Cache must be installed before MSCDEX.
  983.  
  984.              CD-Quick requires that it be loaded AFTER your CD-ROM hardware
  985.              device driver and BEFORE Microsoft's MSCDEX.EXE.  Check your
  986.              AUTOEXEC.BAT and/or CONFIG.SYS files to make sure that is the
  987.              case.
  988.  
  989.  
  990.         CD-Quick's executable has been corrupted.  Please reinstall.
  991.  
  992.              Someone or something (another program perhaps) has changed
  993.              your copy of CDQ.EXE.  CD-QUICK checks itself every time it
  994.              runs and this check has failed.  Reinstall the program.
  995.  
  996.  
  997.         Device driver not found: 'XXXXXXXX'.  Please install before
  998.         CD-QUICK.
  999.  
  1000.              The hardware device driver you told CD-Quick to use has not
  1001.              been loaded.  This is done by a line in your CONFIG.SYS file. 
  1002.              Make sure this driver is loaded and the driver name is cor-
  1003.              rect.
  1004.  
  1005.  
  1006.         Extended Memory Manager not present.
  1007.  
  1008.              CD-Quick requires the extended memory in your system be man-
  1009.              aged by a memory manager.  It's the memory manager's job to
  1010.              turn extended memory into XMS memory.  The XMS memory manager
  1011.              HIMEM.SYS comes with DOS and should be loaded by a line in
  1012.              your CONFIG.SYS file.  See your DOS manual if you need help
  1013.              with this.  Any memory manager supporting version 2.0 of the
  1014.              XMS specification will work with CD-Quick.
  1015.  
  1016.  
  1017.         Extended Memory allocation error.
  1018.  
  1019.              CD-Quick tried to allocate XMS memory and the XMS memory
  1020.              manager returned an error.  No memory could be allocated. 
  1021.              Check to see if you've got some free XMS memory available.
  1022.  
  1023.  
  1024.         Extended Memory not present or not-usable.
  1025.  
  1026.              You don't have any memory above 1MB in your system.  CD-Quick
  1027.              uses extended XMS memory for its data cache.  Since many 
  1028.              programs can perform better if you have some XMS memory, you 
  1029.              may want to add some to your computer.                                                                           18
  1030.  
  1031.         HMA can not be enabled.  Use /NOHMA option.
  1032.  
  1033.              You have enough free memory in the High Memory Area, but it
  1034.              can't be accessed.  Use the /NOHMA switch when loading CDQ to
  1035.              disable CD-Quick's HMA use.
  1036.  
  1037.  
  1038.         No valid CDROM device drivers selected.
  1039.  
  1040.              You didn't specify a CD-ROM hardware device driver to use with
  1041.              CD-Quick.  Check your AUTOEXEC.BAT file to make sure you have
  1042.              used the '/D:' parameter.
  1043.  
  1044.  
  1045.         Not enough Extended Memory, must have at least 64K free.
  1046.  
  1047.              Although you have XMS memory in your system, less than 64K is
  1048.              free when CD-Quick loads.  Either decrease the amount of XMS
  1049.              memory allocated to other applications that load before CD-
  1050.              Quick or buy more memory.
  1051.  
  1052.  
  1053.         Not enough Extended Memory, reducing number of buffers.
  1054.  
  1055.              You don't have enough free XMS memory to allocate a cache as
  1056.              large as you have specified.  CD-Quick will allocate a lesser
  1057.              number of cache buffers to fit in the memory you do have
  1058.              available.
  1059.  
  1060.  
  1061.         This program requires DOS 3.10 or later.
  1062.  
  1063.              You have a very old version of DOS.  Since MSCDEX.EXE or its
  1064.              equivalent requires DOS 3.1 or later, you should upgrade.
  1065.  
  1066.  
  1067.         Unable to allocate cache index table.
  1068.  
  1069.              You don't have enough memory to allocate CD-Quick's cache
  1070.              index table.  This shouldn't be possible since CD-Quick tries
  1071.              to use the HMA, UMA and also conventional memory.  Please let
  1072.              us know if you get this message.
  1073.  
  1074.  
  1075.         Your printer is NOT ready.
  1076.  
  1077.              You asked CD-Quick to print an order form but your printer is
  1078.              offline.  Check to see if your printer has power, has paper
  1079.              and its cable is connected.                                                                           19
  1080.  
  1081.                      Appendix B - Common Questions and Answers
  1082.  
  1083.  
  1084.         Q.   After installing CD-Quick, Windows won't load (or my Windows
  1085.              video driver, Wolfenstein or other whiz-bang program has
  1086.              problems).  If I remove CD-Quick everything works.  What's
  1087.              wrong?
  1088.  
  1089.         A.   The problems you are having are related to the way you have
  1090.              apportioned your memory.  CD-Quick uses XMS memory for its
  1091.              cache.  Your problems go away when CD-Quick is not loaded
  1092.              because you have freed up the memory used by CD-Quick.  It is
  1093.              now available for Windows (or other software) to use. You need
  1094.              to determine how you are allocating your XMS memory.  Are you
  1095.              using a cache for your hard drive?  If so, how much memory
  1096.              does it use?  Do you have a RamDrive or print spooler that
  1097.              uses XMS memory?  You should also check to see how much XMS
  1098.              memory CD-Quick is using.  From DOS, just type CDQ any time
  1099.              after CD-Quick has loaded.  From Windows start CD-Quick's
  1100.              QuickMon program.  CD-Quick's memory usage will be displayed.
  1101.  
  1102.              After you learn how your memory is being allocated, you can
  1103.              then determine the proper division of XMS memory for your
  1104.              software that uses this memory.
  1105.  
  1106.              If you allow CD-Quick to automatically determine its cache
  1107.              size, it may use too much memory in some cases.  CD-Quick
  1108.              can't anticipate your memory requirements after it loads.  So
  1109.              you have to be aware of any software that requires more XMS
  1110.              memory than is usual.  You can then set CD-Quick's cache size
  1111.              manually.
  1112.  
  1113.         Q.   If I allocate a 2MB cache for CD-Quick and 2MB for my disk
  1114.              cache, I've used up over half my memory (I've got 8MB).
  1115.  
  1116.         A.   A common mistake is to allocate too much memory to a hard
  1117.              drive cache.  With today's hard drives, 80% of your perfor-
  1118.              mance gain will be had with 256KB to 512KB of memory.  A 2MB
  1119.              hard drive cache just wastes memory that could be better used
  1120.              elsewhere.  CD-ROMs are 20 times slower and require a larger
  1121.              cache size.  We recommend a ratio of 1 to 4 when allocating
  1122.              memory to a hard drive cache and CD-Quick.  For instance, if
  1123.              you have CD-Quick set for a 2MB cache, you should set your
  1124.              hard drive cache to use 512KB.  If you want to set CD-Quick's
  1125.              cache lower, you should reduce your hard drive cache too.  For 
  1126.              a 1MB CD-ROM cache, use 256KB for your hard drive cache.
  1127.  
  1128.         Q.   I don't use SmartDrive for my hard drive (I use a different
  1129.              cache).  What's wrong with using SmartDrive v5.0 to cache only 
  1130.              my CD-ROMs.
  1131.  
  1132.         A.   In a word, memory.  For a 2MB cache, SmartDrive uses 30K of
  1133.              conventional memory (45K before it goes resident!).  In most
  1134.              cases, CD-Quick uses 11K.  SmartDrive's use of XMS memory is
  1135.              equally inefficient.  Typically you need to allocate a larger
  1136.              cache size to equal CD-Quick's performance.  Or, to put it
  1137.              another way, CD-Quick will out perform SmartDrive for the same
  1138.              size cache.  See Appendix C for more information.                                                                           20
  1139.  
  1140.           Appendix C - Comparing CD-Quick to Microsoft's SmartDrive 5.0+
  1141.  
  1142.         The version of SmartDrive included with MS-DOS v6.2 is capable of
  1143.         caching CD-ROM drives as well as hard and floppy drives.  It's
  1144.         tempting, if you already have SmartDrive v5.0, to wonder how it
  1145.         compares to CD-Quick.
  1146.  
  1147.         SmartDrive has improved with each version of DOS, so that today it's
  1148.         not a bad disk cache.  However, it has some problems when used with
  1149.         CD-ROMs.  Its first problem is that it uses a single cache for hard
  1150.         drives, floppy drives and CD-ROMs.  If you read a large enough block
  1151.         of data from any one of these, you effectively flush the cache for
  1152.         all the others.  This can be something as simple as doing a file
  1153.         search of your hard drive with a program such as Norton's File
  1154.         Finder or similar "Where is" program.  Unless SmartDrive's cache is
  1155.         VERY large, any CD-ROM data will be flushed from the cache.  Tests
  1156.         I've run with a 345MB hard drive (87% full) and SmartDrive, show
  1157.         that a "Where is" search for a nonexistent file will flush the cache
  1158.         of CD-ROM data for cache sizes as great as 5MB!.
  1159.  
  1160.         Another problem with using a single cache for both hard drives and
  1161.         CD-ROMs is the big difference in access times between the two. 
  1162.         Average access times for most of today's hard drives are under 15
  1163.         milliseconds.  CD-ROMs are about 20 times slower!  When deciding on
  1164.         how much memory to allocate to a cache, you will always reach a
  1165.         point of diminishing returns.  For instance, doubling the cache size
  1166.         may only increase performance by 10%.  Sometimes, increasing cache
  1167.         size beyond a certain point will actually DECREASE performance.  At
  1168.         the very least, having a cache larger than needed will waste memory. 
  1169.         This point of diminishing returns for hard drives is much lower than
  1170.         it is for CD-ROMs.  To be able to tune your system for the best
  1171.         performance, you need to be able to set the size of your hard drive
  1172.         cache and your CD-ROM cache independently.  This can only be done if
  1173.         they're separate caches.  Very good hard drive performance can be
  1174.         had with a 256KB to 512KB cache.  A CD-ROM drive in the same system,
  1175.         might need a 2MB cache or larger.
  1176.  
  1177.         In addition to these considerations, SmartDrive doesn't use cache
  1178.         memory very efficiently.  SmartDrive does a lot of sector read-ahead
  1179.         buffering.  It reads more data than you ask for with the hope that
  1180.         you'll want it later.  This is fine for sequential data reads, but
  1181.         it's very wasteful if you're reading data stored in many random
  1182.         locations.  The cache can quickly fill with data you'll never want. 
  1183.         CD-Quick also uses sector read-ahead buffering, but it dynamically
  1184.         adjusts the amount of read-ahead based on the pattern of your reads. 
  1185.         It can drop the number of read-ahead sectors to zero if random data
  1186.         is being read.
  1187.  
  1188.         While the CDTEST utility included with CD-Quick is intended to 
  1189.         demonstrate the difference between using a CD-ROM cache and not
  1190.         using one, it can also be helpful when comparing caching software. 
  1191.         To illustrate SmartDrive's problem of using a shared cache, have
  1192.         CDTEST do a directory walk of a CD-ROM.  Now do the walk again.  If
  1193.         the directory data is found in the cache, it should only take a
  1194.         second or two.  Now try a "Where is" search for a nonexistent file
  1195.         on your hard drive.                                                                            21
  1196.  
  1197.         You can do this with the DOS DIR command.  Type:
  1198.  
  1199.              DIR  C:\weasel.dat  /S
  1200.  
  1201.         This will search for a 'WEASEL.DAT' file on your hard drive.  If you
  1202.         go back and run CDTEST's directory walk again, you will find the
  1203.         cache has been flushed (unless it's VERY large).  As mentioned
  1204.         before, CD-Quick's cache is not shared by non CD-ROM drives, so it
  1205.         can never be flushed by any reads you do on your hard drive.
  1206.  
  1207.         If you'd like to see the effect of SmartDrive's read-ahead buffer-
  1208.         ing, you can use CDTEST to do a directory walk followed by a read
  1209.         test.  If you go back and do another walk, you'll find in most cases
  1210.         the directory data has been flushed from the cache.  This second
  1211.         directory walk should be very quick, since the first walk has
  1212.         already read the needed data.  But with SmartDrive it will take much
  1213.         longer.  Tests I've run show this occurs with cache sizes of up to
  1214.         2MB.  Because CD-Quick makes better use of cache memory, you won't
  1215.         see this problem until you reduce CD-Quick's cache size to about
  1216.         1MB.
  1217.  
  1218.  
  1219.         A Word About Benchmarks
  1220.  
  1221.         All benchmark programs (CD-TEST included) are intended to test and
  1222.         quantify a particular aspect of a program's operation.  To properly
  1223.         apply a benchmark, you have to understand what the benchmark is
  1224.         intended to measure.  If you use it in a way other than that in
  1225.         which it was intended, your results may not be accurate.
  1226.  
  1227.         Here's a case in point.  CD-TEST was intended to compare CD-Quick's
  1228.         performance to a system's performance without a CD-ROM cache.  It
  1229.         will give meaningful results if you use it in that way.  Some people
  1230.         would like to use it to compare CD-Quick with other CD-ROM caches
  1231.         such as SmartDrive.  They might perform the following test: set
  1232.         SmartDrive to use a 2MB cache, run a directory walk then do CD-
  1233.         TEST's read test.  Repeat with CD-Quick set to use a 2MB cache and
  1234.         compare times.  If you do this, you probably won't see a big differ-
  1235.         ence in times.  You would then (erroneously) conclude that CD-Quick
  1236.         is not much better than SmartDrive.
  1237.  
  1238.         If you did this test with both SmartDrive and CD-Quick set to use a
  1239.         1MB cache, you would see a big difference in read times.  You would
  1240.         then conclude that CD-Quick IS much better than SmartDrive.
  1241.  
  1242.         What's going on here?  CD-TEST's read test reads a total of 384
  1243.         blocks (or 768KB) for the combined sequential and random read tests. 
  1244.         If you set both SmartDrive and CD-Quick to use a 2MB cache, this
  1245.         data easily fits in memory.  However, with a 1MB cache size, Smart-
  1246.         Drive can't hold 768KB of data!  If you ran this test with only the
  1247.         2MB caches you'd never see this.
  1248.  
  1249.         So be careful when using benchmarks.  Know what they're intended to
  1250.         test and use them accordingly.  Also don't rely on them as your only
  1251.         measure of performance.  If the benchmark doesn't test for it, the
  1252.         results can't show it.                                                                            22
  1253.  
  1254.                 Appendix D - Distribution Points for CD-Quick Cache
  1255.  
  1256.  
  1257.         The latest version of CD-Quick Cache may be found on the ASP's
  1258.         monthly CD-ROM.  All BBS's who are ASP members receive this CD each
  1259.         month.  Check for an ASP BBS near you.  The filename to look for is
  1260.         CDQCKxxx.ZIP (where xxx is the version number).
  1261.  
  1262.         CD-Quick may also be found in the PC Hardware forum on CompuServe
  1263.         (GO PCHW) in Lib 1.  Look for the filename CDQCK.ZIP.
  1264.  
  1265.         Lastly, CD-Quick is available via the ASP's Hub Network of BBS's. 
  1266.         If you are in North America, these BBS's all allow downloading of
  1267.         CD-QUICK on the first call:
  1268.  
  1269.  
  1270.              Consultant BBS, NY            (718) 837-3236
  1271.              Break RBBS, VA                (703) 680-9269
  1272.              Twilight Zone, WI             (715) 652-2758
  1273.              Data Exchange BBS, LA         (318) 239-2122
  1274.              SPACE BBS, CA                 (415) 323-4398
  1275.              Knightec BBS, Canada          (519) 940-0007 
  1276.