home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDWARE / SPC50.ZIP / SPC.DOC next >
Encoding:
Text File  |  1991-01-16  |  21.3 KB  |  471 lines

  1.                                SPC 5.0
  2.                The integrated multidrive equipment utility
  3.  
  4.                       Copyright 1991 by Bob Eyer
  5.                              [73230,2620]
  6.  
  7.                              Jan 16, 1991
  8.  
  9.  
  10.      Syntax:
  11.      SPC [? H A F E D S port] [=identification] [>file/PRN/COMx]
  12.  
  13.      Options (any order, any case, any combination)
  14.      ----------------------------------------------
  15.      ? or H or HELP - Brief help screen. Default is no help.
  16.  
  17.      A -   Use  standard  ASCII  character  set,  to  accommodate Epson
  18.            compatible  printers.   Default  is  to  use  extended ASCII
  19.            character set for display.
  20.  
  21.      F -   Include drives A: and B: in drive report.  No include is the
  22.            default.
  23.  
  24.      E -   Exclude UNDEF drives from totals.   See  Appendix  on  drive
  25.            measurement  for  details.   Default  is  to  include drives
  26.            flagged as UNDEF in totals.
  27.  
  28.      D -   Force  DUPlicate  detection  instead of SUBSTed detection in
  29.            drive report and net duplicates  out  of  the  totals.   The
  30.            default  is SUBSTed detection, unless a supported network is
  31.            detected,  in  which  case   SPC   defaults   to   DUPlicate
  32.            detection.  The D or S options are used for overriding these
  33.            defaults.  For details see discussion below and the Appendix
  34.            on drive measurement.
  35.  
  36.      S -   Force SUBSTed detection  instead of  DUPlicate  detection in
  37.            drive report and net SUBSTed drives out of the totals.
  38.  
  39.      = -   Identification string.  SPC puts your identification  string
  40.            on  the  right half of Line 1 of the display, overriding the
  41.            author credit, if you use  '='  followed  by  your  selected
  42.            identification information.  SPC looks for the occurrence of
  43.            the equals sign on the commandline and interprets everything
  44.            following it (up to but not including redirection and piping
  45.            symbols)  as  an  identification  string  rather  than as an
  46.            option.  SPC no longer converts  your  ID  string  to  upper
  47.            case.   Maximum  length  is  31  characters.   Default is to
  48.            display author credit.
  49.  
  50.      Use of SPC options
  51.      ------------------
  52.      SPC  options  are  provided  largely  to supply fine-tuning in SPC
  53.      applications as well as solutions to  specialised  problems  which
  54.      few  users will have.  For example, only network operators who are
  55.      not using the network types which SPC  can  detect  will  find  it
  56.      necessary to use the D option.
  57.  
  58.      Generally, use of SPC's options will not be needed.
  59.  
  60.      To get help on the use of SPC options, just enter
  61.  
  62.      SPC H
  63.  
  64.  
  65.                   EXPLANATION OF THE MAIN DISPLAY
  66.                   -------------------------------
  67.  
  68.      Much  of  what  an  SPC  display means is fairly self-explanatory.
  69.      However, it is useful here  to  identify  systematically  all  the
  70.      parts  of  the  main  display,  so  as  to  avoid  confusion.  The
  71.      following  is  a  hypothetical  display,  showing  all   equipment
  72.      connected,   a   scenario   in   which   SPC  is  run  remote  via
  73.      communications in a shell to a node connected to a  small  netbios
  74.      LAN.   The  node  in  question  has  VGA, a 3 button MS compatible
  75.      mouse, and so on.  (Command: 'SPC =Lan remote')
  76.  
  77. ┌ Monday 01-14-1991  20:47:11 ────────────────────────────── SPC 5.0  ┐
  78. │ DOS 3.20  VGA  Color 1 PAR 3 MB                      ID: Lan remote │
  79. │ FC (01/15/88)  ISA - K R 8259 -   E-CNS 1 SER/1: 16450  MR TR RS CD │
  80. │ 80386   36.8:  X....1.......2.........3.*.....4.............  80387 │
  81. │ VER SHARE PC LAN  655360/204144         -  EMS 4.0: 1524/934      1 │
  82. │ Drv ── Status ─ Sector ─ Cluster ─── Free ─ Allocated ─ Total ─ Drv │
  83. │ C:     BOOT       512     2048       3.119    23.515    26.634   C: │
  84. │ D:                512     2048       9.329    17.313    26.642   D: │
  85. │ E:                512     2048      15.020    11.622    26.642   E: │
  86. │ ─────────────────────────────────────────────────────────────────── │
  87. │ Z: Totals less DUPlicate drives:    27.468    52.450    79.918   Z: │
  88. └─────────────────────────────────────────────────────────────────────┘
  89.  
  90.      Let's take this apart line by line.
  91.  
  92.      Line 1  (DOS, peripherals, and ID string)
  93.      -----------------------------------------
  94.      This  line,  with  the exception of the DOS version, is devoted to
  95.      peripheral   equipment,   type   of   adaptor   (now    supporting
  96.      identification  of  8514  terminals and EGA adaptors used with CGA
  97.      monitors),  color/mono,  number  of  PARallel  ports,  number   of
  98.      MS-compatible  Mouse  Buttons,  and  the  optional  identification
  99.      string.
  100.  
  101.      Line 2 (ROM bios information, keyboard, and communications)
  102.      -----------------------------------------------------------
  103.      The dash ("-") is used throughout SPC to indicate logic low, zero,
  104.      or that the feature is not installed.
  105.  
  106.   FC (01/15/88)  ISA - K R 8259 -  E-CNS  1 SER/1: 16450  MR TR RS CD
  107.   ───────────────────────────────  ─────  ───────────────────────────
  108.     BIOS motherboard information   Keybd        Communications
  109.  
  110.      In order, within each category, the information is as follows:
  111.  
  112.      BIOS info -
  113.      ---------
  114.      Model number (e.g. FC)
  115.      BIOS release date  (e.g. 01/15/88)
  116.      Bus type (MCA or ISA)
  117.      Wait for external event installed (E or -)
  118.      Keyboard intercept used (K or -)
  119.      Real time clock installed (R or -)
  120.      Second 8259 installed (8259 or -)
  121.      HD BIOS uses DMA channel 3 (3 or -)
  122.  
  123.      Keyboard info -
  124.      -------------
  125.      Enhanced keyboard (E or -)
  126.      Insert mode (I or -)
  127.      Caps lock set (C or -)
  128.      Num lock set (N or -)
  129.      Scroll lock set (S or -)
  130.  
  131.      Communications info -
  132.      -------------------
  133.      Number of serial ports (1 SER, 2 SER, - SER, etc)
  134.      Port selected on command line (1 or 2)  default is 1.
  135.      UART on port card (8250, 16450, 16550, 16550A, or -)
  136.         If no communications card available for designated  port,  UART
  137.         will return logic low.
  138.      Modem Response (MR or -)
  139.         If  modem  not  connected  to designated port, or is defective,
  140.         this will be logic low.
  141.      Data terminal ready (TR or -)
  142.         Should be TR (logic high) if communication in progress.
  143.      Request to send (RS or -)
  144.         Should be RS  (logic  high)  if  RTS/CTS  hardware  handshaking
  145.         needed.
  146.      Carrier detect (CD or -)
  147.         Required (CD) for communications connect.
  148.  
  149.      Items needing comment:
  150.      - Model  number  specifies  a species in the genus "IBM compatible
  151.        computer" which in  fact  identifies  the  main  type  of  basic
  152.        input/output  system  (bios)  used in the machine.  For example,
  153.        IBM's main list goes as follows:
  154.  
  155.              FF - IBM PC
  156.              FE - IBM PC-XT
  157.              FD - IBM PCjr
  158.              FC - IBM PC-AT
  159.              FB - IBM PC-XT(rev 1)
  160.              FA - IBM PS/2 Model 30
  161.              F9 - IBM PC Convertible
  162.              F8 - IBM PS/2 Model 80
  163.  
  164.     -  MCA means microchannel (for PS/2 models) while ISA refers to the
  165.        standard IBM compatible architecture.   The  keyboard  intercept
  166.        refers to scancode interpretation automatically performed by the
  167.        BIOS,  if  supported.   Real  time clock (R) means the real time
  168.        clock is on the motherboard, not on a multi-i/o card.   Advanced
  169.        motherboard  architectures  use  a second programmable interrupt
  170.        controller (8259) to achieve 16 interrupt  levels  for  smoother
  171.        processing.  And some BIOS types use DMA channel 3 for hard disk
  172.        i/o.
  173.  
  174.        BIOS  fields following the bus type (MCA or ISA) are replaced by
  175.        blanks  for  BIOS  versions  which  do  not   support   extended
  176.        information  recovery.
  177.  
  178.      Line 3 (The processor line)
  179.      ---------------------------
  180.      Line  3  presents  4  pieces  of  information,  left to right: The
  181.      processor type, the Norton-based CPU speed index, a graph  of  the
  182.      speed  index  and  the coprocessor.  The speed graph is a 45-point
  183.      one-line logarithmic scale which enables display of  the  position
  184.      of   a  specific  computer's  processor  within  the  spectrum  of
  185.      processors actively in use today.
  186.  
  187.  (80386   36.8:  X....1.......2.........3*......4.............      -)
  188.   80386   36.8:  X....1.......2.........3*......4.............  80387
  189.  
  190.               Benchmark        Processor
  191.               -----------      -------------------------
  192.               X       1.0      8088,   4.77 MHz, (IBM XT)
  193.               1       2.0      80186,  4.77 MHz
  194.               2       7.0      80286,  6 MHz
  195.               3      29.0      80386, 16 MHz
  196.               4      94.0      80486, 16 MHz [486 criterion]
  197.  
  198.               *      36.8      This machine (386/20)
  199.  
  200.  
  201.      The  relation  which  SPC  uses  to  map  the CPU speed index to a
  202.      specific point in this 45-point scale is:
  203.  
  204.      Point # = 1 + 6.838 * LN (index)
  205.  
  206.      1 corresponds to  the  CPU  index  value  of  1,  while  Point  45
  207.      corresponds to the value of 579.2 for the index.  Thus, this graph
  208.      will  probably  be  able  to handle representation of the speed of
  209.      80586 machines when they are produced.
  210.  
  211.      Line 4 (Verify/Network/Memory Line)
  212.      -----------------------------------
  213.      The fourth line is devoted to memory - what critical  software  is
  214.      loaded, how much standard memory, how much extended, and so on.
  215.  
  216.  (VER SHARE PC LAN   655360/204144      -          No Expanded Memory)
  217.   VER SHARE PC LAN   655360/204144      -    EMS 4.0: 1524/934      1
  218.   ─── ────────────   ────────────  ──────    ────────────────────────
  219.    C   Net/MTask        RAM          EXT        Expanded memory
  220.  
  221.       C info -
  222.       ------
  223.       The  C  field  indicates whether DOS VERify is set.
  224.  
  225.       Net/MT info -
  226.       -----------
  227.       SHARE status (SHARE or -)
  228.       Network/multitasking status (type active or -)
  229.  
  230.       RAM info -
  231.       --------
  232.       Total RAM available in bytes
  233.       Free RAM available in bytes
  234.       (New  feature:  previous  SPC  versions  only  displayed  RAM  in
  235.        thousands of bytes)
  236.  
  237.       EXT info -
  238.       --------
  239.       Total Extended memory available (in 1000s)
  240.  
  241.       Expanded memory info -
  242.       --------------------
  243.       EMS version number
  244.       Total EMS memory (in 1000s)
  245.       Free EMS memory
  246.       Number of EMS handles in use
  247.  
  248.      Items needing comment:
  249.      - Unlike   other   equipment   programs,  SPC  displays  numerical
  250.        information in decimal format, rather than mixed decimal/binary.
  251.  
  252.      - Three network types are supported - PC  LAN,  MS/LANtastic/3Com,
  253.        and  Novell Netware; as well, SPC supports identification of two
  254.        multitaskers - Desqview  and  DoubleDos.   there  a  network  is
  255.        present,  the  network  id overrides any multitasking indicator.
  256.        (However,  the  presence  of  a  network   does   not   override
  257.        multitasking   detection   and  SPC's  action  of  pausing  task
  258.        switching during certain critical operations.)
  259.  
  260.        The purpose of detecting networks is chiefly to  enable  SPC  to
  261.        select  the proper detection default for drive measurement.  See
  262.        discussion of the Totals  Line  below.
  263.  
  264.        The main purpose of detecting multitasking status is  to  enable
  265.        SPC  to pause task-switching during sections of SPC's code which
  266.        are  known  to  cause  interference  with  operations  occurring
  267.        concurrently  in  other multiplexed windows.  This is what makes
  268.        SPC "DD/DV aware".
  269.  
  270.      Line 6+ (drive report)
  271.      ----------------------
  272.  
  273.   Drv────Status───Sector──Cluster──────Free───Allocated───Total───Drv
  274.   C:     BOOT       512     2048       3.119    23.515    26.634   C:
  275.  
  276.      Here, the sector and cluster sizes appear in  bytes,  whereas  the
  277.      Free,  Allocated,  and  Total  numbers  appear  in megabytes.  5/4
  278.      rounding and units place  dash  replacement  for  zeroes  is  used
  279.      consistently in SPC 5.0 as in previous versions.
  280.  
  281.      The  Status  column  indicates the special role a particular drive
  282.      may play in the overall system.  SPC supports  BOOT,  DUP,  SUBST,
  283.      CSPEC, and UNDEF specifiers.
  284.  
  285.      For DOS 4.0+, BOOT indicates from  which  drive  the  machine  was
  286.      originally  booted, while CSPEC indicates on which drive DOS looks
  287.      for COMMAND.COM.  Where  these  drives  are  the  same,  the  BOOT
  288.      indicator  overrides the CSPEC indicator.  For earlier versions of
  289.      DOS, SPC does not distinguish the boot and comspecked drives,  but
  290.      merely  labels the drive on which DOS looks for COMMAND.COM as the
  291.      BOOT drive.
  292.  
  293.      DUP means that the given drive has the same total and  free  space
  294.      as  some  other  drive  listed  earlier in the alphabetic sequence
  295.      (such as a duplicate link in a network), and so is not counted  in
  296.      the grand totals.  DUP is not assigned where the drive is reported
  297.      as UNDEF.
  298.  
  299.      SUBST means that DOS sees  the  given  drive  as  SUBSTed  from  a
  300.      directory  of  another  drive, and the numbers associated with the
  301.      SUBSTed drive are not accumulated in the grand totals.
  302.  
  303.      UNDEF means that the number of clusters on the given drive  equals
  304.      65,535  (FFFFh),  indicating  that DOS cannot define the number of
  305.      clusters.  The limitation of cluster measurement  is  due  to  the
  306.      fact  that  DOS  represents  the number of clusters as a hex word,
  307.      rather than as a double word.
  308.  
  309.      SPC  5.0, however, merely reports the statistics which DOS returns
  310.      for such drives, while providing a warning to the user in the form
  311.      of the UNDEF flag that the total and free space numbers may not be
  312.      reliable.  The E commandline option excludes UNDEF statistics from
  313.      the grand totals at the bottom of the SPC display, otherwise these
  314.      statistics are included.
  315.  
  316.      See Appendix on drive measurement below for further details.
  317.  
  318.  
  319.      Last Line (Lastdrive, Totals Line)
  320.      ----------------------------------
  321.   Z: Totals less DUPlicate drives:    27.468    52.450    79.918   Z:
  322.  
  323.      The drive listed at the beginning and end of the line is the value
  324.      of  LASTDRIVE  specified  in  CONFIG.SYS  (or  which DOS uses as a
  325.      default).  SPC will report a blank for LASTDRIVE  in  versions  of
  326.      DOS preceding 3.0.
  327.  
  328.      The title of the line shows which kind of detection  is  in  force
  329.      during  an  SPC  run.  If DUPlicate detection is active, the title
  330.      will read "Totals less DUPlicate drives"; if SUBSTed detection  is
  331.      active,  the  title will read "Totals less SUBSTed drives".  These
  332.      two modes are mutually exclusive.
  333.  
  334.      SPC in default mode  uses  the  following  set  of  conditions  to
  335.      activate duplicate mode as the detection default:
  336.  
  337.      (1) SPC  detects  DOS  4+ and a supported network.
  338.  
  339.      (2) SPC detects DOS 3+, and either the SHARE  condition  (for  IBM
  340.          LAN  or  TAPESTRY-like  networks)  or  a supported network.
  341.  
  342.      If  neither  of these conditions is met (as would typically be the
  343.      case  in  standalone  environments),  SPC  defaults   to   SUBSTed
  344.      detection.   Specifically,  even though DOS 4+ requires SHARE, SPC
  345.      will default to SUBSTed detection, unless it  detects  a  network.
  346.      However, for DOS levels below 4.0, SPC uses the SHARE condition as
  347.      indicating  the  presence  of  a   network   requiring   DUPlicate
  348.      detection.
  349.  
  350.      The user  may  override  SPC's  internal  defaulting  activity  by
  351.      specifying  what  mode to use on the commandline.  S means SUBSTed
  352.      detection; D means DUPlicate detection.
  353.  
  354.  
  355.  
  356.      APPENDIX:  DRIVE MEASUREMENT
  357.  
  358.      SUBSTed and Duplicate drives
  359.      ----------------------------
  360.      SPC  uses  DOS  Services  to identify SUBSTed drives.  This method
  361.      corrects the old bug of not displaying the last real drive in  the
  362.      list, when a SUBSTed drive is defined with a drive letter which is
  363.      prior  to  the  letter  used  for  the  last  real drive.  The DOS
  364.      Services approach to SUBSTed drives is supported as  far  back  as
  365.      DOS 2.0.
  366.  
  367.      The  disadvantage  of  using SUBSTed detection is that it leads to
  368.      difficulties when  SPC  is  run  in  local  area  networks.   Such
  369.      networks  already  redirect  drives  during network configuration,
  370.      causing drive redirection to have a different meaning than SUBSTed
  371.      redirection.  Therefore, SPC attempts to detect the presence of  a
  372.      network;  and  the  resulting information is used to determine the
  373.      drive detection default.
  374.  
  375.      Where  SPC  sees that SUBSTed detection is inappropriate, or where
  376.      the user selects the D  commandline  option,  SPC  uses  duplicate
  377.      detection rather than SUBSTed detection.
  378.  
  379.      The network detection system is fairly adequate but not  complete;
  380.      and  so,  the user may find it necessary to employ the D option to
  381.      override the system default on  the  commandline  if  the  network
  382.      environment  is  not detected by SPC.  If SPC does not detect your
  383.      network properly, then you need to use the D option explicitly; if
  384.      you use such a network, please let me know about it.
  385.  
  386.      In  SPC,  a drive is said to be a "duplicate" of another drive if,
  387.      and only if,
  388.  
  389.      (a)  it occurs later in the alphabetic drive display than its
  390.           original, and
  391.  
  392.      (b)  it has the same total and free space as its original.
  393.  
  394.      When the D option is used, duplicate drives are netted out of  the
  395.      grand totals at the  bottom  of  the  main  display.
  396.  
  397.  
  398.      APPENDIX: SPEED MEASUREMENT
  399.  
  400.      The speed graph
  401.      -------------------
  402.      The SPC speed benchmark graph, as previously noted, is a  45-point
  403.      logarithmic  scale which shows the position of the test machine in
  404.      the spectrum of all the main types of IBM/DOS-compatible equipment
  405.      in  use  today.
  406.  
  407.      Details on the speed index
  408.      --------------------------
  409.      SPC's speed  loop contains an imbedded loop; each one of these runs
  410.      1000 integer additions.  The relation between the number of  outer
  411.      loops  executed  and  the  rating  is  expressed  by the following
  412.      regression formula:
  413.  
  414.      RATING = -1.3318 + 0.0628 * LOOPS
  415.  
  416.      This  formula  is  determined  by   plugging   loop   counts   and
  417.      corresponding  Norton  SI  data  into a standard linear regression
  418.      analysis.  The purpose of doing this was to  make  sure  that  the
  419.      index  relates  to  the  Norton  SI, at least within the range for
  420.      which the Norton Index was originally designed  (XT's  and  AT's).
  421.      All of the points used were in the range below SI = 10.
  422.  
  423.      Above  SI=10,  SPC's  index  will  begin  to diverge markedly from
  424.      Norton's, especially for models in the  386  or  486  class.   For
  425.      example,  SPC  measures  the  speed of a Micronics 386/20 at about
  426.      36.8, whereas the Norton measure is about 22.0.  486 machines  are
  427.      measured  by  SPC in the 94-240 range, reflecting their enormously
  428.      greater calculating power, but the Norton  measure  merely  places
  429.      them, indifferently, in the high 30's.  An Apricot 486/25 measures
  430.      out to 152, while the same machine is measured by the Norton index
  431.      merely at 38.8.
  432.  
  433.      The presence of TSRs, and therefore different versions of DOS, may
  434.      have  a  small  effect  on  speed readings.  The normal speed of a
  435.      386/20 machine operating under DOS 3.20 with no EMS active and  no
  436.      DMA refresh adjustment should be 36.8.
  437.  
  438.                                 CREDITS
  439.                                 -------
  440.      I  wish  to  give  special thanks to Paul Tucker for providing the
  441.      hint that led to the solution of the  SUBSTed  detection  problem.
  442.      Thanks  to  Paul  also  for  providing  much testing and debugging
  443.      assistance as well as certain programming ideas which are used  by
  444.      SPC  in the network detection area.  Thanks also to Jud Newell and
  445.      Ian Singer, who tested some versions for compatibility problems in
  446.      very large Novell networks.  Thanks to Lee  Perryman  who  pointed
  447.      out  the  problem  with running SPC 4.2 on PS/2 Model 70's, and to
  448.      Rob  Campbell  who  did  most  of   the   DoubleDos   multitasking
  449.      experiments.   Also  I  wish  to  thank Greg Andrews at Compuserve
  450.      IBMCOM for conveying to me the  correct  procedure  for  detecting
  451.      UART  types.   And  I  must also express my gratitude for the fine
  452.      work  done  by   Hal   White   in   critically   reviewing   SPC's
  453.      documentation,   and   to  Ralf  Brown,  without  whose  interrupt
  454.      documentation this program would not have been impossible.
  455.  
  456.  
  457.      DISCLAIMER:
  458.      ==========
  459.      This program is circulated as public domain without any  guarantee
  460.      or  warranty;  and  the  user, by downloading this program, or any
  461.      variant thereof or by receiving it or any of its versions  in  any
  462.      other  form, agrees to accept full responsibility for its use.  It
  463.      is therefore understood that the user accepts this program or  any
  464.      previous  version  as  is.
  465.  
  466.      Bob Eyer
  467.      Compuserve [73230,2620]
  468.      Toronto, Canada
  469.      ------------------------------------------------------------------
  470.      End of documentation.
  471.