home *** CD-ROM | disk | FTP | other *** search
/ Computer Installation Guide - Dragon Clan Series / CD2.iso / SCSI / SC200 / NETWARE / TUNEGUID.TXT < prev   
Encoding:
Text File  |  1994-12-09  |  23.1 KB  |  496 lines

  1. NCR SDMS NetWare Tuning Guide                          Page  1
  2.  
  3. Table Of Contents
  4.  
  5. 1.  Introduction...........................................  2
  6.   1.1.  Peripheral Device Dependent Optimizations .........  2
  7.   1.2.  Flexibility........................................  2
  8.   1.3.  Overall System Optimization........................  2
  9. 2.  Loading the NCR SDMS NetWare drivers...................  3
  10.   2.1.  If using NetWare 3.1X..............................  3
  11.   2.2.  If using NetWare 4.XX..............................  3
  12.   2.3.  General Information................................  3
  13. 3.  Memory Allocation......................................  4
  14. 4.  Command Line Options Description.......................  5
  15.   4.1.  Information Options................................  5
  16.     4.1.1.  Verbose Mode...................................  5
  17.     4.1.2.  Help Mode......................................  5
  18.   4.2.  Device Oriented Options............................  6
  19.     4.2.1.  Tag Command Queuing............................  6
  20.     4.2.2.  Depth of Queue Tags............................  6
  21.     4.2.3.  Base Timeout...................................  7
  22.     4.2.4.  Sorting of Read requests.......................  7
  23.   4.3.  Flexibility Options................................  8
  24.     4.3.1.  Shared Interrupts..............................  8
  25.     4.3.2.  Exclusion of Devices...........................  8
  26.     4.3.3.  Wide SCSI......................................  9
  27.     4.3.4.  Maximum Host  Adapters.........................  9
  28.     4.3.5.  Maximum SCSI IDs............................... 10
  29.     4.3.6.  Maximum LUNs................................... 10
  30.   4.4.  System Optimizing Options.......................... 10
  31. 5.  Information Pertaining to a Specific Driver............ 11
  32.  
  33.  
  34. NCR SDMS NetWare Tuning Guide                          Page  2
  35.  
  36. 1.  Introduction
  37.  
  38.         A number of different command line options are provided with 
  39.         the NCR SDMS device drivers for NetWare.  These parameters 
  40.         allow users to fine tune their system for high performance and
  41.         greater flexibility.  Considerations during the design of the 
  42.         drivers included the behavior of the host systems, the 
  43.         peripherals, the different software components co-existing 
  44.         within the system, and the drivers themselves.
  45.  
  46.         Most system configurations will have certain features that 
  47.         should be addressed by the SDMS drivers to achieve the best
  48.         possible overall performance for the system.  Some examples 
  49.         of the parameters which may be tuned in the driver are listed 
  50.         below, along with the impact the tuning parameter may have on 
  51.         a system given a particular functionality, or lack thereof.  
  52.         In parentheses following the example are the driver options 
  53.         associated with the example.
  54.  
  55.   1.1.  Peripheral Device Dependent Optimizations:
  56.  
  57.         Some devices support tagged queue commands very efficiently, 
  58.         e.g. AT&TÆs (formerly NCR) disk array subsystems, while others
  59.         show a significant degradation in performance when a number of 
  60.         queued requests exceeds a certain value. (qtags, qdepth)
  61.  
  62.         Most disk drives have an onboard read cache that is used by the
  63.         drive controller to read ahead data. The driver may take 
  64.         advantage of this cache  by maximizing the cache hits and 
  65.         ensuring a higher data transfer rate.  However, there are 
  66.         devices that do not have an onboard cache, and implementation 
  67.         of the performance algorithm results in a greater processing 
  68.         overhead with no advantage, and as such an overall performance
  69.         degradation. (sort)
  70.  
  71.         Devices differ in their response times to requests.  To ensure 
  72.         that the driver can handle devices with various response times,
  73.         an option to tune the timeout value is available.(timeout)
  74.         
  75.   1.2.  Flexibility
  76.    
  77.         In order to allow flexibility of control of devices on the 
  78.         system, an option is provided to determine which of the devices
  79.         the driver needs to exclude from taking control over.  This 
  80.         allows independent software vendors to provide value added 
  81.         applications to directly control certain devices (e.g. Backup 
  82.         applications) via the ASPI or the CAM interface.  (xcl) 
  83.  
  84.         For embedded systems, or other systems with fixed configura-
  85.         tions, a user can limit the amount of dynamically allocated 
  86.         memory by choosing to set maximum limits on the number of host 
  87.         adapters, devices and logical units to support.
  88.         (max_hbas, max_id, max_lun)
  89.  
  90.   1.3.  Overall System Optimization
  91.  
  92.         A driver designed for a networked file server environment also
  93.         has to optimize the performance in tandem with the other 
  94.         components of the system. In order to avoid monopoly on the I/O
  95.         bus, users can configure the size of the blocks for transfer 
  96.         across the SCSI bus, ensuring that other components get fair 
  97.         access to the I/O bus.  (max_kb)
  98.  
  99. NCR SDMS NetWare Tuning Guide                          Page  3
  100.  
  101. 2.  Loading the NCR SDMS NetWare drivers
  102.  
  103.   2.1.  NetWare 3.1X
  104.  
  105.         The following files should be copied to the directory in 
  106.         which the server.exe file resides:
  107.  
  108.            NCRSDMS3.DSK - For general support of SCSI disk and CD-ROM 
  109.                           devices attached to NCR based PCI-SCSI 
  110.                           controllers, such as embedded controllers on
  111.                           the motherboard  utilizing the NCR 53C800 
  112.                           family of integrated circuits. (NCR 53C810, 
  113.                           53C815, 53C820, 53C825 chips) and the NCR 
  114.                           family of PCI Host Bus Adapters (8100S, 
  115.                           8150S, 8250S, 8251S, 8251D, etc.).
  116.  
  117.            ASPICAM3.NLM - For ASPI programming interface  support, 
  118.                              including tape support.
  119.  
  120.         At the NetWare 3.1X prompt, type in 
  121.            load NCRSDMS3 <options>
  122.            load ASPICAM3  (Only necessary if ASPI support is desired)
  123.  
  124.   2.2.  NetWare 4.XX
  125.  
  126.         The following files should be copied to the directory in which
  127.         the server.exe file resides:
  128.            NCRSDMS4.DSK - For general support of SCSI disk and CD-ROM 
  129.                              devices attached to NCR base PCI-SCSI 
  130.                           controllers, such as embedded controllers on
  131.                           the motherboard utilizing the NCR 53C800 
  132.                           family of integrated circuits. (NCR 53C810, 
  133.                           53C815, 53C820, 53C825 chips), and the NCR 
  134.                           family of PCI Host Bus Adapters (8100S, 
  135.                           8150S, 8250S, 8251S, 8251D, etc.).
  136.            NCRSDMS4.DDI - For NetWare 4.XX Installation Support.
  137.            ASPICAM4.NLM - For ASPI programming interface support, 
  138.                              including tape support.
  139.  
  140.         At the NetWare 4.XX prompt, type in 
  141.            load NCRSDMS4 <options>
  142.            load ASPICAM4  (Only necessary if ASPI support is desired)
  143.  
  144.   2.3.  General Information 
  145.  
  146.         These drivers may be loaded only once.  If any changes are 
  147.         necessary to the driver options, then the drivers must be 
  148.         unloaded and then reloaded with the appropriate options.  
  149.         If these changes are to be permanent, and the drivers are 
  150.         loaded automatically at server boot time, then these options 
  151.         must also be specified in the startup.ncf file. 
  152.  
  153.         For more information on installing and using the NCR SDMS 
  154.         NetWare drivers, please refer to the NetWare section in the 
  155.         SCSI Device Management System NCR SDMS 3.0 UserÆs Guide.
  156.  
  157. NCR SDMS NetWare Tuning Guide                          Page  4
  158.  
  159. 3.  Memory Allocation
  160.  
  161.         The driver allocates memory for certain structures based upon 
  162.         the maximum number of SCSI IDs (max_id), LUNs (max_lun) and 
  163.         paths (max_hbas) that may be used in the system.  The amount 
  164.         of memory allocated is based on the following formula: 
  165.  
  166.         437 bytes of memory are allocated for the structure, so
  167.            Memory allocated = 437 * max_hbas * max_lun * max_id.
  168.  
  169.         So for default allocations, the amount of memory allocated is:
  170.            Memory allocated = 437 * 8 * 4 * 32 =  447,448 bytes 
  171.                                                =  437 KB
  172.  
  173.         If, for example, 
  174.            only one host adapter is installed (or using an NCR based 
  175.                PCI-SCSI embedded controller and no add in HBAs),
  176.            only one LUN per device will be used, and 
  177.            the bus is narrow (e.g. max. 8 SCSI IDs), 
  178.         then by setting the appropriate options, the amount of memory 
  179.         allocated will be:
  180.            Memory allocated = 437 * 1 * 1 * 8 = 3496 bytes,
  181.                                            approximately 3.4 KB
  182.  
  183. NCR SDMS NetWare Tuning Guide                          Page  5
  184.  
  185. 4.  Command Line Options Description
  186.  
  187.         The NCRSDMS3.DSK and NCRSDMS4.DSK drivers have many tuning 
  188.         parameters.
  189.         (At this time there are no command line options for the 
  190.         ASPICAM3.NLM or ASPICAM4. NLM drivers.) 
  191.  
  192.         Following is a list of tuning parameters available, including 
  193.         the default option and a list of valid options.  Following 
  194.         each parameter is a description of when a parameter should be 
  195.         used and any impact its use/disuse might incur.
  196.  
  197.         If an option is specified but the assignment is not valid, 
  198.         then the default value will be used. The NCRSDMS3.DSK and 
  199.         NCRSDMS4.DSK drivers will be referred to in the remainder of 
  200.         this document as NCRSDMSX.DSK, where X refers to the 
  201.         appropriate NetWare operating system version.
  202.  
  203.         The options described below are used by placing the specified 
  204.         characters on the load command line for the NCRSDMS driver. 
  205.         For example, if the Verbose Mode command line option is 
  206.         desired in NetWare 3.1X, the load command line should look 
  207.         like this:
  208.            load NCRSDMS3 -v  
  209.  
  210.   4.1.  Information Options
  211.  
  212.     4.1.1.  Verbose Mode: 
  213.  
  214.         Command line option:  -v
  215.         Function:  Display the current settings of all driver options.
  216.  
  217.         This option will indicate the option settings for this load 
  218.         of the driver.
  219.  
  220.     4.1.2.  Help Mode: 
  221.  
  222.         Command line option:  -? or -h
  223.         Function:  Display the options available in the driver.
  224.         Possible Impact:  The driver will not load with -? or -h 
  225.                           specified.
  226.  
  227.         This option may be specified on the command line for a brief 
  228.         description of each of the options available in the driver, 
  229.         as well as valid values for each option.  If the -? and other 
  230.         options are specified, the help screen will be invoked, the 
  231.         other options will be ignored and the driver will not be 
  232.         loaded.
  233.  
  234.  
  235. NCR SDMS NetWare Tuning Guide                          Page  6
  236.  
  237.   4.2.  Device Oriented Options:
  238.  
  239.     4.2.1.  Tag Command Queuing: 
  240.  
  241.         Command line option:  qtags=<option>
  242.         Default value:  enable
  243.         Valid options:  enable, disable
  244.         Function:  Enable/disable tag command queuing for the devices 
  245.         Possible Impact:  Tagged commands may result in improved I/O
  246.                           throughput in devices that support such an
  247.                           option.
  248.  
  249.         Enabling the option results in the driver issuing tagged 
  250.         command requests to the devices that support tagged queuing.  
  251.         Devices that do not support tagged queuing are not issued 
  252.         tagged requests.  Depending on the drive controller, throughput
  253.         of the device may be increased by the use of queue tags, 
  254.         although an optimal number of queue tags is based on the 
  255.         specific device type.
  256.  
  257.     4.2.2.  Depth of Queue Tags: 
  258.  
  259.         Command line option:  qdepth=<option>
  260.         Default value:  10
  261.         Valid options:  0-128
  262.         Function:  Set the depth of the queue for tag command queuing.
  263.                    This value designates the depth of the queue per 
  264.                    LUN (I_T_L nexus), e.g. this value designates the 
  265.                    depth of the queue per device, or per LUN, if a 
  266.                    device has multiple LUNs.
  267.         Possible Impact:  Must be set to optimize the performance of 
  268.                           tagged command queuing.
  269.  
  270.         This option is valid only when tag command queuing (qtags) is 
  271.         enabled, which it is by default. 0 is equivalent to 
  272.         qtags=disable, and takes precedence over the setting of the 
  273.         qtags option.  While the actual depth of the queue depends on 
  274.         the specific drive controller, for single drives values of 
  275.         about 10-30 are typically most optimal.  A greater number may 
  276.         be optimal for peripherals such as disk arrays.  Users should 
  277.         experiment with various qdepth values to determine the most 
  278.         optimal performance of their particular setup.  The optimal 
  279.         qdepth value is based on different aspects of the system, 
  280.         including but not limited to: the processor, the available 
  281.         memory, the disk drives, and other peripherals.
  282.         Note:  The driver supports a maximum of 128 qtags per 
  283.                controller at any given time.  The driver may allocate 
  284.                fewer qtags per device if this limit is being reached. 
  285.                   
  286.  
  287. NCR SDMS NetWare Tuning Guide                          Page  7
  288.  
  289.     4.2.3.  Base Timeout: 
  290.  
  291.         Command line option:  timeout=<option>
  292.         Default value:  30 
  293.         Valid options:  Any integer value 30 to 999999999 
  294.         Function:  Specify the minimum value (in seconds) for command 
  295.                    timeout.
  296.         Possible Impact:  Insure system integrity when using a slow 
  297.                           device.  Performance may be reduced.
  298.  
  299.         The amount of time, in seconds, allowed for a command is 
  300.         dynamically determined by the number of pending commands and 
  301.         a base offset, or base timeout.  If a device is slow, this 
  302.         value may be increased to insure the device has adequate time 
  303.         to respond to a command issued to it before the command times 
  304.         out.  This timeout is determined based on the number of 
  305.         outstanding IOs per device.
  306.  
  307.     4.2.4.  Sorting of Read requests: 
  308.  
  309.         Command line option:  sort=<option>
  310.         Default value:  enable
  311.         Valid options:  enable, disable
  312.         Function:  Enable/disable sorting of read commands to be 
  313.                    issued to devices.
  314.         Possible Impact:  Enabling will normally yield increased 
  315.                           performance based on the target device 
  316.                           controller.
  317.  
  318.         If the devices connected to the host adapter(s) are of a 
  319.         non-buffered architecture, such as AT&T's (formerly NCR) 
  320.         6298 disk array, then sorting of reads may result in a 
  321.         performance degradation, since the absence of cache 
  322.         provides no benefit for sorted requests. In this instance 
  323.         the sort option should be disabled.  On most disk drives, an 
  324.         on-board cache allows for reading ahead of data, and by 
  325.         sorting read requests,  the probabilities of achieving a 
  326.         cache hit are greatly increased, thus increasing the overall 
  327.         performance of the driver.
  328.  
  329.  
  330. NCR SDMS NetWare Tuning Guide                          Page  8
  331.  
  332.   4.3.  Flexibility Options
  333.  
  334.     4.3.1.  Shared Interrupts: 
  335.  
  336.         Command line option:  shared_int=<option>
  337.         Default value:  disable
  338.         Valid options:  enable, disable
  339.         Function:  Support shared interrupts.
  340.         Possible Impact:  Enabling may cause a performance degradation.
  341.  
  342.         The shared interrupt option should be enabled any time a PCI 
  343.         card other than NCR Host Adapters are added to a system which
  344.         assigns all PCI cards the same interrupt value.  The added 
  345.         card must be able to support shared interrupts. The driver 
  346.         automatically handles the case of more than one NCR host 
  347.         adapter sharing an interrupt.
  348.  
  349.     4.3.2.  Exclusion of Devices: 
  350.  
  351.         Command line option:  xcl=<device>[:device ...]
  352.         Default value:  All devices recognized by the driver, i.e. 
  353.                         no devices are excluded.
  354.         Valid options:  p,i,l  
  355.                        (Multiple devices may be specified with a colon
  356.                        separator) where p is the Path designator, and 
  357.                        is in the range 0-7, i is the SCSI ID 
  358.                        designator, and is in the range 0-31, and l 
  359.                        is the LUN designator, and in the range 0-7.  
  360.                        The LUN parameter is optional.
  361.                        Multiple devices may be excluded so long as the
  362.                        string does not exceed 35 characters in length 
  363.                        and devices are separated by colons.  
  364.         Examples:  xcl=1,2,3 to exclude LUN 3 of the device at SCSI 
  365.                                 ID 2 on Path 1.
  366.                    xcl=1,2,3:2,5 to exclude LUN 3 of the device at 
  367.                                     SCSI ID 2 on Path 1, and all LUNs on 
  368.                                  the device at SCSI ID 5 on Path 2 
  369.         Function:  Allows for specifying certain devices not be 
  370.                    recognized by the driver.
  371.         Possible Impact:  Device(s) may not be directly accessed via 
  372.                           NCRSDMSX driver.
  373.  
  374.         This option is available so that specific devices may be 
  375.         excluded from being recognized and directly accessed by the 
  376.         NCRSDMSX.DSK drivers.  These devices are not registered with 
  377.         the operating system for use by the driver. Other 
  378.         applications/drivers can then take over the control of such 
  379.         devices. This option is available for support of third party 
  380.         vendors who write their own SCSI control applications.
  381.  
  382.  
  383. NCR SDMS NetWare Tuning Guide                          Page  9
  384.  
  385.     4.3.3.  Wide SCSI: 
  386.  
  387.         Command line option:  wide=<option>
  388.         Default value:  enable
  389.         Valid options:  enable, disable
  390.         Function:  Enable/Disable support of Wide SCSI.
  391.         Possible Impact:  No Wide SCSI Support available.
  392.  
  393.         This option specifically allows the user to disable support of
  394.         wide SCSI when using  a wide SCSI controller.  This option 
  395.         should be set to "disable" if a wide SCSI device is present on
  396.         the system, but a narrow SCSI cable is connected somewhere on 
  397.         the bus between the wide SCSI host adapter  and the wide 
  398.         device, thus prohibiting the transfer of wide data.  If this 
  399.         option is set to "disable", the wide device may still be used,
  400.         but all data transferred to/from the device will be narrow 
  401.         (8 bit).  The driver will not initiate a wide SCSI transfer 
  402.         request negotiation.
  403.  
  404.     The following three options affect the amount of memory used by 
  405.     the driver.  Please see the section above on memory allocation for 
  406.     information on how memory is allocated by the driver, and to get 
  407.     an approximate feel for the amount of memory which may be saved by
  408.     invoking these parameters.
  409.  
  410.     4.3.4.  Maximum Host  Adapters: 
  411.  
  412.         Command line option:  max_hbas=<option>
  413.         Default value:  8
  414.         Valid options:  1-8
  415.         Function:  Specify the maximum number of Host Bus Adapters to 
  416.                    support.
  417.         Possible Impact:  If number is reduced, may allow for 
  418.                           reduction in memory used by the driver.
  419.  
  420.         This parameter may be used to optimize the use of dynamically 
  421.         allocated memory by the driver. If less than 8 NCR based PCI 
  422.         host adapters, including any on board (built in to) the 
  423.         motherboard, are being used, this parameter will allow for a 
  424.         reduction in the total memory being used for the driver.
  425.  
  426.  
  427. NCR SDMS NetWare Tuning Guide                          Page  10
  428.  
  429.     4.3.5.  Maximum SCSI IDs: 
  430.  
  431.         Command line option:  max_id=<option>
  432.         Default value:  32
  433.         Valid options:  8-32
  434.         Function:  Specify the maximum number of SCSI IDs each host 
  435.                    adapter board should support.
  436.         Possible Impact:  If number is reduced, may allow for 
  437.                           reduction in memory used by the driver.
  438.  
  439.         This parameter may be used to optimize the use of dynamically 
  440.         allocated memory by the driver.  If all the host adapters, 
  441.         including any SCSI controllers on the motherboard are 
  442.         connected to less than 31 devices, a user can reduce the size 
  443.         of the dynamically allocated memory by setting this value to 
  444.         the maximum number of devices on any of the SCSI controllers. 
  445.  
  446.     4.3.6.  Maximum LUNs: 
  447.  
  448.         Command line option:  max_lun=<option>
  449.         Default value:  4
  450.         Valid options:  1-8
  451.         Function:  Specify the maximum number of LUNs each host 
  452.                    adapter board should support per SCSI id.
  453.         Possible Impact:  If number is reduced, may allow for 
  454.                           reduction in memory used by the driver.
  455.  
  456.         This parameter may be used to optimize the use of dynamically 
  457.         allocated memory by the driver.  If less than 8 LUNs are being
  458.         used per  NCR based PCI host adapter SCSI id, this parameter
  459.         will allow for a reduction in the total memory being used for 
  460.         the driver. 
  461.  
  462.   4.4.  System Optimizing Options
  463.  
  464.     4.4.1.  Maximum Block Size for Concatenation: 
  465.         Command line option:  max_kb=<option>
  466.         Default value:  32767
  467.         Valid options:  0-32767
  468.         Function:  Set the maximum number of KB that may be written 
  469.                    to disk at one time.
  470.         Possible Impact:  A high number may result in more data being 
  471.                           transferred in a single data phase.
  472.  
  473.         Specify the maximum size block in Kilobytes which may be 
  474.         written to disk in one data transfer phase. This ensures 
  475.         that when requests are being concatenated, the maximum size 
  476.         of the concatenated request would not exceed the specified 
  477.         value. If individual requests themselves are greater than this
  478.         specified value, no action would be taken.
  479.  
  480.  
  481. NCR SDMS NetWare Tuning Guide                          Page  11
  482.  
  483. 5.  Information Pertaining to a Specific Driver
  484.  
  485.     This document addresses options available on the NCR SDMS 
  486.     NetWare drivers, version 3.05.00.  For information pertaining 
  487.     to a specific driver, please do one of the following:
  488.  
  489.         For NetWare version 4.XX, consult the NCRSDMS4.DDI file for 
  490.         options available for NCRSDMS4.DSK.  This may be accessed via 
  491.         the NetWare install utility.
  492.  
  493.         For versions of the driver 3.05.00 and later, use the -? 
  494.         option on the command line of the NCRSDMSX.DSK driver
  495.  
  496.