home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / LANTBLT1.ZIP / PERFORM.TXT < prev    next >
Encoding:
Text File  |  1990-07-25  |  11.4 KB  |  244 lines

  1. Network Performance Issues
  2.  
  3. "What can I do to speed up my LAN?"  A very common question, and
  4. one to which there is unfortunately, no cut and dried answer.
  5. Network performance depends on many things: to get the best
  6. performance out of your particular installation may require a
  7. little experimentation.  This bulletin presents a discussion of
  8. some of the major factors that affect performance, and a few
  9. general suggestions for improvement.
  10.  
  11.                       Choosing your Hardware
  12.  
  13. When you're choosing the hardware for your LAN, keep in mind that
  14. the things that make a fast computer are also the basic
  15. ingredients of a fast network.  A fast processor, fast memory and
  16. a fast disk drive all help to provide better network speed. For
  17. best performance, you should choose fast, well balanced
  18. components. The two biggest factors are CPU speed and hard disk
  19. speed. 
  20.  
  21. It's fairly easy to find fast computers and fast disk drives out
  22. there in the marketplace, but for the best results make sure that
  23. the components you buy are well matched. If you install a high
  24. performance disk drive in a 4.77 Mhz XT, your network will be slow
  25. because the computer's CPU won't be able to move data  around fast
  26. enough to keep up with the drive, let alone the rest of the
  27. network. Similarly, if you install an old 20mb MFM drive in your
  28. 386-33, the fast processor will spend a lot of time waiting around
  29. for the old drive, as will the rest of your network users.
  30.  
  31. The transmission speed of the adapter cards you choose will also
  32. make a difference.  With reasonably fast machines, upgrading from
  33. a LANtastic 2mbps adapter to a new AE-2 Ethernet adapter can
  34. approximately double the throughput of the network.  Again,
  35. balance is vital. If you have a slow processor, switching to
  36. Ethernet may not make much difference -- the 2mbps adapter has a
  37. coprocessor that handles all the low level NetBIOS processing,
  38. whereas the Ethernet adapter relies on the computer to handle
  39. everything.   
  40.  
  41.  
  42.                  Optimizing Software Performance
  43.  
  44. Now that we've dealt with hardware selection -- the easy stuff --
  45. let's see what can be done to improve the performance of existing
  46. installations. First, let's tie down what we mean by the "speed"
  47. of the LAN. There are really two things at issue here, the
  48. physical transmission speed of the hardware, and the effective
  49. throughput, or how fast data gets from one place to another on the
  50. LAN. Assuming for now that the hardware is fixed and immutable,
  51. here are some suggestions for getting the best throughput with
  52. your particular application.
  53.  
  54.  
  55. General Improvements
  56.  
  57. One thing that can improve performance on most networks is running
  58. the DOS FASTOPEN command on the server if you have DOS 3.3 or
  59. higher.  FASTOPEN tracks of the location of frequently used files
  60. and directories and greatly decreases the amount of time it takes
  61. to open files. 
  62.  
  63. Adding a disk cache to the server also helps performance in almost
  64. all situations. Disk caching programs work by storing frequently
  65. requested information in memory. This reduces the number of
  66. physical accesses to the disk. Since accessing memory is almost
  67. always faster than accessing the disk drive, can greatly improve
  68. the disk performance of your network.  
  69.  
  70. The LANtastic disk caching program LANcache, is specifically
  71. designed to work with LANtastic networks. It caches disk writes as
  72. well as disk reads and when it actually does have to write to the
  73. disk, it does so as a background operation so that CPU operations
  74. can continue.  
  75.  
  76.                 Choosing the Best Buffer Settings
  77.  
  78. Beyond these general speedups, getting the best performance out of
  79. your specific application is a matter of fine tuning several
  80. parameters. LANtastic has four sets of buffers, each of which can
  81. affect performance in specific situations.  
  82.  
  83.  
  84. Redir Buffers
  85.  
  86. It takes the network about the same amount of time to send 1 byte
  87. of data as it does to send 256 bytes of data.  Every packet sent
  88. over the network takes time to construct and time to process.
  89. Given this, it makes sense to include as much data as possible in
  90. each packet  -- it keeps the overhead's impact to a minimum and
  91. reduces network traffic. The REDIR program accomplishes this by
  92. buffering network requests at each machine. Here's an example of
  93. REDIR's buffering in action: 
  94.  
  95. You are creating a file of customer names on the server and adding
  96. data to it. You type in the names one at a time and your program
  97. writes the names to the data file one at a time.  Rather than
  98. issue a network send for each name, the data gets stored in the
  99. local REDIR buffer until you close the file or fill the buffer.
  100. At that point, REDIR issues a single request to send the entire
  101. buffer.
  102.  
  103. Say you had to enter 100 names at 10 characters each. If each name
  104. was sent individually, 100 network sends would be required. With
  105. its default settings however, REDIR buffers the names and has to
  106. make just one send! The time savings can be substantial.
  107.  
  108. REDIR buffers read requests similarly. If you request an amount of
  109. data smaller than the REDIR buffer, REDIR requests one buffer full
  110. of data from the server. Then, if you request the next sequential
  111. piece of data, REDIR can supply it to your program without even
  112. making a network request.
  113.  
  114. If you read or write blocks of data larger than the REDIR buffer,
  115. the network software bypasses it and deals directly with the
  116. NetBIOS. The ideal REDIR buffer size then, would be about the
  117. average size of the packets that your network typically sends and
  118. receives. You can set the size of the REDIR buffers with the SIZE=
  119. command line switch.
  120.  
  121. The number of REDIR buffers can also affect the performance of
  122. many applications. If you allocate multiple REDIR buffers using
  123. the BUFFERS= command line switch, the network tries to associate
  124. each one with a file handle. Network printers are handled just
  125. like other files.  Ideally, you should have a buffer available for
  126. each open network file. If you have more files than available
  127. buffers, the network flushes the least recently used buffer and
  128. assigns it to the new request.
  129.  
  130. WordPerfect is a good example of a program that is affected by the
  131. number of buffers.  If you have only one buffer allocated,
  132. printing can be very slow because WP has to read the document and
  133. send data to the printer with the same buffer. The poor buffer
  134. gets continually filled and flushed, back and forth, with printer
  135. data and document data. In this situation, allocating just one
  136. more buffer allows WP to use one buffer for document reading and
  137. another for printing. 
  138.  
  139.  
  140. Server Buffers and Tasks
  141.  
  142. A server buffer is at the other end of a REDIR buffer. When, for
  143. example, a workstation makes a read request, the server reads one
  144. server buffer full of data, beginning with the information
  145. requested.  If the workstation then asks for the next piece of the
  146. same information, the server can get it from the buffer instead of
  147. physically reading the hard disk.
  148.  
  149. The server buffer size can be changed from the Server Startup
  150. Parameters option in the NET_MGR program. Be aware that bigger
  151. isn't necessarily better -- as with REDIR buffers, the optimal
  152. size is somewhere around the average size of the packets that will
  153. be transferred across the network by your application.  One server
  154. buffer of whatever size you select is allocated for each network
  155. task.
  156.  
  157. When a workstation submits a request to a server, the server will
  158. work on the request for a while, then switch to work on the next
  159. task for a while, and so on, in a round-robin fashion.  If the
  160. server is set up with only one network task, instead of switching,
  161. the server will run the request to completion and other incoming
  162. tasks will be queued up behind it.  From the user's standpoint,
  163. the station that submitted the first request will get very good
  164. performance, and everyone else will be kept waiting.  In general,
  165. allowing more than one network tasks will ensure that everyone's
  166. requests get processed and will result in "smoother" network
  167. performance.
  168.  
  169. If you're a using network adapter with a coprocessor, like our
  170. Enhanced 2mbps adapter, increasing the number of network tasks
  171. (with the Server Startup Parameters option of NET_MGR) will give
  172. you a big performance boost. While the coprocessor is busy working
  173. on one task, the server's CPU can work on another.  This advantage
  174. is multiplied if you have more than one coprocessor equipped
  175. adapter in a server.  In fact, with three or four 2mbps boards in
  176. a dedicated server and a corresponding number of network tasks,
  177. you can achieve a continuous throughput comparable to that of an
  178. Ethernet network with an equal number of stations. As a plus,
  179. you've got built-in redundancy -- the workstations connected to
  180. each adapter will function as separate networks. If one segment
  181. fails because of cabling or adapter problems, the rest will still
  182. operate.
  183.  
  184.  
  185. Printer Buffers
  186.  
  187. As with REDIR and server buffers, increasing the size of your
  188. printer buffers can improve printing speed.  If your server has
  189. more than one printer attached, increasing the number of printer
  190. tasks will allow it to print to more than one printer
  191. simultaneously. 
  192.  
  193. NetBIOS Buffers and Adapter Memory 
  194.  
  195. If your network is very active, try increasing the number of
  196. buffers used by your adapter's NetBIOS. This will decrease the
  197. size of the packet of data that your adapter will send and can
  198. increase the speed with which your network handles user requests.
  199. With LANBIOS or LANBIOS2, you can do this with the BUFFERS=
  200. command line switch.  With AE-2, NE-3 and other Ethernet drivers
  201. for AI-LANBIOS, use the PACKET_SIZE= switch.  If your network
  202. doesn't have a lot of contention, you can decrease the number of
  203. NetBIOS buffers so that the server can process larger blocks of
  204. data. 
  205.  
  206. With our AE-2 card, there's an easy way to get a performance boost
  207. on heavily loaded networks.  You can upgrade the adapter from its
  208. default 16K configuration to a full 64K of RAM.  The chips can be
  209. purchased direct from Artisoft, or you can use chips that meet the
  210. specifications in the AE-2 manual.
  211.  
  212.  
  213. Effects of Changing Buffer Sizes
  214.  
  215. Keep in mind that on systems with only two or three stations,
  216. changing the buffer configuration may not have any measureable
  217. impact on speed.  In any case, increasing the size and number of
  218. REDIR and SERVER buffers uses memory and can slow down programs
  219. running on the server. If your application performance is
  220. critical, consider setting up a dedicated server for your most
  221. used application programs and printers.
  222.  
  223. Running applications on the server
  224.  
  225. To get the best performance out of your network when you run
  226. applications on a server, you should always use the server as
  227. though it was a remote workstation: log in and access the
  228. application through network drives. Using the server locally,
  229. without logging in, places you in contention with the rest of the
  230. users and network performance can suffer. If you log in, the
  231. server will schedule you along with the rest of the network users
  232. and everyone will get good performance.
  233.  
  234. Increasing print speed
  235.  
  236. One of the slowest things about printing to a network printer is
  237. spooling to the hard disk.  With LANtastic NOS 3.0 you can easily
  238. increase the print spooling speed by spooling to a RAM disk.  To
  239. change the spooler's location, use the Change Spool Location
  240. option of NET_MGR's Queue Maintenance function.  You can set the
  241. spool location to any drive -- your RAM disk or even a fast drive
  242. on your main server.  
  243.  
  244.