home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / TEXT / N7TIPS.ZIP / 1014206.TXT < prev    next >
Text File  |  1994-03-04  |  9KB  |  224 lines

  1.  
  2.  
  3.               NOVELL TECHNICAL INFORMATION DOCUMENT
  4.  
  5. TITLE:              Configuring NWCACHE
  6. DOCUMENT ID:        014926
  7. DOCUMENT REVISION:  A
  8. DATE:               27FEB94
  9. ALERT STATUS:       Yellow
  10. INFORMATION TYPE:   Issue
  11. README FOR:         NA
  12.  
  13. NOVELL PRODUCT and VERSION:
  14. Novell DOS 7
  15.  
  16. ABSTRACT:
  17.  
  18. NWCACHE is a disk cache with many different configuration options
  19. available.  This document discusses some of the configuration
  20. options available for NWCACHE.
  21.  
  22. ------------------------------------------------------------------
  23. DISCLAIMER
  24. THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO
  25. NOVELL.  NOVELL MAKES EVERY EFFORT WITHIN ITS MEANS TO VERIFY
  26. THIS INFORMATION.  HOWEVER, THE INFORMATION PROVIDED IN THIS
  27. DOCUMENT IS FOR YOUR INFORMATION ONLY.  NOVELL MAKES NO EXPLICIT
  28. OR IMPLIED CLAIMS TO THE VALIDITY OF THIS INFORMATION.
  29. ------------------------------------------------------------------
  30.  
  31. ISSUE
  32.  
  33.      NWCACHE loads with parameters specifying the maximum cache
  34.      size, the minimum cache size, whether memory lending is
  35.      enabled, and whether write delays are enabled.  These and
  36.      other parameters can be specified when NWCACHE is loaded;
  37.      NWCACHE /? will show the possible values.
  38.  
  39.      If no values are specified, NWCACHE will determine the type
  40.      and amount of memory available on your system and load with
  41.      the appropriate values.  By default, write delays will be
  42.      set to off.  If the necessary memory is available, memory
  43.      lending will be set on, and the maximum and minimum cache
  44.      size will differ by the amount of memory that NWCACHE can
  45.      lend.
  46.  
  47.  
  48.      SIZE OF CACHE
  49.  
  50.      Using the DPMS specification, NWCACHE moves a portion of its
  51.      code as possible into extended memory.  It also
  52.      automatically attempts to put some code in upper memory. 
  53.      Therefore, you do not need to use HILOAD or HIINSTALL when
  54.      loading NWCACHE.  The NWCACHE code "footprint" is 5 KB (10
  55.      KB if DPMS is not used), and the Lookahead buffer typically
  56.      requires 4 to 16 KB.
  57.  
  58.      If you are using expanded memory (EMS) for the cache buffer,
  59.      use the /BE switch if you wish to minimize the effect of
  60.      NWCACHE on your conventional and upper memory.  This switch
  61.      locates the lookahead buffer into EMS memory.
  62.  
  63.  
  64.      If you are using extended memory (XMS), load DPMS.EXE before
  65.      NWCACHE and use the /MLX or /MUX (default) switch when
  66.      loading the cache program.
  67.  
  68.      The memory optimization described above for EMS and XMS will
  69.      not necessarily yield the most efficient (fastest) cache
  70.      configuration for every system, so you will need to
  71.      experiment to see what works best on your system.
  72.  
  73.      The maximum allowable size for the NWCACHE buffer is 7 MB. 
  74.      If you specify a cache buffer greater than 7 MB, only 7 MB
  75.      will be allocated to NWCACHE.
  76.  
  77.  
  78.      USING NWCACHE AND WINDOWS 3.1
  79.  
  80.      Disk caching with NWCACHE is recommended for improved
  81.      performance with Windows.  NWCACHE needs to be loaded before
  82.      starting Windows, DesqView /X, or any other multitasking
  83.      software.  While Windows is active, diskette drives are
  84.      temporarily switched from buffered write to write-through
  85.      mode.
  86.  
  87.      Although NWCACHE attempts by default to use all available
  88.      extended memory (up to 7 MB), it lends back memory to
  89.      applications, as requested.  The amount of memory that
  90.      NWCache can lend to an application is determined by the
  91.      difference between the maximum size of the cache and the
  92.      minimum size of the cache, as allocated when NWCache is
  93.      loaded.
  94.  
  95.      For example, if the maximum cache size is set to 4096 and
  96.      the minimum cache size is set to 1024, the amount of memory
  97.      available for lending to other applications is 4096 to 1024,
  98.      which equals 3072 KB or 3 MB.
  99.  
  100.      Windows is unique in that it allocates all extended memory
  101.      when it is loaded.  Other applications use varying amounts
  102.      of extended memory as they need it.
  103.  
  104.      Windows needs 2 MB or more of memory to run efficiently in
  105.      enhanced mode.  If your system has less than 4 MB of memory,
  106.      you need to force NWCACHE to lend at least 2 MB of extended
  107.      memory back to Windows.  To do so, set the minimum cache
  108.      size to be at least 2048 KB smaller than the maximum cache
  109.      size, and set the /LEND switch to /LEND=ON.  An example of
  110.      this configuration would be to load NWCACHE with the
  111.      following parameters:
  112.  
  113.           NWCACHE 3072 1024 /LEND=ON
  114.  
  115.      If you run several applications through Windows and run out
  116.      of memory, you can increase the amount of memory that
  117.      NWCACHE can lend by decreasing the minimum cache size.
  118.  
  119.      For example, to lend 4 MB of memory, make the minimum cache
  120.      size 4096 KB smaller than the maximum cache size (and set
  121.      the /LEND switch to ON).
  122.  
  123.      If your system has a lot of memory (8 MB or more) and you
  124.      use Windows extensively, turn off lending completely and set
  125.  
  126.      a maximum size for the cache buffer, leaving ample memory
  127.      free for Windows.
  128.  
  129.      For example, on a system with 10 MB total memory (9 MB
  130.      extended), load NWCACHE with the following switches: NWCACHE
  131.      3072 1024 /LEND=OFF.  This allocates 3 MB of memory to the
  132.      cache, leaving 6 MB of extended memory untouched, so that
  133.      Windows can have 6 MB for its own use.  If you find that
  134.      Windows is still running out of memory, enable lending
  135.      (/LEND=ON).
  136.  
  137.  
  138.      USING NWCACHE WITH NETWORKS
  139.  
  140.      NWCACHE can be used on a DOS network workstation or on a
  141.      PERSONAL NetWare Server.  Some disk caches that do delayed
  142.      writes will cause hanging or corruption on a PERSONAL
  143.      NetWare server; however, NWCACHE has been specifically
  144.      designed to be aware of Novell's peer-to-peer server
  145.      software.  Load NWCACHE before any network is started. 
  146.      NWCACHE will not cache remote network drives (such as,
  147.      drives across the network).
  148.  
  149.      If you are running NWCACHE on a system that runs
  150.      peer-to-peer network server software OTHER THAN Novell's
  151.      PERSONAL NetWare server, you should consult that network's
  152.      documentation for information on running with a disk cache.
  153.  
  154.  
  155.      GENERAL TIPS
  156.  
  157.      Do not use the Novell DOS VERIFY=ON command when using a
  158.      network, as it will negate any gain from caching.  In
  159.      AUTOEXEC.BAT, set VERIFY= to VERIFY=OFF.
  160.  
  161.      When using NWCACHE, set the FASTOPEN command in the
  162.      CONFIG.SYS file to FASTOPEN=0.  A BUFFERS setting of 4
  163.      (BUFFERS=4) in the CONFIG.SYS file is adequate.
  164.  
  165.      NWCACHE should be loaded early in the AUTOEXEC.BAT file
  166.      before the network is loaded.  Any TSRs loaded after NWCACHE
  167.      must be unloaded from memory before NWCACHE can be unloaded
  168.      (with the /Q or /U switch).
  169.  
  170.  
  171.      TROUBLESHOOTING NWCACHE
  172.  
  173.      As is the case with any software cache, NWCACHE should not
  174.      be run concurrently with other disk caches.  If NWCACHE is
  175.      enabled, verify that no other disk cache is running.
  176.  
  177.      If the factors listed here have been eliminated and NWCACHE
  178.      does not function, adjusting the parameters used when
  179.      loading NWCACHE is probably necessary.  Begin with the
  180.      simplest settings, for example:  NWCACHE /LEND=OFF
  181.      /DELAY=OFF.
  182.  
  183.      If an application seems to need more memory, increase the
  184.      amount of memory that NWCACHE can lend to applications. 
  185.      This can be done by setting /LEND to /LEND=ON, and
  186.      decreasing the minimum cache size.
  187.  
  188.      If it appears that NWCACHE is the cause of an upper memory
  189.      conflict, use the NWCACHE /L, /ML, and /BL switches to force
  190.      all parts of NWCACHE into conventional memory for testing
  191.      purposes.
  192.  
  193.      If you are experiencing problems reading a drive or if you
  194.      are getting data corruption, try disabling delayed writes. 
  195.      This is done by placing /DELAY=OFF on the NWCACHE command
  196.      line.  Alternatively, you can use /x:- switch (where x is
  197.      the drive letter), to disable caching on that drive.
  198.  
  199.      Some SCSI drives may require that your cache supports double
  200.      buffering of disk transfers.  To enable this, load the
  201.      DBLBUF.SYS driver in the CONFIG.SYS file.   The DBLBUF.SYS
  202.      driver will require 2 KB of conventional memory, and it
  203.      needs to be loaded in the CONFIG.SYS files after any lines
  204.      that load memory device drivers or network device drivers. 
  205.      Do not load DBLBUF.SYS high.
  206.  
  207.      If your drive controller or adapter has a built in disk
  208.      cache, you should consult its documentation or technical
  209.      support for information on using software disk caches.  Most
  210.      likely, you will not benefit from NWCACHE.  In any case, if
  211.      you run NWCACHE, you should disable the controller's cache. 
  212.      However, you will get better use of memory if you allow the
  213.      controller to cache the drive; you will be able to use your
  214.      extended or expanded memory for other purposes.
  215.  
  216.  
  217.      SUMMARY
  218.  
  219.      This document covered some of the configuration options for
  220.      use of NWCache.  Step-by-step information can be found in
  221.      the NWCache HotStart.  Further information can be found in
  222.      the Novell DOS 7 User Guide, in DOSBOOK, and in the Novell
  223.      ASK Information System.
  224.