home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1227 / help < prev    next >
Encoding:
Text File  |  1990-12-28  |  6.9 KB  |  207 lines

  1.         S C B   S E T   U P   A N D   O P E R A T I O N S
  2.  
  3.  
  4.     The following is a description of the steps to follow in setting up
  5. and running of the SCB. Detail information follows on the specifics of each step.
  6.  
  7. Step1.        Create a directory /scb
  8.  
  9. Step2.        Copy all files on the SCB media to the directory /scb
  10.  
  11. Step3.        Create a config file which provides the mounted path names for
  12.         disk volumes and the path names for the tty lines
  13.  
  14.  
  15. Step4.        Prepare all disk volumes or partitions and all tty lines. Mount
  16.         the disk volumes or partitions to be used.
  17.  
  18.  
  19. Step5.        Execute the main shell script which will compile all the C
  20.         programs and make all the disk files on the partitions or volumes
  21.         specified in the config file
  22.  
  23.  
  24. Step6.        Execute the shell script which will run the SCB
  25.         and will send the output files subele and graph
  26.         to the printer. The raw data is left in file answers.
  27.         You may wish to save these output files as they will
  28.         be written over the next time the benchmark is run.
  29.  
  30.  
  31.     An example of the config file specified in Step 3. is shown below. The
  32. config file is used by the crun,xrun,drun,trun and makefiles programs. A # in
  33. the first colume of a line in the config file indicates that the line is a
  34. comment.
  35.  
  36.  
  37.         *** SAMPLE config FILE ***
  38.  
  39. # number of main cpu Processors
  40. 1
  41. # number of concurrent user processes(level of multiprocessing)
  42. 8
  43. # number of disk volumes or partitions
  44. 1
  45. # percent    mount name for volume or partition
  46. 100    /mnt/files
  47. # number of tty controllers
  48. 1
  49. # number of tty lines per controller
  50. 8
  51. # path names for tty lines(at least one per concurrent user process)
  52. /dev/tty00
  53. /dev/tty01
  54. /dev/tty02
  55. /dev/tty03
  56. /dev/tty04
  57. /dev/tty05
  58. /dev/tty06
  59. /dev/tty07
  60.  
  61.  
  62.  
  63.     The first line of the config file specifies the number of main CPU there
  64. are for the system. When there is more than one main processor crun uses this to
  65. estimate the efective processing power of the system. Must be specified even if there
  66. is only one.
  67.  
  68.     The second line specifies the multiuser level or the number of conconcurent
  69. processes executing at the same time in the system.
  70.  
  71.     THE third line specifies the number of disk volumes or partitions to be
  72. used in the SCB run. The program makefiles will place 200 (20K) files on each
  73. of the partitions or volumes specified. This means there must be 4 megabytes of space available
  74. on each volume used. The lines to follow specify the percent (may or maynot 
  75. have decimal point) of files to use from that volume and the path name where
  76. the volume or partition is mounted.  Up to 8 different volumes may be specified.
  77.  
  78.     The next information in the config file deals with TTY subsystem.
  79. First the number of TTY controller boards in the system must be specified 
  80. followed on the next line by the number of tty lines handeled by each board.
  81. The next lines in the config file specify the unix path names for each tty line
  82. used. These tty path names should be unique and the number of path names must
  83. be the same as the multiuser level. Each work unit will use a unique tty line
  84. path name while it is executing.  Up to 64 different tty lines may be specified.
  85.  
  86.     The information just described is all that is needed in the config file
  87. and is all the user must provide to run the SCB.
  88.  
  89.     The SCB run uses disk files created by the benchmark on the volumes
  90. specified in the config file. For best results each disk volume or
  91. partition to be used should be prepared with a make file system(mkfs) in
  92. Step 4. If this is not possible because of a need to keep existing files
  93. then do an fsck with the capital S (-S) option on each partition. Each 
  94. volume or partition used must be able to hold 200 (20K) files or provide a
  95. file space of 4 megabytes for executing the SCB.
  96.  
  97.     In Step 4. each tty line specified in the config file must be conected
  98. to a terminal or a bit bucket type plug. Each tty line will be run in non
  99. login mode at 9600 baud. The line conditions are set by the SCB.
  100.  
  101.     The shell script in Step 5. main (shown below) compiles all the C programs
  102. and uses the program makefiles to create 200 files (4megabytes) on each volume
  103. or partition specified in the config file. These volumes or partitions should
  104. have been cleaned up and mounted in Step 4.
  105.  
  106.  
  107.         *** SHELL SCRIPT main ***
  108.  
  109.  
  110. : ' Copyright 1985 NCR Corporation - Dayton, Ohio, USA '
  111. : ' %W%  Delta Date: %U% %G% '
  112. set -x
  113. cc -O -s -o crun crun.c
  114. cc -O -s -o xrun xrun.c
  115. cc -O -s -o tplot tplot.c
  116. cc -O -s -o rplot rplot.c
  117. cc -O -s -o makefiles makefiles.c
  118. cc -O -s -o drun drun.c
  119. cc -O -s -o trun trun.c
  120. cc -O -s -o cpurun cpurun.c
  121. makefiles
  122. echo "compile and makefiles complete"
  123.  
  124.  
  125.     The shell script runscb in Step 6. first executes crun to estimate the speed
  126. of the main processor. crun also ask the name of the system to be benchmarked.
  127. This name should be entered with capital letters and a blank between letters as this 
  128. name will be placed at the bottom of the SCB graph.
  129.  
  130.  
  131.         *** SHELL SCRIPT runscb ***
  132.  
  133.  
  134. : ' Copyright 1985 NCR Corporation - Dayton, Ohio, USA '
  135. : ' %W%  Delta Date: %U% %G% '
  136. set -x
  137. rm answers subele
  138. crun
  139. drun 1 36
  140. trun 120 1
  141. for i in 0 30 60 90 120
  142. do
  143.     for j in 0 4 8 12 16 20 24 28 32 36
  144.     do
  145.         xrun $i $j
  146.     done
  147. done
  148. tplot answers >graph
  149. pr subele graph | lp
  150. echo "SCB process complete"
  151.  
  152.  
  153.     Once the system name has been entered the benchmark may be left to
  154. run unattended. It will take at least a few hours.  Good to leave and let run
  155. after working hours.
  156.  
  157.  
  158.     The programs crun drun and trun are executed to measure the CPU,tty and
  159. disk subsystem elements. The results are placed in the file subele. A sample of
  160. subele is shown as the last page of this help file.
  161.  
  162.     Next the shell script runscb executes xrun 50 times covering the
  163. different disk and tty loads. The results of each execution of xrun is
  164. appended to a file answers. After all xruns have been executed, the file
  165. answers is used as input to tplot which produces a graph named graph.
  166. Finally subele and graph are sent to the printer.
  167.  
  168.  
  169.     The SCB user may compare different computer systems by entering the
  170. command
  171.  
  172.         rplot answers1 answers2 >rgraph
  173.  
  174. under directory /scb. answers1 and answers2 are answer files created by two
  175. seperate SCB runs. The comand will create a ratio graph rgraph that should be sent to 
  176. the printer.
  177.  
  178.  
  179.  S Y S T E M   U N D E R   T E S T              M A C H I N E  X 
  180.  
  181.  
  182.  
  183.   C P U   S U B S Y S T E M 
  184.  Time to Execute CRUN     0.200
  185.  Realative speed of a Single CPU     1.328
  186.  Number of Main CPU Processors 1
  187.  
  188.   D I S K   S U B S Y S T E M 
  189.  Effective Disk System rate   60.9395 K bytes per Second
  190.  Average Time per Disk Request    0.01641 Seconds
  191.  Total Disk Request  7200 Request Size  1  K bytes
  192.  Time for All Disk Request    118.150 Seconds
  193.  Number of Disk Units 1
  194.  Disk Unit 1 Percent   100.000
  195.  Disk Request per Job  36
  196.  Jobs per Minute    101.566
  197.  
  198.   T T Y   S U B S Y S T E M
  199.  Total  Characters Written per Second  1710.978
  200.  Characters Written per Second per Line   213.872
  201.  Total Characters Written 768000 request size 32 
  202.  Total Time To Write Characters   448.866 Seconds
  203.  Number of TTY Controllers 1
  204.  Number of TTY Lines per Controller 8
  205.  Number of TTY Lines Used in Run 8
  206.  Jobs per Minute    26.734
  207.