home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 165 / SMARTD50.ZIP / SMARTDRV.TXT < prev   
Text File  |  1993-11-08  |  18KB  |  427 lines

  1.  
  2. Microsoft SMARTDrive Disk Cache version 5.0
  3. Copyright 1991,1993 Microsoft Corp.
  4.  
  5. SMARTDRV [/X] [[drive[+|-]]...] [/U] [/C | /R] [/F | /N] [/L] [/V | /Q | /S]
  6.          [InitCacheSize [WinCacheSize]] [/E:ElementSize] [/B:BufferSize]
  7.  
  8. /X              Disables write-behind caching for all drives.
  9. drive           Sets caching options on specific drive(s). The specified
  10.                 drive(s) will have write-caching disabled unless you add +.
  11. +               Enables write-behind caching for the specified drive.
  12. -               Disables all caching for the specified drive.
  13. /U              Do not load CD-ROM caching module.
  14. /C              Writes all information currently in write-cache to hard disk.
  15. /R              Clears the cache and restarts SMARTDrive.
  16. /F              Writes cached data before command prompt returns (default).
  17. /N              Doesn't write cached data before command prompt returns.
  18. /L              Prevents SMARTDrive from loading itself into upper memory.
  19. /V              Displays SMARTDrive status messages when loading.
  20. /Q              Does not display status information.
  21. /S              Displays additional information about SMARTDrive's status.
  22. InitCacheSize   Specifies XMS memory (KB) for the cache.
  23. WinCacheSize    Specifies XMS memory (KB) for the cache with Windows.
  24. /E:ElementSize  Specifies how many bytes of information to move at one time.
  25. /B:BufferSize   Specifies the size of the read-ahead buffer.
  26.  
  27. ────────────────────────────────────────────────────────────────────────────
  28.  
  29.                                   SMARTDRV
  30.  
  31. Starts or configures SMARTDrive, which creates a disk cache in extended
  32. memory. A disk cache can significantly speed up MS-DOS disk operations. When
  33. used for disk caching, SMARTDrive is loaded by using the SMARTDRV command in
  34. your AUTOEXEC.BAT file or at the command prompt.
  35.  
  36. SMARTDrive can also perform double buffering, which provides compatibility
  37. for hard-disk controllers that cannot work with memory provided by EMM386 or
  38. Windows running in 386 enhanced mode. To use double buffering, load the
  39. <SMARTDRV.EXE> device driver by using a DEVICE command in your CONFIG.SYS
  40. file.
  41.  
  42. SMARTDrive will not load after Windows has started.
  43.  
  44. Syntax
  45.  
  46. When starting SMARTDrive from your AUTOEXEC.BAT file or from the command
  47. prompt, use the following syntax:
  48.  
  49.     [drive:][path]SMARTDRV [/X] [[drive[+|-]]...] [/U] [/C|/R] [/F|/N] [/L]
  50.     [/V|/Q|/S] [InitCacheSize[WinCacheSize]] [/E:ElementSize]
  51.     [/B:BufferSize]
  52.  
  53. Once SMARTDrive is running, use the following syntax:
  54.  
  55.     SMARTDRV [/X] [[drive[+|-]]...] [/C|/R] [/F|/N] [/Q|/S]
  56.  
  57. To view the current status after SMARTDrive has loaded, use the following
  58. syntax:
  59.  
  60.     SMARTDRV
  61.  
  62. Parameters
  63.  
  64. [drive:][path]
  65.     Specifies the location of the SMARTDRV.EXE file.
  66.  
  67. [[drive+|-]
  68.     Specifies the letter of the disk drive for which you want to control
  69.     caching. Include the plus (+) sign to enable caching for the specified
  70.     drive; include the minus (-) sign to disable caching for that drive. You
  71.     can specify multiple disk drives.
  72.  
  73.     If you specify a drive letter without a plus or minus sign, read-caching
  74.     is enabled and write-caching is disabled. If you specify a drive letter
  75.     followed by a plus sign (+), read-caching and write-caching are enabled.
  76.     If you specify a drive letter followed by a minus sign (-), both
  77.     read-caching and write-caching are disabled. If you don't specify a
  78.     drive letter, floppy disk drives, CD-ROM drives, and drives created
  79.     using Interlnk are read-cached but not write-cached, hard disk drives
  80.     are both read-cached and write-cached, and network drives and Microsoft
  81.     Flash memory-card drives are ignored. (For information about how
  82.     DoubleSpace caches compressed drives, see Notes.)
  83.  
  84. InitCacheSize
  85.     Specifies the size in kilobytes of the cache when SMARTDrive starts
  86.     (when Windows is not running). The size of the disk cache affects how
  87.     efficiently SMARTDrive runs. In general, the larger the cache, the less
  88.     often SMARTDrive needs to read information from the disk, which speeds
  89.     up your system's performance. If you do not specify an InitCacheSize
  90.     value, SMARTDrive sets the value according to how much memory your
  91.     system has (see the table below).
  92.  
  93. WinCacheSize
  94.     Specifies, in kilobytes, how much SMARTDrive will reduce the cache size
  95.     for Windows. When you start Windows, SMARTDrive reduces the size of the
  96.     cache to recover memory for Windows' use. When you quit Windows, the
  97.     cache returns to its normal size. WinCacheSize specifies the smallest
  98.     size to which SMARTDrive will reduce the cache. The default value
  99.     depends on how much available memory your system has (see the table
  100.     below). If you specify a value for InitCacheSize that is smaller than
  101.     the value specified for WinCacheSize, InitCacheSize is set to the same
  102.     size as WinCacheSize.
  103.  
  104. The following table shows what the default values for InitCacheSize and
  105. WinCacheSize will be, depending on the amount of available extended memory
  106. your computer has.
  107.  
  108. Extended         InitCacheSize        WinCacheSize
  109. Memory
  110. ───────────────────────────────────────────────────────────────────────────
  111.  
  112. Up to 1 MB       All extended         Zero (no caching)
  113.                  memory
  114.  
  115. Up to 2 MB       1 MB                 256K
  116.  
  117. Up to 4 MB       1 MB                 512K
  118.  
  119. Up to 6 MB       2 MB                 1 MB
  120.  
  121. 6 MB or more     2 MB                 2 MB
  122.  
  123. Switches
  124.  
  125. /X
  126.     Disables write-behind caching for all drives. You can then enable
  127.     caching for individual drives by using the drive+|- parameter.
  128.  
  129. /U
  130.     Does not load the CD-ROM caching module of SMARTDrive even if you have a
  131.     CD-ROM drive. If SMARTDrive is loaded with the /U switch, you cannot
  132.     enable CD-ROM drive caching. If SMARTDrive is loaded without the /U
  133.     switch, you can disable or enable caching individual CD-ROM drives using
  134.     the drive+|- parameter.
  135.  
  136. /C
  137.     Writes all cached information from memory to cached disks. SMARTDrive
  138.     writes information from memory to the disk at times when other disk
  139.     activity has slowed. You might use this option if you are going to turn
  140.     off your computer and want to make sure all cached information has been
  141.     written to the disk. (SMARTDrive writes all cached information to the
  142.     disk if you restart your computer by pressing CTRL+ALT+DELETE, but not
  143.     if you simply turn off the power or press your computer's reset
  144.     button.)
  145.  
  146. /R
  147.     Clears the contents of the existing cache, including writing all
  148.     write-cached information to disk, and restarts SMARTDrive.
  149.  
  150. /F
  151.     Writes cached data after each command completes. This is the default
  152.     value.
  153.  
  154. /N
  155.     Writes cached data when the system is idle. When the command prompt
  156.     returns, not all cached data may be written yet. To ensure that all the
  157.     cached data is written, use the /C switch.
  158.  
  159. /L
  160.     Prevents SMARTDrive from automatically loading into upper memory blocks
  161.     (UMBs), even if there are UMBs available. You can use the /L switch if
  162.     upper memory is enabled for use by programs. If you are using
  163.     SMARTDrive's double-buffering feature and your system appears to be
  164.     running slowly, try adding the /L switch to the SMARTDrive command in
  165.     your AUTOEXEC.BAT file.
  166.  
  167. /V
  168.     Instructs SMARTDrive to display status and error messages when it
  169.     starts. (By default, SMARTDrive does not display any messages unless it
  170.     encounters an error condition.) The /V switch cannot be used in
  171.     conjunction with the /Q switch.
  172.  
  173. /Q
  174.     Instructs SMARTDrive not to display status messages when it starts. (By
  175.     default, SMARTDrive does not display status messages when loading, but
  176.     does for most other operations.) If SMARTDrive encounters an error while
  177.     starting, it displays an error message whether or not it was loaded with
  178.     the /Q switch. The /Q switch cannot be used in conjunction with the /V
  179.     switch.
  180.  
  181. /S
  182.     Displays additional information about the status of SMARTDrive.
  183.  
  184. /E:ElementSize
  185.     Specifies in bytes the amount of the cache that SMARTDrive moves at a
  186.     time. Valid values are 1024, 2048, 4096, and 8192. The default value is
  187.     8192. The larger the value, the more conventional memory SMARTDrive
  188.     uses.
  189.  
  190. /B:BufferSize
  191.     Specifies in bytes the size of the read-ahead buffer. A read-ahead
  192.     buffer is additional information that SMARTDrive reads when an
  193.     application reads information from the hard disk. For example, if an
  194.     application reads 512K of information from a file, SMARTDrive then reads
  195.     the amount of information specified by BufferSize and saves it in
  196.     memory. The next time the application needs to read information from
  197.     that file, it can read it from memory instead. The default size of the
  198.     read-ahead buffer is 16K (16384 bytes). Its value can be any multiple of
  199.     ElementSize. The larger the value of BufferSize, the more conventional
  200.     memory SMARTDrive uses.
  201.  
  202. Caution:  Check that SMARTDrive has completed all write-caching before you
  203.           restart  or turn off your computer. (This is not necessary if you
  204.           restart your computer by pressing CTRL+ALT+DELETE.) To have
  205.           SMARTDrive write all cached information to cached disks, type
  206.           SMARTDRV /C at the command prompt. After all disk activity has
  207.           stopped, you can safely restart or turn off your computer.
  208.  
  209.                                       
  210.  
  211. ────────────────────────────────────────────────────────────────────────────
  212.  
  213.                               SMARTDRV──Notes
  214.  
  215. Enabling write caching on specific drives
  216.  
  217. By default, MS-DOS Setup configures SMARTDrive so that write-caching is
  218. disabled. This configuration is extremely safe, but does not provide optimum
  219. speed. After SMARTDrive starts, you can use the SMARTDRV command to enable
  220. write caching on specific drives. This can significantly speed up your
  221. system. To enable write-caching on a particular drive, carry out the
  222. SMARTDRV command and specify the drive letter and a plus sign. For example,
  223. to enable write-caching on drive C, you would type the following:
  224.  
  225.     smartdrv c+
  226.  
  227. For information about enabling write-caching for compressed drives, see
  228. "SMARTDrive and Compressed Drives" later in this help topic.
  229.  
  230. Using extended memory
  231.  
  232. For SMARTDrive to use extended memory, your CONFIG.SYS file must contain a
  233. DEVICE command for HIMEM.SYS or another extended-memory manager that
  234. conforms to the Lotus/Intel/Microsoft/AST eXtended Memory Specification
  235. (XMS).
  236.  
  237. Loading SMARTDrive into the upper memory area
  238.  
  239. If the upper memory area is available through MS-DOS, SMARTDrive will
  240. automatically load into upper memory. You do not need to use the LOADHIGH
  241. command with SMARTDrive.
  242.  
  243. If your hard disk requires double buffering, SMARTDrive may run faster if
  244. its cache is located in conventional memory. To load SMARTDrive into upper
  245. memory and its cache in conventional memory, use the following command:
  246.  
  247.     loadhigh smartdrv /l
  248.  
  249. SMARTDrive and compressed drives
  250.  
  251. SMARTDrive does not actually cache compressed drives; instead, it caches the
  252. physical (host) drive on which the compressed volume file is located. This
  253. improves the speed of both the physical drive and the compressed drive.
  254.  
  255. SMARTDrive and CD-ROM drives
  256.  
  257. If you are using a CD-ROM drive and you want to cache it, load MSCDEX before
  258. you load SMARTDrive. If you do not want to cache the CD-ROM drive, load
  259. SMARTDrive with the /U switch. (Note that MS-DOS Setup adds the SMARTDRV
  260. command to the beginning of your AUTOEXEC.BAT file, before any other
  261. commands.)
  262.  
  263. To find out whether SMARTDrive is caching your CD-ROM drive, type SMARTDRV
  264. at the command prompt.
  265.  
  266.                                       
  267.  
  268. ────────────────────────────────────────────────────────────────────────────
  269.  
  270.                              SMARTDRV──Examples
  271.  
  272. To create a SMARTDrive disk cache and use the default cache size, add the
  273. following command to your AUTOEXEC.BAT file:
  274.  
  275.     c:\dos\smartdrv
  276.  
  277. Example: A typical SMARTDrive command
  278.  
  279. Suppose you want to create a disk cache with a cache size of 2048K, and
  280. ensure that Windows will not reduce the size of the cache to less than
  281. 1024K. To do this and to specify that the SMARTDRV.EXE file is located in
  282. the DOS directory on drive C, add the following line to your AUTOEXEC.BAT
  283. file:
  284.  
  285.     c:\dos\smartdrv 2048 1024
  286.  
  287. Example: Enabling and disabling caching on specific drives
  288.  
  289. Suppose that SMARTDrive is already running and you want to enable write
  290. caching on drive C. To do this, type the following at the command prompt:
  291.  
  292.     smartdrv c+
  293.  
  294. Suppose you want to configure SMARTDrive to disable all caching of your
  295. floppy-disk drives and enable write caching on Interlnk drive D. (Interlnk
  296. drives, like floppy-disk drives, are not write-cached by default because
  297. it's possible to lose access to the drive before all information has been
  298. written from the cache). To do this, you would add the following command to
  299. your AUTOEXEC.BAT:
  300.  
  301.     c:\dos\smartdrv a- b- d+
  302.  
  303. Example: Saving cached information on the hard disk
  304.  
  305. Before pressing your computer's reset button or turning off your computer,
  306. it is a good idea to have SMARTDrive write all cached information from
  307. memory to any cached disks. To do this, type the following at the command
  308. prompt:
  309.  
  310.     smartdrv /c
  311.  
  312. You will not need to use this command before restarting your computer by
  313. pressing the CTRL+ALT+DELETE keys: SMARTDrive detects the CTRL+ALT+DELETE
  314. key sequence and automatically writes all information to cached disks before
  315. allowing the system to restart.
  316.  
  317.                                       
  318.  
  319. ────────────────────────────────────────────────────────────────────────────
  320.  
  321.                        SMARTDRV.EXE──Double Buffering
  322.  
  323. Loads the SMARTDRV.EXE device driver to perform double buffering. Double
  324. buffering provides compatibility for certain hard-disk controllers that
  325. cannot work with memory provided by EMM386 or Windows running in 386
  326. enhanced mode. To find out whether you need to use double buffering, see
  327. <SMARTDRV.EXE──Notes>.
  328.  
  329. SMARTDrive can also perform disk caching, which can speed up your computer.
  330. To use SMARTDrive for disk caching, add the <SMARTDRV> command to your
  331. AUTOEXEC.BAT file.
  332.  
  333. To use the double-buffering feature of SMARTDrive, the SMARTDRV.EXE device
  334. driver must be loaded by a <DEVICE> command in your CONFIG.SYS file.
  335.  
  336. Syntax
  337.  
  338.     DEVICE=[drive:][path]SMARTDRV.EXE /DOUBLE_BUFFER
  339.  
  340. Parameters
  341.  
  342. [drive:][path]
  343.     Specifies the location of the SMARTDRV.EXE file.
  344.  
  345. /DOUBLE_BUFFER
  346.     Instructs SMARTDrive to perform double buffering.
  347.  
  348.                                       
  349.  
  350. ────────────────────────────────────────────────────────────────────────────
  351.  
  352.                             SMARTDRV.EXE──Notes
  353.  
  354. Double buffering and conventional memory
  355.  
  356. SMARTDrive's double-buffering component must be loaded in conventional
  357. memory. It uses 2K of conventional memory, and cannot be loaded in upper
  358. memory.
  359.  
  360. The SMARTDrive disk cache can use either upper memory or conventional
  361. memory. For more information, see <SMARTDRV──Notes>.
  362.  
  363. Determining whether you need to use double buffering
  364.  
  365. If you use EMM386 or run Windows in 386 enhanced mode, you may need to use
  366. double buffering. Double buffering is most commonly required with an SCSI
  367. (small computer system interface) hard disk or other device, but can also be
  368. necessary with an ESDI (enhanced system device interface) or MCA
  369. (microchannel architecture) device.
  370.  
  371. Most hard disks do not need to use double buffering. If you are not sure
  372. whether your hard disk needs double buffering, follow these steps:
  373.  
  374. 1  Add the following command to your CONFIG.SYS file if the file does not
  375.    already contain such a command:
  376.  
  377.        device=c:\dos\smartdrv.exe /double_buffer
  378.  
  379.    This command must appear before the DEVICE command that starts EMM386, if
  380.    any.
  381.  
  382. 2  Add the following command to your AUTOEXEC.BAT file if the file does not
  383.    already contain such a command:
  384.  
  385.        c:\dos\smartdrv
  386.  
  387. 3  Run the MemMaker program if you haven't already done so.
  388.  
  389. 4  Use the MEM /C /P command to confirm that upper memory is in use.
  390.  
  391. 5  At the command prompt, type SMARTDRV and then press ENTER.
  392.  
  393.    SMARTDrive displays information about your system.
  394.  
  395. 6  Look at the column labeled "Buffering." If any line in this column reads
  396.    "yes," you need to run the double-buffering component of SMARTDrive. (If
  397.    your system seems to be running slowly, try adding the /L switch to the
  398.    SMARTDRV command in AUTOEXEC.BAT.)
  399.  
  400.    If every line in the "Buffering" column says "no," you can remove the
  401.    DEVICE command for SMARTDRV.EXE from your CONFIG.SYS file.
  402.  
  403.    If any line in the "Buffering" column contains the character "-", then
  404.    SMARTDrive is unable to detect whether double buffering is needed. Use
  405.    the MEM /C /P command to confirm that programs are located in upper
  406.    memory.
  407.  
  408.                                       
  409.  
  410. ────────────────────────────────────────────────────────────────────────────
  411.  
  412.                            SMARTDRV.EXE──Example
  413.  
  414. Suppose you need to use SMARTDrive's double-buffering feature so that you
  415. can use EMM386 to gain access to the upper memory area. To enable double
  416. buffering, you would add the following command to your CONFIG.SYS file:
  417.  
  418.     device=c:\dos\smartdrv.exe /double_buffer
  419.  
  420. To improve your computer's speed, you could also install the SMARTDrive disk
  421. cache by adding the following line to your AUTOEXEC.BAT file:
  422.  
  423.     c:\dos\smartdrv /l
  424.  
  425.                                       
  426.  
  427.