home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / os2 / os21tips.zip / WP21TUNE.DOC < prev    next >
Text File  |  1993-08-12  |  184KB  |  3,411 lines

  1. ──── Document: WP ────────────────────────────────
  2. ──── Page: i ────────────────────────────────
  3.  
  4. OS/2 2.1 Performance Tuning for End Users
  5. May 7, 1993
  6. ──── Page: ii ────────────────────────────────
  7.  
  8.  
  9. ╕ Copyright International Business Machines Corporation 1993. All rights reserved.
  10. Note to U.S. Government Users ═ Documentation related to restricted rights ═ Use, duplication
  11. or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
  12. ──── Page: iii ────────────────────────────────
  13.  
  14.  
  15.  
  16. Preface
  17. This Performance White Paper is designed to assist end users in improving the performance of
  18. their OS/2 system by providing information on software and hardware. Items addressed include
  19. software tuning and hardware upgrades. It was written by the OS/2 System Performance
  20. Department members (IBM Boca Raton), with contributions from the OS/2 operating system
  21. development community.
  22. There are many questions on what to do to increase the overall performance of an OS/2 system.
  23. This is a complicated question as various factors influence the performance of OS/2. This article
  24. attempts to provide information, from various sources, that relates to the performance of OS/2
  25. 2.1. Other articles, press releases, product information guides and independent testing all con-
  26. tributed to the information found here. Several of these documents are listed here.
  27. The information in this paper deals directly with stand-alone systems. This is not to say that the
  28. information will not prove useful to the networked system, but it does not deal with networked
  29. systems or the hardware used for networking.
  30. ■ OS/2 2.1 Using the Operating System
  31. ■ The OS/2 V2.1 Update Redbook
  32. ■ OS/2 2.0 Installation & Tuning Guide
  33. GG24-3948
  34. ■ OS/2 2.0 Information and Planning Guide
  35. G326-0160
  36. ■ OS/2 Version 2.0 Technical Compendium
  37. GGOF-2254
  38. Volume 2: DOS and Windows Environment
  39. GG24-3731
  40. Volume 4: Application Development
  41. GG24-3774
  42. Volume 5: Print Subsystem
  43. GG24-3775
  44. Preface iii
  45. ──── Page: iv ────────────────────────────────
  46.  
  47.  
  48.  
  49. Trademarks referenced
  50. The following products are referenced in the document:
  51. ■ OS/2, Personal Systems/2, PS/2 and Micro Channel are registered trademarks of the Interna-
  52. tional Business Machines Corporation
  53. ■ Presentation Manager, WIN-OS/2 and SPM/2 are trademarks of the International Business
  54. Machines Corporation
  55. ■ Microsoft and Microsoft Windows are registered trademarks of Microsoft Corporation
  56. ■ Intel is a registered trademark of Intel Corporation
  57. ■ Pentium is a trademark of Intel Corporation
  58. ■ R:Base is a trademark of Microrim, Inc.
  59. ■ Norton Disk Utitilies is a trademark of Symantec Corporation
  60. ■ Microsoft Word and Word for Windows are registered trademarks of Microsoft Corporation
  61. ■ WordPerfect is a trademark of Wordperfect Corporation
  62. ■ Performance 2.1 is a trademark of Clear and Simple, Inc.
  63. ■ Lotus and 1-2-3 are registered trademarks of Lotus Development Corp.
  64. ■ FoxPro is a trademark of Microsoft Corporation
  65. ■ Intel is a registered trademark of Intel Corporation
  66. ■ Video Seven is a trademark of Headland Technology Inc.
  67. iv OS/2 Performance Tuning  
  68. ──── Page: v ────────────────────────────────
  69.  
  70.  
  71.  
  72. Contents
  73. Why OS/2 Version 2.X ?  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  74. What hardware do I need to run OS/2 ?  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  75. What hardware configurations run OS/2 2.0 & 2.1 ?  . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  76. How much system memory is needed ?  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  77. What performance improvements were made in ver. 2.1 ?  . . . . . . . . . . . . . . . . . . . . . . . . .  4
  78. What should I know to install OS/2 2.1?  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  6
  79. Boot Manager  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  6
  80. Partitioning Your Hard Disk  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  81. File System Selection  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  82. Default File System Cache Sizes  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  83. Formatting the Partition  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  84. Install Features Selection  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  85. Preselected Install  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  86. Full Install  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  87. Selectable Install  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  88. Migrating Applications  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  89. Installation and WIN-OS/2 Support  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  90. What Else Can be Changed to Improve Performance?  . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  91. General System Changes  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  92. Animation  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  93. Changing Display Drivers  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  94. Minimize Applications and Folders  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  95. Starting Applications  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  96. Use Startup Folder  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  97. Multitasking Considerations  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  98. Swap File Tuning  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  99. File Systems  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  100. Partition Size and File System Performance  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  101. File System Caches and Lazy Writing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  102. The CONFIG.SYS  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  103. Customizing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  104. Changes for a DOS Session  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  105. The AUTOEXEC.BAT  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  106. Customizing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  107. How To Specify a Different AUTOEXEC.BAT File  . . . . . . . . . . . . . . . . . . . . . . . .  33
  108. Tuning for OS/2 Applications  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  33
  109. Tuning for Windows Applications  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  33
  110. WIN-OS/2 Settings  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  111. Tuning for DOS Applications  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  37
  112. DOS Settings  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  38
  113. Improving Printing Performance  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  114. Improving COM Performance  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  49
  115. Does the Hardware Impact Performance on OS/2 ?  . . . . . . . . . . . . . . . . . . . . . . . . . . .  50
  116. Contents v
  117. ──── Page: vi ────────────────────────────────
  118.  
  119.  
  120. CPU  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  121. Memory  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  122. Displays  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  123. Hard Drives  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  124. Appendix A. Top Tips to Improve Performance  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  55
  125. Appendix B. Application Performance Measurements  . . . . . . . . . . . . . . . . . . . . . . . . .  56
  126. Appendix C. Display Driver Performance  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  57
  127. Appendix D. Removing Features  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  58
  128. Appendix E. Performance Tools  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  63
  129. Appendix F. Files that can be Migrated to the Server  . . . . . . . . . . . . . . . . . . . . . . . . .  65
  130. Glossary  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  68
  131. Index  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  70
  132. vi OS/2 Performance Tuning  
  133. ──── Page: vii ────────────────────────────────
  134.  
  135.  
  136.  
  137. Figures
  138. 1.  Partitioning Example #1  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  139. 2.  Partitioning Example #2  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  140. 3.  File System Partition and File Size Support  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  141. 4.  FAT Cluster Size  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  142. 5.  Features Installed with PreSelected Install  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  143. 6.  Selectable Features  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  144. 7.  Installation - System Configuration Menu  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
  145. 8.  OS/2 2.1 Display Driver Resolutions  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  146. 9.  OS/2 Supplied Fonts  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  147. 10.  Software Configuration Menu  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  148. 11.  Cache and Lazy Writing Parameters  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  149. 12.  Installed Cache Default Sizes  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  150. Figures vii
  151. ──── Page: viii ────────────────────────────────
  152.  
  153.  
  154. viii OS/2 Performance Tuning  
  155. ──── Page: 1 ────────────────────────────────
  156.  
  157.  
  158.  
  159. Why OS/2 Version 2.X ?
  160. The general advantages of the 32-bit version of OS/2 are the flat memory model, exploitation of
  161. new hardware, increased programming model support, multiple virtual DOS machine sessions,
  162. and relief of some system limits.
  163. The flat memory model is possible due to built in function on the 80386SX and higher processors.
  164. This allows for a very large ( 4 Gigabyte ) single address space referred to as flat memory.
  165. Call/return times are reduced by eliminating the need to switch segments. Internal calls are
  166. handled with the 32-bit offset rather than the segment:offset used previously. The implementa-
  167. tion of this model allows OS/2 2.x to have 32-bit APIs. While all previous 16-bit APIs are still
  168. completely supported, many APIs are now 32-bit, thus improving performance and enhancing
  169. function.
  170. OS/2 2.x exploits hardware in several ways. The OS/2 2.x operating system exploits the Intel
  171. 80386 and 80486 microprocessor capabilities. OS/2 2.x utilizes native protected mode and virtual
  172. 8086 mode, memory virtualization via a flat memory model, and paging. Utilizing the 32-bit
  173. native mode of the 80386 and 80486 facilitates the exploitation of 32-bit arithmetic and move
  174. instructions. These hardware platforms provide additional segment registers and extend the
  175. general registers to 32-bits. When applications are developed for this environment, proper design
  176. decisions will result in superior performing programs.
  177. OS/2 2.x also provides support for advanced disk hardware. It can use request lists to move data
  178. to the disk, where the hardware supports scatter/gather, and simulates this for disk drives that do
  179. not. This improves the performance of disk accesses.
  180. OS/2 provides support for advanced parallel port hardware. If the machine supports Micro
  181. Channel and uses Direct Memory Access (DMA) for its parallel port, then OS/2's Print Device
  182. Driver significantly improves the speed data is sent to the printer (in excess of 100 kilobytes per
  183. second). This support allows OS/2 to improve performance of applications since OS/2 can spend
  184. more time running applications and less time handling interrupts.
  185. OS/2 2.x releases support all existing 16-bit OS/2 applications (VIO or Presentation Manager),
  186. 32-bit OS/2 Presentation Manager applications and mixed model OS/2 applications in the OS/2
  187. full screen or windowed sessions. OS/2 2.x also supports most DOS applications including those
  188. applications that use EMS, XMS or DPMI memory in the VDM full screen or windowed ses-
  189. sions. OS/2 2.0 supported most 2.x and 3.0 Windows applications in the WIN-OS/2 full screen
  190. session and in the WIN-OS/2 seamless session on VGA systems. OS/2 2.01 provided the same
  191. support as release 2.0, but added seamless support for the Tseng and IBM VGA 256c chip sets.
  192. OS/2 2.1 supports the Windows 3.0 and 3.1 applications, and Windows 2.x applications that do
  193. not require real mode, in WIN-OS/2 full screen and seamless sessions on VGA, XGA and SVGA
  194. systems (8514 seamless support is not available in OS/2 2.1).
  195. MVDM (Multiple Virtual DOS Machines) sessions allow for a more fully integrated system.
  196. When the DOS sessions are virtualized, there can be multiple sessions concurrently. OS/2 2.x
  197. supports up to 255 concurrent sessions, although hardware limitations generally prevent you
  198. from reaching that total. DOS sessions can also be windowed. Utilizing the processor's native
  199. virtual 8086 mode eliminated the need to switch from real to protect mode thus improving per-
  200. formance. The virtual DOS sessions can execute in the background, without having to suspend
  201. Why OS/2 Version 2.X ? 1
  202. ──── Page: 2 ────────────────────────────────
  203.  
  204.  
  205. execution of the current application. This allows DOS applications access to the system clip-
  206. board, allowing cut and paste functions between other windowed sessions.
  207. The Virtual DOS Machine (VDM) sessions support several types of memory:
  208. ■ Extended Memory (XMS) to 16 Megabytes
  209. ■ Expanded Memory (EMS) to 32 Megabytes
  210. ■ DOS Protect Mode Interface (DPMI) Memory to 512 Megabytes
  211. Generally, VDM sessions support the execution of most DOS applications. There are some
  212. DOS applications and products that cannot be supported by DOS emulation due to the nature
  213. of the emulation code and the multitasking and protection demands of OS/2 version 2.x.
  214. Windows application support is included in OS/2 2.x to allow execution of Windows applications
  215. along with OS/2 and DOS applications, providing a wide range of application support.
  216. Windows application support has been enhanced in OS/2 2.1. Enhancements were provided in
  217. OS/2 2.1 to support the Windows 3.1 environment for running Windows applications full screen
  218. and seamlessly on the OS/2 Workplace Shell. The Adobe Type Manager support has moved to
  219. version 2.5. The performance of WIN-OS/2 has also been substantially improved. A new mode
  220. called Enhanced Compatibility Mode enables a number of Windows 3.1 enhanced mode applica-
  221. tions to run. The Clipboard and DDE support have been redesigned for speed, and several
  222. enhancements were made to display drivers. The 2.x versions of OS/2 also utilize the object
  223. oriented Workplace Shell which provides a friendlier user interface (for example the drag/drop
  224. function for direct manipulation of objects).
  225. 2 OS/2 Performance Tuning  
  226. ──── Page: 3 ────────────────────────────────
  227.  
  228.  
  229.  
  230. What hardware do I need to run OS/2 ?
  231. This section covers hardware and support requirements for the OS/2 2.x operating system. To
  232. help you plan user configurations, worksheets are provided that include memory and hard disk
  233. requirements for specific components and features.
  234.  
  235. What hardware configurations run OS/2 2.0 & 2.1 ?
  236. OS/2 2.0 is designed for personal computers with the following minimum requirements:
  237. ■ Intel (or compatible) 80386SX microprocessor
  238. ■ 4MB of memory (6MB or more recommended)
  239. ■ 60MB hard disk with 15-30MB of free disk space (ver. 2.0 & 2.01)
  240.       or 20-40MB of free disk space (ver. 2.1)
  241. ■ 2-button mouse or other pointing device
  242. Beginning in OS/2 version 2.1, you can install Windows support on a partition different from the
  243. partition where OS/2 is installed. This will allow you to move some of the disk space require-
  244. ment to another partition. While you will still need the same amount of disk space in total, this
  245. feature allows flexibility when available space on the install partition is limited. Because of its
  246. 32-bit addressing power, the OS/2 2.x operating system requires a computer that has a system
  247. unit equipped with an Intel (or compatible) 80386 (or higher) microprocessor. The 80386SX
  248. microprocessor provides fair performance for those who work in lower-demand application envi-
  249. ronments. In environments that demand multiple concurrent processes, the 80486 will provide
  250. excellent performance. Also consider the 80486 series if you expect to switch frequently and
  251. rapidly among a large number of concurrent tasks.
  252.  
  253. How much system memory is needed ?
  254. Topics that follow discuss memory and disk storage information that you need to consider for
  255. OS/2 2.0 and OS/2 2.1. Memory and disk storage are closely related because of the ability of the
  256. operating system to manage the allocation of memory resources between real physical memory
  257. and hard disk space.
  258. The minimum memory requirement for OS/2 2.0 & 2.1 is 4MB. Some computers use up to
  259. 128KB for ROM-to-RAM (read-only memory to random-access memory) remapping; some use
  260. more than 128KB for other hardware purposes. Therefore less than the minimum required
  261. memory is available. On these systems, another 512KB to 1MB would satisfy the minimum
  262. requirement. You can check such systems to see if there is a way to replace the memory so that
  263. the minimum requirement is met.
  264. In general, the OS/2 2.0 & 2.1 operating system, including its shell, requires 1 to 2 megabytes
  265. more memory to give performance equivalent to OS/2 version 1.3. The memory requirement for
  266. OS/2 2.1 is similar to the memory requirement for OS/2 2.0. It is recommended that systems have
  267. a minimum of 6 megabytes of memory for good performance.
  268. What hardware do I need to run OS/2 ? 3
  269. ──── Page: 4 ────────────────────────────────
  270.  
  271.  
  272.  
  273. What performance improvements were made in ver. 2.1 ?
  274. The most significant performance improvements made between version 2.0 and 2.1 were in
  275. WIN-OS/2. Additional improvements were made in the graphics sub-system, VDM support, and
  276. printing.
  277. A significant enhancement provided in OS/2 2.1 is the support of a Windows 3.1 environment to
  278. run Windows applications seamlessly on the Workplace Shell. The performance of WIN-OS/2
  279. has been substantially improved. A new mode called Enhanced Compatibility Mode enables a
  280. number of Windows 3.1 enhanced mode applications to run. The Clipboard and DDE underwent
  281. a major redesign, including virtual rendering of clipboard data. Several enhancements were made
  282. to the WIN-OS/2 display drivers.
  283. In OS/2 2.0, support was provided in WIN-OS/2 3.0 to enable Windows 3.0 applications to run
  284. in Standard and Real modes. In OS/2 2.1, the support has been upgraded to include device
  285. drivers written specifically to run in the Windows 3.1 environment, including XGA / XGA-2 and
  286. SVGA support.
  287. In OS/2 2.1, the graphics engine was rewritten (from assembler) using the 32-bit IBM C Set/2
  288. compiler. In addition to being a fully 32-bit engine, many graphics operations were enhanced for
  289. better performance. The 32-bit engine consumes more memory than the 16-bit version, so
  290. efforts were made to optimize its memory usage for both the Workplace Shell and graphical
  291. intensive application environments. Frequently used routines in the graphics engine were tuned
  292. and linked together in such a way as to minimize the system working set. This process is
  293. referred to as page tuning.
  294. In addition to the graphics engine, the PM display drivers have changed significantly between
  295. OS/2 version 2.0 and OS/2 version 2.1. The OS/2 2.1 PM XGA driver makes use of the new
  296. hardware features of the latest XGA-2 display adapter. It provides non-interlace support, takes
  297. advantage of external polling capabilities, and can display up to 64K colors in low resolution
  298. modes (640 x 480, 640 x 400). The XGA PM display driver is 32-bit, and performance has
  299. improved. There were no SVGA display drivers supplied in OS/2 2.0. In OS/2 2.1, several
  300. SVGA chip sets are supported. The SVGA PM display drivers are all 32-bit and 256 colors.
  301. Performance comparisons between OS/2 2.1 and OS/2 2.0 with generic 16-bit drivers from
  302. vendors show that OS/2 2.1 SVGA performance is visibly faster. The OS/2 2.1 PM VGA driver
  303. is 32-bit. From the viewpoint of performance, it has some improvement over the 16-bit version.
  304. The 8514 PM display driver with OS/2 2.1 is now 32-bit. Since the graphics engine is also 32-bit,
  305. performance has improved.
  306. Dual-thread support was added to VDMs in release 2.1. OS/2 enhanced its multimedia support
  307. by providing the dual-thread feature. Real time applications, such as multimedia and communi-
  308. cations, need to handle interrupts while doing file I/O. System timer ticks are used to update the
  309. screen and produce sound. In the first release of OS/2 2.0, each VDM executes as one thread. If
  310. the thread is busy doing a file I/O operation, it does not receive an interrupt until the entire I/O
  311. operation is complete. By introducing a second thread, OS/2 2.1 allows interrupts to be serviced
  312. while waiting for the completion of the I/O operation. This improves the performance of multi-
  313. media DOS applications, which need interrupt notification even when doing file I/O. DOS com-
  314. munication programs that do file I/O may be helped by this feature.
  315. 4 OS/2 Performance Tuning  
  316. ──── Page: 5 ────────────────────────────────
  317.  
  318.  
  319. This version of OS/2 also contains some Pentium specific optimizations. The areas where this
  320. enablement was added improved the performance in interrupt management for VDMs and
  321. improved floating point performance in VDM and WIN-OS/2 sessions.
  322. DPMI is a protected mode programming interface for DOS applications, allowing those applica-
  323. tions to run on the 80x86 processors in protect mode, while utilizing the real mode services of
  324. the operating system and device drivers. In OS/2 2.1 the DPMI support has been upgraded to
  325. version 1.0.
  326. OS/2 2.1 also performs better running DOS and Windows communication applications. OS/2 2.1
  327. also supports more DOS communication applications.
  328. Performance improvements were made for printing. OS/2 now ships a 32-bit PostScript printer
  329. driver. For parallel ports LPT1 to LPT3, both parallel port device drivers, PRINT02.SYS for
  330. Micro Channel machines and PRINT01.SYS for AT-Bus (ISA) and EISA machines, send data
  331. faster in OS/2 2.1. This allows the print buffer found on most printers, to be filled quickly
  332. reducing the overall print job time. There are also printer properties that improve performance
  333. and the OS/2 spooler's print priority can be changed if needed.
  334. On laptops that support the Advanced Power Management 1.0 Specification, there is an improve-
  335. ment in battery life. Software support will automatically be installed on systems with the correct
  336. hardware support. The object icon can be found in the System Setup folder. This object is used
  337. to show the current status/state of your laptop's battery and allows you, if you wish, to turn the
  338. advanced power management functions on and off.
  339. What performance improvements were made in ver. 2.1 ? 5
  340. ──── Page: 6 ────────────────────────────────
  341.  
  342.  
  343.  
  344. What should I know to install OS/2 2.1?
  345. The purpose of this document is to help you tune your OS/2 2.1 system. This section follows the
  346. installation path to provide performance related information for the end user. You can use this
  347. section for information relating to system performance as you complete your installation. Addi-
  348. tional sections contain information for tuning installed systems that can be used after you com-
  349. plete installation or on preinstalled systems.
  350. The first screen that requires your input asks if you accept the partition selected by install for
  351. your system installation. The choices are accept the partition or select another partition.
  352. Accepting the default will install OS/2 on the C: Primary partition or the partition set installable
  353. (having a partition set installable requires you to have run FDISK earlier). If you have a new
  354. hard disk (not preinstalled), accepting the default creates one primary partition the total size of
  355. your hard drive.
  356. If you decide to select another partition, installation puts you in FDISK and you can make
  357. changes as needed. There are several topics that interact here -- use of the Boot Manager, parti-
  358. tion sizes and which file system to use. They are discussed here so that you may understand the
  359. implications of your selections.
  360.  
  361. Boot Manager
  362. You should consider the use of the Boot Manager facility that is provided with OS/2 2.0 and 2.1.
  363. This facility allows you to have multiple operating systems installed on your computer system
  364. and then select which one to make active and boot from. This is very helpful when migrating
  365. from one operating system to another, such as DOS/Windows to OS/2, or when upgrading to
  366. new versions of an operating system, such as OS/2 1.3 to OS/2 2.0 or 2.1. This allows you to test
  367. the new system, while maintaining your old system.
  368. In order to use this feature, you will require enough space on your disk for the multiple oper-
  369. ating systems, as well as 1 MB for the Boot Manager facility itself. The 1 MB for the Boot
  370. Manager must be space which is not allocated to any disk partition, and can be loaded at the
  371. beginning or the end of the physical disk drive. It is recommended that you place the Boot
  372. Manager partition at the end of the disk drive so that you will not have to seek over it all the
  373. time. The Boot Manager partition is only used when you boot up your system, or when you
  374. change the Boot Manager options, so there are no performance impacts by having it at the end
  375. of the drive.
  376. If you do not have the free space to use the Boot Manager, see the next section, "Partitioning
  377. Your Hard Disk" for further information and some helpful suggestions.
  378. To install the Boot manager, you must use the FDISK utility that is supplied with OS/2 2.0 or
  379. 2.1. This is located on Diskette 1 of the installation diskettes. It can be run either from an OS/2
  380. 1.3 system or an OS/2 2.X system. It will not run from a DOS session. When you start FDISK,
  381. it will show you the partitions that are defined on the first disk. You can use the TAB key to go
  382. to the top of the screen to select which disk you want to work with. Use the Tab key again to go
  383. to the Partition Information portion of the screen. When you hit the Enter key for the partition
  384. 6 OS/2 Performance Tuning  
  385. ──── Page: 7 ────────────────────────────────
  386.  
  387.  
  388. that is highlighted, you are presented with a menu list. Consult the Installation Guide for infor-
  389. mation on using FDISK, or refer to FDISK and SETBOOT options in the on line help facility.
  390.  
  391. Partitioning Your Hard Disk
  392. Partitioning a system is truly individualistic. Just like background screen colors and bit-maps,
  393. there are endless variations available when partitioning your hard drive. The size of the hard
  394. drive and planned use of the system affects your decision. Lets use Jane and her systems at
  395. home and at work as an example. Her system at work is connected to a LAN and a host
  396. system. Her system at home is primarily stand-alone. Her system at work (400 MB hard disk) is
  397. partitioned as:
  398. The smaller partitions are formatted FAT, while the large partition (containing her OS/2 applica-
  399. tions and swap file) is formatted HPFS for better performance. The C: partition has OS/2 2.0
  400. installed and the D: partition has OS/2 2.1 installed. Having C: and D: contain two versions of
  401. OS/2 allows her to boot between them as needed for development and testing.
  402. Another example is her system at home (400 MB hard drive). It is partitioned as:
  403. Again, the smaller partitions are formatted FAT, while the large partition is formatted HPFS for
  404. better performance. The C: partition has DOS 4.0 installed with Windows 3.1. The D: partition
  405. has OS/2 2.0 installed, and F: has OS/2 2.1 installed. She would have installed 2.1 in D: except
  406. that she found that many Windows applications like to install themselves on the same drive as
  407. Windows code, and she was running tight on disk space on D:. F: is formatted FAT because it
  408. contains Windows applications that are sometimes run when DOS is booted. The E: partition
  409. contains her OS/2 applications, data and the OS/2 swap file. The G: partition holds her chil-
  410. dren's games and the FAT format allows them to be run from OS/2 or DOS.
  411. Originally, this system did not have boot manager installed. When she decided to install it, she
  412. needed a 1 MB partition at one end of her hard drive, so she backed up the G: partition, ran
  413. FDISK and removed that logical drive and made G: and H:. This did not interfere with the
  414. other partitions, so she did not have to backup the entire system, just the one partition at the
  415. end of the hard drive.
  416.  
  417. Figure 1. Partitioning Example #1
  418.  
  419. C: (Primary Partition)  50 MB  formatted FAT
  420. D: (Logical Partition)  80 MB  formatted FAT
  421. E: (Logical Partition) 269 MB  formatted HPFS
  422. (Boot Manager)  1 MB 
  423.  
  424.  
  425. Figure 2. Partitioning Example #2
  426.  
  427. C: (Primary Partition)  30 MB  formatted FAT
  428. D: (Logical Partition)  50 MB  formatted FAT
  429. E: (Logical Partition) 140 MB  formatted HPFS
  430. F: (Logical Partition) 100 MB  formatted FAT
  431. G: (Logical Partition)  79 MB  formatted FAT
  432. (Boot Manager)  1 MB 
  433.  
  434. What should I know to install OS/2 2.1? 7
  435. ──── Page: 8 ────────────────────────────────
  436.  
  437.  
  438. FDISK allows 4 entries. An entry is defined as a primary partition (boot manager is one) or a
  439. run of logical drives. In both examples there are 3 FDISK entries. You can have multiple
  440. primary partitions, but you can only access the selected primary partition when booted. When
  441. booting a system that has multiple primary partitions, think of it as choosing which one you
  442. would like to access as C:  The other primary partitions cannot be accessed.
  443. The decision on partitioning your system must be based on your anticipated use. The OS/2 boot
  444. manager allows for many possibilities. The partition size and expected use will also influence
  445. your file system selection.
  446.  
  447. File System Selection
  448. To know which file system to choose, it is first necessary to understand the two file systems.
  449. While both file systems work on the same hard drives and partitions, there are performance
  450. reasons for choosing one over the other.
  451. The file systems supported under OS/2 are FAT and HPFS. They are functionally equivalent to
  452. the earlier releases. The file systems in OS/2 versions 2.0 and 2.1 support the same file sizes and
  453. partition sizes.
  454. Both HPFS and the FAT file systems have disk caching, lazy writing and read-ahead. See ╚File
  455. Systems╝ on page 22 for more information on file systems, caches and lazy writing.
  456. File system caches and lazy writing parameters can be changed during or after initial installation.
  457. The default values set by installation are good for average systems. See ╚File Systems╝ on
  458. page 22 and ╚The CONFIG.SYS╝ on page 27 for additional tuning information.
  459. Generally, if a partition is less than 100 MB, the file system selected should be FAT. FAT pro-
  460. vides excellent performance and reserves less disk space for managing the partition than HPFS.
  461. The High Performance File System, which was designed for the larger disk drives, generally per-
  462. forms better than FAT in partitions greater than 100 MB, especially where there are many small
  463. files, a very large file (for example a database) or the access to the disk will generally be random.
  464. The FAT file system manages the partition using clusters. The cluster size varies with the parti-
  465. tion size because only 64 KB is used to manage the entire partition. Larger partitions have
  466. larger clusters than smaller partitions. Since a file or directory always takes n number of clusters,
  467. this results in a less efficient use of DASD in large partitions (a 1 byte file will take a cluster,
  468. even if the cluster is 8 KB).
  469. HPFS manages all partitions at a sector granular level, regardless of the size of the partition.
  470. This allows for better use of DASD. (a 1 byte file will take 1 sector (generally 512 bytes) for
  471. data and 1 sector to manage the file (Fnode) ).
  472.  
  473. Figure 3. File System Partition and File Size Support
  474.  
  475.  
  476. Max File Size
  477.  
  478. Max Partition Size
  479.  
  480. FAT
  481.  
  482. 2 GB
  483.  
  484. 2 GB
  485.  
  486. HPFS
  487.  
  488. 2 GB
  489.  
  490. 64 GB
  491.  
  492. 8 OS/2 Performance Tuning  
  493. ──── Page: 9 ────────────────────────────────
  494.  
  495.  
  496. The way that the file systems manage disk space may influence your partition size or your file
  497. system selection. Large disks formatted FAT can have cluster sizes up to 64 sectors (generally
  498. 64 KB) resulting in poor use of your disk space. Cluster sizes change as follows:
  499. File system selection, cache sizes and options influence the performance of application load times
  500. and run time within I/O intensive applications. See ╚File Systems╝ on page 22 for specific file
  501. system tuning that can be done after installation.
  502. Default File System Cache Sizes
  503. Although the installation defaults might not be specifically customized to a particular system,
  504. these values are easiest tuned after installation. The default values are shown in Figure 12 on
  505. page 27. If only the FAT file system is installed, the default sizes are for the DISKCACHE=
  506. statement in the CONFIG.SYS file. If the system has partitions that are all HPFS, the default
  507. size is for the IFS=HPFS statement in the CONFIG.SYS file. (On HPFS only systems, the
  508. FAT diskcache is set at 64 KB) If the system uses both file systems types, then OS/2 2.0 installa-
  509. tion changes the cache size for both file systems. The file system with the largest total amount
  510. of DASD (sum of the partitions) gets the first value, the other file system gets the second value.
  511. See ╚File Systems╝ on page 22 for additional information.
  512.  
  513. Formatting the Partition
  514. The next decision to make at installation is whether or not to format. It is always advisable to
  515. format the partition at installation time. This allows clean up of any unnecessary files. It is
  516. important to remember that if you have applications or data on that partition that it must be
  517. backed up prior to formatting to be saved. If you select to not format the partition, installation
  518. will continue and will clean up system files (i.e. remove WIN-OS/2 support from 2.0 at install of
  519. 2.1, replacing it with the enhanced WIN-OS/2 support)
  520.  
  521. Install Features Selection
  522. The next decision to make is which installation path to take. The Install Preselected Features
  523. selection installs most, but not all, OS/2 features. It takes about 27 MB of disk space (plus the
  524. swap file). Any features not installed can be installed at a later time using the Selective Install
  525. feature. This is the Selective Install icon located in the OS/2 System folder. Install All Features
  526. will install all features available in OS/2. There are few selections to be made during this install,
  527.  
  528. Figure 4. FAT Cluster Size
  529.  
  530. Partition Size
  531.  
  532. Cluster Size
  533.  
  534. diskettes  1 sector
  535. < 16 MB  8 sectors
  536. 16 to 128 MB  4 sectors
  537. 128 to 256 MB  8 sectors
  538. 256 to 512 MB  16 sectors
  539. 512 to 1024 MB  32 sectors
  540. 1024 to 2048 MB  64 sectors
  541.  
  542. What should I know to install OS/2 2.1? 9
  543. ──── Page: 10 ────────────────────────────────
  544.  
  545.  
  546. and it takes about 35 MB of disk space (plus the swap file). Select Features and Install requires
  547. selecting items from several menus. This option allows you to do a custom install of your
  548. system. The range of disk space required is 17 MB to 35 MB (plus swap file). The lower value
  549. provides for only the minimum files required to install and run OS/2. Figure 5 lists the features
  550. that are selectable. The minimum value refers to having selected NO features.
  551. Selection of features depends on personal preference. There are no performance impacts from
  552. selecting required function. Do not install features that your hardware cannot support (i.e.
  553. CD-ROM, PCMCIA, APM). Disk space requirements are listed to help you understand disk
  554. space requirements only.
  555. Preselected Install
  556. Preselected installation provides a general installation of OS/2 features for users. This default is
  557. good for new users that do not have enough space for a full install. The features provided when
  558. the pre-selected installation is taken include all required files for OS/2 and the following features:
  559.  
  560. Figure 5. Features Installed with PreSelected Install
  561.  
  562. Documentation (.8MB)
  563.  
  564. OS/2 Tutorial (168KB)
  565.  
  566. Fonts (1.9MB)
  567.  
  568. Helvetica (233KB)
  569. Courier (outline) (502K)
  570.  
  571. Optional System Utilities (1.6MB)
  572.  
  573. Backup Hard Disk (29KB)
  574. Change File Attributes (37KB)
  575. Manage Partitions (228KB)
  576. Restore Backed Up Files (30KB)
  577. Sort Filter (32KB)
  578. Installation Utilities (501KB)
  579.  
  580. Tools and Games (6.0MB)
  581.  
  582. Search and Scan Tool (71KB)
  583. Personal Productivity (1407KB)
  584.  
  585. OS/2 DOS Support (1.3MB)
  586.  
  587. DOS Protect Mode Interface (22KB)
  588. Virtual Expanded Memory Management (19KB)
  589. Virtual Extended Memory Support (8KB)
  590.  
  591. Windows Support (9.0MB)
  592.  
  593. Readme Files (143KB)
  594. Accessories (1154KB)
  595. Screen Savers (77KB)
  596. Sound (253KB)
  597.  
  598. High Performance File System (0.4MB)
  599.  
  600.  
  601. 10 OS/2 Performance Tuning  
  602. ──── Page: 11 ────────────────────────────────
  603.  
  604.  
  605. Full Install
  606. Full installation option installs all features of OS/2. This selection requires about 40 MB of disk
  607. space. Additional space is required for the swap file in constrained systems. If your partition is
  608. small ( < 50 MB) it is advisable to move the swap file to another partition.
  609. The features provided when the full installation is taken include all required files for OS/2 and
  610. ALL the features listed in selectable install.
  611. Selectable Install
  612. Selectable install allows for full end-user control of features to be installed on a system. There
  613. are several options available on menus, and sub-menus allow for a more specific selection. For
  614. example, you can choose to select (or not select) all the productivity aids, or you can use the
  615. sub-menu to select some of the productivity aids.
  616. The selectable install is the best selection for users who understand the features available, and for
  617. users that are concerned with disk requirements. The 2.1 release is larger (especially the
  618. enhanced WIN-OS/2 support) and selectable install will provide you with a full range of feature
  619. selection. Remember that the more features selected the more disk space required. Also, the
  620. more entries in a folder, the slower the performance when opening that folder. For example, if
  621. you select all the productivity aids and games, then opening the productivity folder will be slower
  622. than if you had only the 2 productivity aids you actually used. All features can be added after
  623. installation by using selective install in the system setup folder. (For deleting features, see
  624. Appendix D, ╚Removing Features╝ on page 58)
  625. When selecting features, include REXX support if you will be installing OS/2 Lan Services or
  626. OS/2 Communication Services. Rexx is required to successfully run those programs.
  627.  
  628. Figure 6 (Page 1 of 2). Selectable Features
  629.  
  630. Documentation (.8MB)
  631.  
  632. OS/2 Tutorial (168KB)
  633. OS/2 Command Reference (391KB)
  634. REXX Information (195KB)
  635.  
  636. Fonts (1.9MB)
  637.  
  638. Courier (92KB)
  639. Helvetica (233KB)
  640. System Mono-spaced (35KB)
  641. Times Roman (215KB)
  642. Courier (outline) (502KB)
  643. Helvetica (outline) (395KB)
  644. Times New Roman (outline) (430KB)
  645.  
  646.  
  647. What should I know to install OS/2 2.1? 11
  648. ──── Page: 12 ────────────────────────────────
  649.  
  650.  
  651.  
  652. Figure 6 (Page 2 of 2). Selectable Features
  653.  
  654. Optional System Utilities (1.6MB)
  655.  
  656. Backup Hard Disk (29KB)
  657. Change File Attributes (37KB)
  658. Display Directory Tree (34KB)
  659. Manage Partitions (228KB)
  660. Label Diskettes (34KB)
  661. Link Object Modules (472KB)
  662. Picture Viewer (33KB)
  663. PM REXX (85KB)
  664. Recover Files (47KB)
  665. Restore Backed Up Files (30KB)
  666. Sort Filter (32KB)
  667. Installation Utilities (501KB)
  668.  
  669. Tools and Games (6.0MB)
  670.  
  671. Enhanced Editor (926KB)
  672. Search and Scan Tool (71KB)
  673. Terminal Emulator (1592KB)
  674. PM Chart (1201KB)
  675. Personal Productivity (1407KB)
  676. Solitaire - Klondike (388KB)
  677. Reversi (34KB)
  678. Scramble (62KB)
  679. Cat and Mouse (53KB)
  680. Pulse (40KB)
  681. Jigsaw (71KB)
  682. Chess (266KB)
  683.  
  684. OS/2 DOS Support (1.3MB)
  685.  
  686. DOS Protect Mode Interface (22KB)
  687. Virtual Expanded Memory Management (19KB)
  688. Virtual Extended Memory Support (8KB)
  689.  
  690. Windows Support (9.0MB)
  691.  
  692. Readme Files (143KB)
  693. Accessories (1154KB)
  694. Screen Savers (77KB)
  695. Sound (256KB)
  696.  
  697. High Performance File System (.4MB)
  698.  
  699.  
  700. Advanced Power Management (.1MB)
  701.  
  702.  
  703. PCMCIA Support (.1MB)
  704.  
  705.  
  706. REXX (.4MB)
  707.  
  708.  
  709. Serviceability and Diagnostic Aids (.7MB)
  710.  
  711.  
  712. Optional Bit-maps (.1MB)
  713.  
  714.  
  715. 12 OS/2 Performance Tuning  
  716. ──── Page: 13 ────────────────────────────────
  717.  
  718.  
  719. System Configuration Menu
  720. After you select which installation path, and before you select features in a preselected install, the
  721. System Configuration Menu is displayed. Usually, the correct hardware support is shown here.
  722. There are some exceptions on non-IBM hardware, so check this screen carefully to verify that
  723. install recognized all your hardware. At this time, any of these items can be changed. The
  724. following figure shows which items can be changed from the System Configuration Menu.
  725. Display Selection
  726. The System Configuration Menu allows you to select the display driver based on your hardware.
  727. You can choose installing VGA on SVGA, 8514 or XGA systems. High resolution display
  728. drivers must handle a greater number of points on the screen (called pixels) and the performance
  729. will be somewhat slower. However, the advanced hardware has improved performance so the
  730. overall result is
  731. ■ The best performance with excellent resolution will be with XGA display drivers
  732. ■ Low resolution and good performance with the VGA display driver,
  733. ■ Excellent resolution and moderate performance with SVGA display drivers.
  734. The PM XGA display driver will only work on XGA hardware (display adapter and display) and
  735. the PM SVGA display driver will only work on SVGA hardware (display adapter and display).
  736. Similarly, the PM 8514 display driver will only work with the 8514A display adapter card and
  737. appropriate display.
  738. The type of hardware display of the system will be shown under "Primary Display" on "System
  739. Configuration" panel. If it is not correct,or you wish to change it, you may click on "Primary
  740. Display", "O.K.", and choose the correct display accordingly. The supported resolutions for each
  741. display are illustrated in Figure 8.
  742.  
  743. Figure 7. Installation - System Configuration Menu
  744.  
  745. System
  746.  
  747. Mouse
  748. Serial Device Support
  749. Primary Display
  750. Secondary Display
  751.  
  752. Locale
  753.  
  754. Country
  755. Keyboard
  756.  
  757. Peripherals
  758.  
  759. CD_ROM Device Support
  760. SCSI Adapter Support
  761. Printer
  762.  
  763.  
  764. What should I know to install OS/2 2.1? 13
  765. ──── Page: 14 ────────────────────────────────
  766.  
  767.  
  768. In addition to the displays described in the following subsections, OS/2 2.1 also supports EGA
  769. and CGA. Because of the highly graphical user interface provided by the Workplace Shell, use of
  770. OS/2 2.1 in these modes will be difficult and is not recommended.
  771. ■ VGA
  772. The only resolution for VGA is 640 x 480 x 16 colors. All XGA and SVGA display adapters
  773. are also supported in VGA mode with the VGA driver shipped with OS/2 2.1.
  774. ■ XGA
  775. The default resolution during installation depends on the amount of available VRAM on the
  776. system. This is the same for XGA and XGA-2 display adapters. For systems with 0.5 MB
  777. VRAM, the default resolution is 1024 x 768 x 16 colors while for systems with 1.0 MB
  778. VRAM, the default resolution is 1024 x 768 x 256 colors. It requires 1.0 MB VRAM to run
  779. in 1024 x 768 x 256, 640 x 480 x 64K and 640 x 400 x 64K color modes. You can change the
  780. resolution and colors to be displayed on the screen after initial installation. See ╚Changing
  781. Display Drivers╝ on page 18 for additional information.
  782. The XGA display drivers support both the XGA and the XGA-2 adapter cards. Addi-
  783. tionally, the new XGA-2 display subsystem has a built-in utility called Display Mode Query
  784. Set (DMQS), which can take care of setting up optimum parameters for given display
  785. devices. The correct selection of display type is automatically done by OS/2 2.1 installation
  786. program. It can be changed after installation. See ╚Changing Display Drivers╝ on page 18
  787. for information on changing and tuning display drivers.
  788. ■ SVGA
  789. The implementation of SVGA varies widely and requires different device drivers for different
  790. resolutions, as well as different adapters and systems. OS/2 2.1 supports the following SVGA
  791. chip sets:
  792. - ATI Technologies Inc., ATI28800
  793. - Headland Technology Inc.,Chip Type: HT209.
  794. - Trident Microsystems, Chip Type: TVGA 8900B and TVGA 8900C.
  795. - Tseng Laboratories, Chip Type: ET4000.
  796. - Western Digital Corporation, Chip Type: WD90C11, WD90C30, and WD90C31 (in C30
  797. compatibility mode).
  798. - Cirrus Logic Inc., Chip Type: CL-GD5422 and GD5424
  799.  
  800. Figure 8. OS/2 2.1 Display Driver Resolutions
  801.  
  802. Resolutions
  803.  
  804. 640x400
  805.  
  806. 640x480
  807.  
  808. 800x600
  809.  
  810. 1024x768
  811.  
  812. Colors
  813.  
  814. 256
  815.  
  816. 65,536
  817.  
  818. 16
  819.  
  820. 256
  821.  
  822. 65,536
  823.  
  824. 256
  825.  
  826. 16
  827.  
  828. 256
  829.  
  830. VGA
  831.  
  832.  
  833.  
  834. X
  835.  
  836.  
  837. XGA
  838.  
  839. X
  840.  
  841. X
  842.  
  843.  
  844. X
  845.  
  846. X
  847.  
  848.  
  849. X
  850.  
  851. X
  852.  
  853. SVGA
  854.  
  855.  
  856.  
  857.  
  858. X
  859.  
  860.  
  861. X
  862.  
  863.  
  864. X
  865.  
  866. IBM 256c
  867.  
  868.  
  869.  
  870.  
  871. X
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878. 8514
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887. X
  888.  
  889. 14 OS/2 Performance Tuning  
  890. ──── Page: 15 ────────────────────────────────
  891.  
  892.  
  893. - IBM Corp., Chip Type: IBM VGA 256c and SVGA-NI.
  894. The default driver during installation is VGA driver (640 x 480 x 16 colors), if your SVGA
  895. hardware is not detected by install. The resolution may be changed by installing the drivers
  896. for the desired resolution. See ╚Changing Display Drivers╝ on page 18 for additional infor-
  897. mation.
  898. At least 0.5 MB VRAM is needed to install the SVGA drivers. At 0.5 MB VRAM, only the
  899. OS/2 SVGA resolution of 640 x 480 x 256 colors is supported. Both the 1024 x 768 x 256
  900. colors and 800 X 600 X 256 colors resolutions require 1 MB VRAM.
  901. ■ 8514
  902. The only resolution available for 8514/A display is 1024 x 768 x 256 colors. The driver is the
  903. new 32-bit driver.
  904. ■ Seamless Support (WIN-OS/2)
  905. WIN-OS/2 display drivers are automatically copied at installation time for the display type
  906. selected. WIN-OS/2 support for executing Windows applications is provided in full screen or
  907. seamless (windowed) sessions. Seamless support is provided in the display device driver, and
  908. that support has changed between releases. In version 2.0, only the VGA display driver pro-
  909. vided seamless support. All other display drivers supported WIN-OS/2 in full screen only.
  910. In version 2.1, VGA, XGA and SVGA display drivers shipped with OS/2 support seamless
  911. execution for WIN-OS/2. Additional display drivers having support for seamless execution
  912. of WIN-OS/2 may be available after OS/2 2.1 ships.
  913. The OS/2 Setup and Installation Menu
  914. The OS/2 Setup and Installation menu, seen in selective install only, allows you to select which
  915. features to install. Sub-menus provide flexibility in choosing the features. These selections gen-
  916. erally provide function only, and the disk space window lets you know the disk space available
  917. and the disk space needed for the items you have selected. Font support selection can affect
  918. performance and memory. More information is provided here to help in the selection process.
  919. Font Support
  920. During the selective install process, you can select which of the fonts shipped with OS/2 should
  921. be installed in your system. See Figure 9 for a list of the fonts supplied by OS/2.
  922. You should only install those fonts that you will actually use on your system. This will not only
  923. save you disk space, but will also improve your performance when loading applications that use
  924. fonts, and reduce the amount of system resources being used. Each font that is installed in the
  925.  
  926. Figure 9. OS/2 Supplied Fonts
  927.  
  928. Courier
  929. Helvetica
  930. System-Mono Spaced
  931. Times-Roman
  932. Courier Outline
  933. Helvetica Outline
  934. Times New Roman Outline
  935.  
  936. What should I know to install OS/2 2.1? 15
  937. ──── Page: 16 ────────────────────────────────
  938.  
  939.  
  940. system will use a minimum of 2 KB of memory even if it is not being accessed. This number will
  941. increase significantly when you actually start to use the font in an application.
  942. Outline fonts tend to be more efficient from a performance point of view since only the charac-
  943. ters that are actually used are cached into memory. With non-outline (bit-mapped) fonts, the
  944. entire bit-map character rendering buffer is loaded into memory. This can increase the working
  945. set and cause the system to enter into a paging situation. Also, bit-mapped fonts are defined for
  946. a specific screen resolution and device. Outline fonts are scalable and loaded for the specific
  947. device installed on your system. Outline fonts can also be downloaded to certain printers and
  948. increase performance.
  949. Additional fonts can be added after the installation process. Selecting only the outline fonts
  950. reduces disk space requirements and keeps system performance optimal.
  951. Software Configuration Menu
  952. The Software Configuration pull down menu allows you to change OS/2 Parameters and DOS
  953. Parameters. Tuning information on these items is provided in the system tuning section (These
  954. changes can be made during or after installation). Page numbers where the information can be
  955. found are provided for ease of use during install. Figure 10 shows the items that can be changed
  956. from the Software Configuration Menu.
  957. Swap File
  958. The swap file (SWAPPER.DAT) default placement is on the installed partition in
  959. \OS2\SYSTEM. If you are running tight on disk space, move this file to another partition. The
  960. swap file is moved to another partition at installation time from the software configuration menu
  961. (see above). The swap file can be moved after installation by changing the SWAPPATH= line
  962. in the CONFIG.SYS. These changes take effect at the next boot. More information on the
  963. swap file is included in the file system section, including the parameters and swap file placement.
  964.  
  965. Figure 10. Software Configuration Menu
  966.  
  967. Software Configuration
  968. OS/2 Parameters
  969.  
  970. Printer Monitor Buffer Size
  971. Buffers
  972. Diskcache
  973. Maxwait
  974. Swap Minfree
  975. Threads
  976. Swappath
  977. Memman Protect
  978. Memman Swap
  979. Priority
  980.  
  981. DOS Parameters
  982.  
  983. Break
  984. Open FCBS
  985. Protected FCBS
  986. RMSize
  987.  
  988.  
  989. 16 OS/2 Performance Tuning  
  990. ──── Page: 17 ────────────────────────────────
  991.  
  992.  
  993.  
  994. Migrating Applications
  995. The Migrate Applications utility can be run during the install process or from the System Setup
  996. Folder. It uses a migration database to define what specific changes need to be made to DOS
  997. and WIN-OS/2 session settings, as well as how OS/2, DOS and Windows applications should be
  998. setup. This database is called DATABASE.DAT and is located in the \OS2\INSTALL subdirec-
  999. tory of your OS/2 system. A text version of this file, called DATABASE.TXT, also exists in the
  1000. \OS2\INSTALL subdirectory to allow you to change the settings of a particular application, or
  1001. to add new applications to the database.
  1002. Migrate should be used, either at install time or after an application is installed, to setup the
  1003. application and place its icon in the appropriate folder. The customized settings for applications
  1004. listed in the migration database are good general defaults. After installation, see the sections on
  1005. tuning applications for additional changes to improve performance.
  1006.  
  1007. Installation and WIN-OS/2 Support
  1008. When installing OS/2 2.1 over a prior version of OS/2 2.x, the WIN-OS/2 support previously
  1009. provided will be deleted. This is true even if you installed using the WIN-OS/2 beta and placed
  1010. WIN-OS/2 on another partition. You may defer the installation of WIN-OS/2 3.1 by not
  1011. selecting WIN-OS/2 3.1 installation during the installation phase. However, install will remove
  1012. WIN-OS/2 3.0 regardless of whether WIN-OS/2 3.1 is installed or not.
  1013. If you decide to install WIN-OS/2 3.1, you will have an option to either install a new Windows
  1014. desktop or preserve the current desktop. Select this option if you would like to keep the custom-
  1015. ized Windows desktop you already have installed. You will also have the option to install to a
  1016. partition other than the one where you are installing OS/2. This provides flexibility on systems
  1017. where the install partition is too small for all the features selected.
  1018. What should I know to install OS/2 2.1? 17
  1019. ──── Page: 18 ────────────────────────────────
  1020.  
  1021.  
  1022.  
  1023. What Else Can be Changed to Improve Performance?
  1024. After installation, there are additional changes that can be made to improve the performance of
  1025. OS/2. Some of these items are general in nature and apply to the overall system performance.
  1026. Some changes are specific for certain systems or certain applications. These changes are
  1027. included in this section.
  1028.  
  1029. General System Changes
  1030. There are some changes that affect the performance of the entire system. They are included here
  1031. with information on their system impact so that you may tune your system as needed.
  1032. Animation
  1033. On memory constrained, low end systems, the performance when opening folders and starting
  1034. sessions can be improved by disabling animation. Animation is the process of drawing boxes on
  1035. the screen that appear to grow in size culminating in an open folder or session. This gives a nice
  1036. appearance when systems are performing well. If you are running on a 80386 SX system and are
  1037. overcommitted in memory, performance is improved if animation is disabled.
  1038. To disable desktop animation, open the System Setup icon in the OS/2 System folder. Select the
  1039. System icon, and go to the page with the Window bookmark. This screen allows you to select
  1040. Disable Animation.
  1041. Changing Display Drivers
  1042. You may decide to change display drivers on your system. The different display drivers affect
  1043. the performance of your system. Resolutions on the XGA and SVGA systems also affect per-
  1044. formance. The section ╚Display Selection╝ on page 13 describes the various display drivers that
  1045. are available with their resolutions and number of colors supported. The following information
  1046. details how to change the resolution.
  1047. 1. Select "OS/2 System".
  1048. 2. Select "System Setup".
  1049. 3. Select "System".
  1050. 4. Choose the new display type
  1051. 5. Choose the desired resolution
  1052. 6. Follow remaining selections
  1053. 7. Shutdown and reboot the system.
  1054. Note:  If you are changing from one type of SVGA hardware to another type, it is best if you
  1055. change the display driver to VGA before you change hardware, then change back again to
  1056. the correct display driver type. This will keep you from having a display driver / hard-
  1057. ware mismatch that could necessitate reinstalling OS/2.
  1058. The following information details how to change the display driver.
  1059. 1. Select "OS/2 System".
  1060. 2. Select "System Setup".
  1061. 3. Select "Selective Install".
  1062. 18 OS/2 Performance Tuning  
  1063. ──── Page: 19 ────────────────────────────────
  1064.  
  1065.  
  1066. 4. Click on Primary Display
  1067. 5. Click OK
  1068. 6. Choose the desired display type
  1069. 7. Follow remaining selections
  1070. 8. Shutdown and reboot the system.
  1071. Minimize Applications and Folders
  1072. When working with OS/2, you will have better system responsiveness if you minimize applica-
  1073. tions between uses. Performance when accessing a minimized application is faster than starting
  1074. the same application. This is also true when working with folders. When you have applications
  1075. or folders that you use often, leaving them open at shutdown (or placing them in the startup
  1076. folder) will cause them to be loaded at system boot time, and accessing them will be significantly
  1077. faster.
  1078. Starting Applications
  1079. Performance when starting applications may not be as quick as you would like. This is espe-
  1080. cially true if your system is memory constrained or has slow DASD. Some steps can be taken to
  1081. reduce the application load time.
  1082. Start applications from their own subdirectory, or call the application with a fully qualified
  1083. path. This will reduce the search time for OS/2 to locate the file(s). Using the icon to start the
  1084. application is optimal. The icon will have (if migrated or correctly installed) the exact path for
  1085. executable and data files. Be certain that the PATH, LIBPATH and DPATH statements in the
  1086. CONFIG.SYS are arranged with the most frequently accessed subdirectories listed first. Also,
  1087. start the application earlier by leaving it open at shutdown, or by using the startup folder.
  1088. Use Startup Folder
  1089. Applications and folders can be opened several ways. If they were left open at shutdown, they
  1090. will reopen at boot time after the Workplace Shell is started. Applications placed in a
  1091. STARTUP.CMD file will also be processed at boot time, after the Workplace Shell is started.
  1092. Applications and folders placed in the Startup Folder will be opened with the processing overlap-
  1093. ping the startup of the Workplace Shell. This use of the Startup Folder is preferred because it
  1094. takes advantage of OS/2 multitasking.
  1095. Multitasking Considerations
  1096. OS/2 is a true multitasking operating system. It manages multiple processes concurrently by
  1097. sharing the system CPU (called timeslicing). If your system has enough processing power, you
  1098. will not see any performance degredation when executing multiple applications. However, if
  1099. your system is memory overcommitted or if you are constrained by the processer you may expe-
  1100. rience performance problems. There are several steps you can take to improve performance.
  1101. First you should verify that you are only running programs that are necessary. If you have any
  1102. processes that are not needed (for example Pulse, Cat and Mouse, a clock, etc.) they should be
  1103. closed. Those spplications, when running, take cycles from the processor. This would affect the
  1104. performance of other applications that are executing.
  1105. What Else Can be Changed to Improve Performance? 19
  1106. ──── Page: 20 ────────────────────────────────
  1107.  
  1108.  
  1109. If you have a problem with foreground tasks, they may be affected by background applications.
  1110. Verify that the settings are correct for the application, especially DOS applications that may poll,
  1111. so that useful tasks are always processing. On memory constrained and 80386SX systems, you
  1112. should limit background processing to improve foreground performance. This would not mean
  1113. that you should close background applications, but you will have better response time in your
  1114. active application if the other applications are not concurrently processing.
  1115. This also applies if you are running memory and file I/O intensive applications concurrently (for
  1116. example printing from an application, reflowing a large document, processing a large data base,
  1117. etc.). While OS/2 allows you to run many applications at once, this can cause a problem is some
  1118. systems when the processer or memory become overcommitted. Also see ╚Does the Hardware
  1119. Impact Performance on OS/2 ?╝ on page 50 for information on hardware upgrades.
  1120.  
  1121. Swap File Tuning
  1122. Current hardware allows operating systems to assign virtual address space to applications. This
  1123. address space can be backed by either real memory or by disk space. When more memory is
  1124. needed to execute programs than is currently available in the system, OS/2 moves some of the
  1125. information stored in memory off to the hard drive. This is called swapping or paging. In OS/2,
  1126. the file where the data is written is the SWAPPER.DAT file.
  1127. The swap file parameters have changed from the prior releases. This was due to functional
  1128. changes but also provides for easier tuning for increased performance. The swap file is used for
  1129. paging in overcommitted systems and to store some data not being accessed frequently. It is
  1130. allocated at boot time, reducing fragmentation.
  1131. There are two parameters -- the first value is the MinFree Value, the second is the Initial Swap
  1132. File Size. Both are expressed in KB, and the system rounds them to megabytes at boot time.
  1133. The MinFree Value determines at what time you will receive a warning message that disk space
  1134. has been reduced too low. When the swap file grows, the system checks for the remaining disk
  1135. on the partition where the swap file is located. If the remaining amount of free space, after the
  1136. swap file extension, is less than the amount (in megabytes) of the minfree value, a message is
  1137. displayed. This should be set to provide you time to take action so that additional swap file
  1138. extensions are not halted due to lack of disk space.
  1139. The options available when the warning occurs are:
  1140. ■ End Program/Command/Operation
  1141. ■ Ignore the Error and Continue
  1142. ■ Display Help
  1143. If you choose to ignore the warning, and the system tries to extend the swap file without having
  1144. disk space to handle the request, the system will halt -- no additional warnings, no chance to
  1145. save data.
  1146. If you let the system end the program that requested the memory, it will probably end the appli-
  1147. cation that is just loading OR the workplace shell. (The workplace shell places many requests for
  1148. memory on the system. It will restart after the system ends it)
  1149. 20 OS/2 Performance Tuning  
  1150. ──── Page: 21 ────────────────────────────────
  1151.  
  1152.  
  1153. The best solution is for you to take the time to exit applications that you are no longer being
  1154. used, since you are most knowledgeable on what is or will be needed. In any case DO NOT
  1155. IGNORE THE MESSAGE.
  1156. The best minfree value for your system is generally 4096 for systems running average applica-
  1157. tions. If a system will be dealing with large databases or large spread sheets or text files,
  1158. increase the value to 6144 or larger. This will give you an earlier warning for a shortage of
  1159. DASD space for the SWAPPER.DAT file.
  1160. The initial swap file size is preallocated to a minimum size during system boot-up, depending on
  1161. the amount of physical memory installed in the system. This helps prevent the excessive over-
  1162. head of growing the swap file incrementally during paging operations. The user should change
  1163. the preallocated size of the swap file using the SWAPPATH directive in the CONFIG.SYS file.
  1164. While the system is running, more swap file space is needed than what has already been preallo-
  1165. cated, the kernel will to grow the swap file in 1 MB increments. The swap file will be grown only
  1166. during the processing of page faults, when it is determined that more swap space is needed.
  1167. When one or more pages need to be swapped out from memory, the kernel will determine if
  1168. these pages already have swap space allocated in the swap file. If so, the swap manager will
  1169. simply write them into the allocated swap space. Otherwise, new swap space will be allocated in
  1170. the swap file. If there is no space left, the swap file will be grown. The swap manager then
  1171. writes the pages to their new swap space. Swap space in the swap file is normally not freed up
  1172. until the corresponding memory is deallocated. When the swap file grows beyond the initial size,
  1173. then the system must manage the swap file to determine when compaction can take place. This
  1174. additional overhead will cause a performance penalty. To keep your system performance
  1175. optimal, make sure the initial swap file size is correct.
  1176. To determine the correct size for your swap file, use your system as you usually would, occa-
  1177. sionally checking the size of the SWAPPER.DAT file. The size specified in the CONFIG.SYS
  1178. should be at least this size, 1 or 2 MB larger, DASD permitting.
  1179. The swap file contents include both code and data. The information stored there is either
  1180. backing in overcommitted systems (you are running programs whose working set is larger than
  1181. real memory on your system) or 16-bit OS/2 application code and resources. It is probably a
  1182. combination of both. The reason the 16-bit OS/2 application code and resources are backed in
  1183. the swap file is to improve performance by reducing working set. Segmented 16-bit applications
  1184. require the entire segment to be brought into system memory, even if you only need a piece
  1185. (page) of that segment. This would mean that application code segments would be completely
  1186. loaded whenever references were made to discarded pages. (OS/2 will discard pages not refer-
  1187. enced by aging, least referenced page discarded first) When OS/2 initially loads a 16-bit OS/2
  1188. application, it packs the segments into pages and copies them to the swap file for faster recovery
  1189. when needed. This can be disabled by using the NOPACK option on the MEMMAN= line in
  1190. the CONFIG.SYS. However, the performance decrease and larger working set will rarely offset
  1191. the potential of a reduced swap file size.
  1192. The swap file shrinks when several conditions are met. When the amount of free swap space in
  1193. the swap file exceeds 1.5MB, swap file compaction will be performed at system idle time. During
  1194. compaction, free swap space will be moved to the end of the swap file. After compaction, when
  1195. the amount of free space at the end of the swap file is greater than 1 MB, the swap file will be
  1196. decreased, in 1MB increments. The swap file only compacts when it has grown larger than the
  1197. What Else Can be Changed to Improve Performance? 21
  1198. ──── Page: 22 ────────────────────────────────
  1199.  
  1200.  
  1201. size initially set in the CONFIG.SYS. Growing and shrinking of the swap file is always managed
  1202. in 1MB increments.
  1203.  
  1204. File Systems
  1205. The file systems supported under OS/2 are FAT and HPFS. They are functionally equivalent to
  1206. the earlier releases. Both HPFS and the FAT file systems have disk caching, lazy writing and
  1207. read-ahead.
  1208. Disk caching is the placing of frequently accessed data in a special buffering storage. It reduces
  1209. access time and improves the performance of applications that rely heavily on hard disk data.
  1210. Lazy writing (or write behind) is the writing to disk file updates when the operating system is
  1211. idle, when the updated (dirty) cache block is aged, or when the cache is full of updated (dirty)
  1212. cache blocks. Cache blocks are aged by a set of parameters described in detail later in this
  1213. section.
  1214. Read-ahead is when the file system detects sequential read requests in a file and extends the read
  1215. (reads ahead), placing that data in the file system cache to improve performance. Read-ahead is
  1216. an internal function of the file system, and not settable by the end user.
  1217. To minimize the frequency with which the system ties up its resources writing cached data to the
  1218. disk, both file systems also can take advantage of the lazy-writing feature. Lazy writing provides
  1219. a significant performance improvement when writing to the disk.
  1220. To allow the operating system the greatest chance for finding data in the cache, both file systems
  1221. incorporate asynchronous read ahead for sequential I/O. This read-ahead capability is always
  1222. enabled in OS/2 2.0.
  1223. For applications that require absolute data integrity, files should be opened with WriteThru
  1224. enabled. WriteThru ensures that disk write operations are committed to disk before the applica-
  1225. tion continues. This is in direct contrast to lazy writing; lazy-written data can remain in the
  1226. file-system cache for several seconds after the application has completed writing. Disabling the
  1227. lazy-writing feature of either file system does not provide the same capability as enabling
  1228. WriteThru, and it decreases system performance When it is not possible to open a file with
  1229. WriteThru enabled, the shutdown procedure must be used to ensure that all data is written to
  1230. disk.
  1231. The lazy writing parameters for both file systems will cause updates in the cache to be written to
  1232. disk when the disk is idle or when the update is 5 seconds old. It takes the operating system
  1233. only a second or two to complete the updates to disk. The parameters cause writes to the disk
  1234. when the cache is approximately 30% full of dirty blocks (updates). This means that the actual
  1235. window of 'lost' data in the case of a power interruption is small -- at maximum, the last 7
  1236. seconds of updates, to around 50% of the total cache size.
  1237. Shutdown flushes all system buffers guaranteeing that file system updates in the cache are
  1238. written to disk before power off or reboot. CTRL-ALT-DEL flushes the buffers in the same
  1239. way, also providing for data updates to disk at reboot time. Using either of these functions will
  1240. ensure file updates are written to disk.
  1241. 22 OS/2 Performance Tuning  
  1242. ──── Page: 23 ────────────────────────────────
  1243.  
  1244.  
  1245. Generally, if a partition is less than 100 MB, the file system selected should be FAT. FAT pro-
  1246. vides excellent performance and reserves less disk space for managing the partition than HPFS.
  1247. The High Performance File System, which was designed for the larger disk drives, generally per-
  1248. forms better than FAT in partitions greater than 100MB, especially where there are many small
  1249. files, a very large file (for example a database) or the access to the disk will generally be random.
  1250. FAT File System
  1251. The FAT file system contains no significant changes from OS/2 version 2.0.
  1252. The FAT file system contains the following enhancements in 2.0 that provide improved perform-
  1253. ance and enhanced support for disk hardware devices:
  1254. ■ Command chaining by attempting to call the volume manager with a list of all contiguous
  1255. sector requests required to fill an I/O request, thereby enabling multiple I/O requests in a
  1256. single logical operation.
  1257. ■ Scatter and gather by passing physical pointers to each page in the data buffer (physically
  1258. discontiguous) as part of the I/O request. This allows I/O controllers, such as the IBM SCSI
  1259. adapters, that support the scatter and gather capability to perform the I/O in a single opera-
  1260. tion.
  1261. ■ Disk caching within the FAT file system, rather than in the device driver.
  1262. ■ Recognition of devices that have onboard caches (nonsystem memory), incorporating them
  1263. into the total caching scheme.
  1264. ■ Faster allocation of free space on the logical drive, using a bit map to track free clusters on
  1265. the disk.
  1266. FAT supports Extended Attributes to a maximum of 64KB per file or directory.
  1267. The FAT file system manages the partition using clusters. The cluster size varies with the parti-
  1268. tion size because only 64 KB is used to manage the entire partition. Larger partitions have
  1269. larger clusters than smaller partitions. Since a file or directory always takes n number of clusters,
  1270. this results in a less efficient use of DASD in large partitions (a 1 byte file will take a cluster,
  1271. even if the cluster is 8 KB). See Figure 4 on page 9 for cluster size information.
  1272. High Performance File System
  1273. The High Performance File System has made some internal changes to improve performance. In
  1274. version 2.1, when small files (1/8th the cache size; max file size 128 KB) are opened, they are
  1275. immediately read into the HPFS cache. This allows for increased performance when accessing
  1276. the data in that file.
  1277. The HPFS under OS/2 supports the following:
  1278. ■ Command chaining by calling the volume manager with a list of all contiguous sector
  1279. requests required to fulfill an I/O request. This function is supported for all DASD types.
  1280. ■ Scatter and gather by passing physical pointers to each page in the data buffer (physically
  1281. discontiguous) as part of the I/O request. This enables I/O controllers, such as the
  1282. busmastering IBM SCSI adapters, that support the scatter and gather capability to perform
  1283. the I/O in a single operation.
  1284. ■ Disk caching in the IFS driver, rather than in the device driver.
  1285. What Else Can be Changed to Improve Performance? 23
  1286. ──── Page: 24 ────────────────────────────────
  1287.  
  1288.  
  1289. ■ Recognition of devices that have onboard caches (non-system memory), incorporating them
  1290. into the total caching scheme.
  1291. HPFS manages all partitions at a sector granular level, regardless of the size of the partition.
  1292. This allows for better use of DASD. (a 1 byte file will take a sector, generally 512 bytes).
  1293. HPFS supports Extended Attributes to a maximum of 64 KB per file or directory. HPFS will
  1294. perform best when the number of files in a directory are kept below 5,000.
  1295. Note:  File system selection, cache sizes and options influence the performance of application
  1296. load times and run time within I/O intensive applications. File system performance will generally
  1297. not affect the performance of CPU bound programs or user interactive applications. Your appli-
  1298. cation is I/O intensive if there are many I/O requests (hard drive access light stays lit). File
  1299. system performance will also affect the load times of large applications and applications where
  1300. large files are loaded and saved (desktop publishing & applications using large files (spread
  1301. sheets) are examples).
  1302. Partition Size and File System Performance
  1303. The FAT file system is basically the traditional DOS file system with some enhancements in the
  1304. file system cache and lazy writing (write-behind) available. The High Performance File System,
  1305. first available in OS/2 1.2, was designed to handle large DASD and large files. HPFS uses
  1306. B-trees to locate the information on directories and files. Both file systems perform well on small
  1307. (<100 MB) partitions. The advantage goes to HPFS in large (>100 MB) partitions because of
  1308. the faster access through the B-tree. B-tree searching allows faster access to HPFS also manages
  1309. DASD space at a sector granular level rather than by clusters like FAT.
  1310.  What this means is that if a system has a small hard file, or is partitioned into small (< 100
  1311. MB) partitions, the file systems perform generally the same. The FAT file system is preferable
  1312. because it uses less disk space to manage the files and directories. The FAT file system is always
  1313. active in OS/2 (HPFS does not handle diskettes). HPFS is started by the statement: 
  1314. IFS=C:\OS2\SYSTEM\HPFS.IFS /c:64
  1315. in the CONFIG.SYS. If a system does not need HPFS, removing this line reduces memory
  1316. requirements by 100 KB when not accessed, and approximately 500 KB when accessed. If
  1317. memory is constrained, this will help improve overall system performance. If the system is not
  1318. overcommitted, removal of this option will not improve performance. If any partition size is
  1319. large ( >100 MB ), HPFS should be used for function as well as performance.
  1320. Special consideration should be given if you will be installing Windows applications. Many of
  1321. these applications place files in the WINDOWS\SYSTEM subdirectory. This forces you to plan
  1322. ahead for disk space requirements to install these applications. Additional consideration must
  1323. also be given if an you expect to boot and execute under native DOS. Native DOS (all versions)
  1324. does not provide access to HPFS formatted partitions.
  1325. File System Caches and Lazy Writing
  1326. Whether a system is using FAT, HPFS or both, tuning the file system cache has performance
  1327. advantages for heavy I/O applications. Both file systems allow various cache sizes as well as
  1328. threshold parameters. There are some functional differences in the file systems.
  1329. 24 OS/2 Performance Tuning  
  1330. ──── Page: 25 ────────────────────────────────
  1331.  
  1332.  
  1333. Cache parameters determine when data will be lazy written to disk. Consult the OS/2 Command
  1334. Reference for more information. Changes in these values generally have no discernible impact on
  1335. system performance The read ahead value is not settable by the end user, and is provided here
  1336. for information only. The threshold value (CRECL) will affect the performance of I/O intensive
  1337. applications. This value determines the cut off point at which I/O requests are not cached by
  1338. the file system. If your application uses large I/O requests, performance will be improved when
  1339. this value is increased to include the larger I/O size. This would mean more data will be avail-
  1340. able in the file system cache. This is useful if the application accesses the same data repeatedly,
  1341. or if the application accesses the data sequentially. This value does have a dependency on the
  1342. file system cache. The file systems will not allow I/O requests greater than 1/4 of the total cache
  1343. into the file system cache. This is to prevent constant overwriting of data in the cache. If you
  1344. increase the threshold value, be certain that the file system cache can use that value with the
  1345. cache size set. OS/2 will ignore unacceptable threshold value, and use the default value.
  1346. The file system cache is used for I/O requests that are less than the threshold value set, or 1/4 of
  1347. the cache size maximum. Increasing the cache size will improve performance for I/O intensive
  1348. applications. Experiment with various values to determine the best setting for your application.
  1349. Each file system has its own cache. If both file systems are enabled, determine the file system
  1350. that will be used for the I/O intensive applications and increase the size of that file system's
  1351. cache. Decrease the size of the other file system cache. Decrease both file system caches if your
  1352. application is not I/O intensive, as this will free up memory for your application(s).
  1353.  
  1354. Figure 11. Cache and Lazy Writing Parameters
  1355.  
  1356.  
  1357. FAT
  1358.  
  1359. HPFS
  1360.  
  1361. Cache Size Minimum
  1362. Maximum
  1363.  
  1364. 64 KB
  1365. 14 MB
  1366.  
  1367. 64 KB
  1368. 2 MB
  1369.  
  1370. Threshold Default
  1371. Minimum
  1372. Maximum
  1373.  
  1374. 2 KB
  1375. 2 KB
  1376. 64 KB
  1377.  
  1378. 4 KB
  1379. 2 KB
  1380. 64 KB
  1381.  
  1382. Read Ahead Value
  1383.  
  1384. 8 KB
  1385.  
  1386. 8 KB
  1387.  
  1388. Cache Parameters
  1389. MaxAge
  1390. (range)
  1391. DiskIdle
  1392. (range)
  1393. BufferIdle
  1394. (range)
  1395.  
  1396. 5000 ms
  1397. not settable
  1398. 1000 ms
  1399. not settable
  1400. 500 ms
  1401. not settable
  1402.  
  1403. 5000 ms
  1404. 1 - 99999
  1405. 1000 ms
  1406. 1 - 99999
  1407.  500 ms
  1408. 1 - 99999
  1409.  
  1410. All cache parameter values are milliseconds
  1411.  
  1412. What Else Can be Changed to Improve Performance? 25
  1413. ──── Page: 26 ────────────────────────────────
  1414.  
  1415.  
  1416. EXAMPLES: These examples only suggest changes for systems, and assumes that memory is
  1417. NOT overcommitted.
  1418. ■ CPU Application.
  1419. System Setup - C: is the system partition, 60MB, FAT
  1420. D: is the application partition, 100MB, HPFS
  1421. Application - Desktop Publisher & Graphical Application
  1422. Decrease the size of the file system caches. 64K for FAT and
  1423. 128K for HPFS will probably be sufficient.
  1424. No changes in threshold.
  1425. ■ DASD Application.
  1426. System Setup - C: is the system partition, 60MB, FAT
  1427. D: is the application partition, 100MB, HPFS
  1428. Application - Spread sheet and Database applications.
  1429. Increase the size of the HPFS cache, threshold to 64K.
  1430. Decrease the size of the FAT cache, no change to threshold
  1431. ■ DASD Application
  1432. System Setup - C: is the system partition, 70MB, FAT
  1433. D: is the application partition, 210MB, HPFS
  1434. Application - Large Spread sheet and/or Database applications.
  1435. Increase the size of the HPFS cache, increase threshold to 64K.
  1436. Decrease the size of the FAT cache, no change to threshold
  1437. ■ CPU Application.
  1438. System Setup - C: is the system partition, 60MB, FAT
  1439. D: is the application partition, 60MB, FAT
  1440. Application - Desktop Publisher & Graphical Application
  1441. REM out the IFS line for HPFS. Decrease the FAT cache.
  1442. No change in FAT threshold.
  1443. Default File System Cache Sizes
  1444. Although the installation defaults might not be specifically customized to a particular system, it
  1445. is beneficial to have access to larger cache sizes. Therefore, OS/2 2.x installs with larger cache
  1446. sizes when additional memory is available on the system. system.
  1447. The default values are shown in Figure 12 on page 27. If only the FAT file system is installed,
  1448. the default sizes are for the DISKCACHE= statement in the CONFIG.SYS file. If the system
  1449. has partitions that are all HPFS, the default size is for the IFS=HPFS statement in the
  1450. CONFIG.SYS file. If the system uses both file systems types, then OS/2 2.x installation changes
  1451. the cache size for both file systems. The file system with the largest total amount of DASD
  1452. (sum of the partitions) gets that larger value (listed under 2 file systems) and the other file system
  1453. gets the smaller value. See the section on File Systems for additional information.
  1454. 26 OS/2 Performance Tuning  
  1455. ──── Page: 27 ────────────────────────────────
  1456.  
  1457.  
  1458.  
  1459. The CONFIG.SYS
  1460. OS/2 provides many options and tunable settings. The default settings are designed for the
  1461. 'average' user. Certain assumptions were made that will not apply to all end users. While these
  1462. choices are excellent for general use, some changes can provide for increased performance in the
  1463. end user environment. The following is intended to provide information to allow you to change
  1464. the settings to tune the system for your specific requirements.
  1465. Customizing
  1466. There is a considerable amount of flexibility in the settings in the CONFIG.SYS. Generally end
  1467. users try to make changes and 'see what happens'. This can lead to the situation where the
  1468. system will not boot. Use the new ALT-F1 feature or boot from a diskette to recover. The
  1469. ALT-F1 feature takes the CONFIG.SYS, OS2SYS.INI and OS2.INI from the install directory
  1470. and replaces them over the existing files. To use this optimally, set up your system as you like it
  1471. (Workplace Shell included) and then copy those files over to the OS2\INSTALL subdirectory on
  1472. the boot partition. This allows experimentation without high risk -- recovery is to the last saved
  1473. setup. If you don't make any changes, the files saved are the CONFIG.SYS and INI files from
  1474. initial installation. Considerable time can be saved by copying these files after system changes
  1475. are made.
  1476. You might want to copy a CONFIG.SYS file from a network server or from a previously
  1477. installed system. However, using the statements from an existing system for another system
  1478. might not enable optimum performance of the second system, because many of the parameters
  1479. for the CONFIG.SYS statements are dynamically determined at install time based on the config-
  1480. uration of the system. See the section on Installation for more specific information. Custom-
  1481. izing the OS/2 2.1 CONFIG.SYS file improves performance and reduces memory requirements.
  1482. This section describes some OS/2 2.1 CONFIG.SYS statements.
  1483. PATH=
  1484. Specifies the directories and search sequence to find .EXE, .BAT, .CMD and .COM files.
  1485. The path statement should be tuned for your particular system. By placing the most com-
  1486. monly used directories in the beginning of the path, performance can be improved. This
  1487. reduces the number of directories that must be searched to locate a particular file.
  1488.  
  1489. Figure 12. Installed Cache Default Sizes
  1490.  
  1491. Memory Size in MB
  1492.  
  1493. One File System
  1494.  
  1495. Two File Systems
  1496.  
  1497. 4
  1498.  
  1499. 128
  1500.  
  1501. 128 / 64
  1502.  
  1503. 5
  1504.  
  1505. 128
  1506.  
  1507. 128 / 64
  1508.  
  1509. 6
  1510.  
  1511. 256
  1512.  
  1513. 256 / 64
  1514.  
  1515. 7
  1516.  
  1517. 256
  1518.  
  1519. 256 / 128
  1520.  
  1521. 8
  1522.  
  1523. 512
  1524.  
  1525. 256 / 256
  1526.  
  1527. 9
  1528.  
  1529. 512
  1530.  
  1531. 256 / 256
  1532.  
  1533. 10 through 16
  1534.  
  1535. 1024
  1536.  
  1537. 512 / 512
  1538.  
  1539. 17 through 32
  1540.  
  1541. 2048
  1542.  
  1543. 1024 / 1024
  1544.  
  1545. What Else Can be Changed to Improve Performance? 27
  1546. ──── Page: 28 ────────────────────────────────
  1547.  
  1548.  
  1549. LIBPATH=
  1550. Specifies the directories and search sequence to find DLLs, resources and fonts. Specify the
  1551. most frequently accessed directories first so the operating system can find them faster. A
  1552.  .;  in the beginning of the LIBPATH tells OS/2 to search the current directory first.
  1553. DPATH=
  1554. Specifies the directories and search sequence to find data. Specify the most frequently
  1555. accessed directories first so that the operating system can find them faster.
  1556. SWAPPATH=
  1557. Specifies the location of the swap file, the minfree value, and the initial size. See the section
  1558. on the swap file for specific tuning information (page 20). The default location for the file
  1559. is \OS2\SYSTEM. Both values are given in KB. All changes take effect after the next
  1560. boot.
  1561. The following statement will create the SWAPPER.DAT file in the OS2\SYSTEM subdirec-
  1562. tory on the  D: partition, with a minfree value of 2MB, and an initial size of 4MB.
  1563. SWAPPATH=D:\OS2\SYSTEM 2048 4096
  1564. The following statement will create a SWAPPER.DAT file in the root directory on the
  1565. E: partition, with a minfree value of 5MB, and an initial size of 12MB.
  1566. SWAPPATH=E:\ 5120 12288
  1567. DISKCACHE=
  1568. Specifies the size (in KB) of memory to allocate for use for the FAT file system's disk
  1569. cache, whether FAT lazy writing is enabled, and the threshold (in sectors) for caching disk
  1570. reads.
  1571. Caching speeds up applications that read hard disks by keeping frequently accessed hard
  1572. disk data in a cache. However, increasing the size of the disk cache decreases the size of
  1573. available memory. See Figure 12 on page 27 for the default disk cache sizes.
  1574. If the LW parameter is specified, FAT lazy writing is on. Lazy writing is a feature whereby
  1575. actual writing of data to the hard disk is deferred. This allows control to be returned to an
  1576. application without having to wait for the completion of I/O operations. Disabling lazy
  1577. writing severely degrades system performance.
  1578. The default enables lazy writing.
  1579. The following statement sets the FAT file system cache at 128 KB with lazy writing
  1580. enabled.
  1581. DISKCACHE=128,LW
  1582. The threshold parameter specifies the number of sectors that will be placed into cache for
  1583. read operations. If the threshold parameter is not specified (as in the previous example), it
  1584. defaults to a value of 4 (2KB). The threshold value may not exceed 1/4 the total cache size
  1585. or the specified value will be ignored and the default value will be used instead. Any read
  1586. operation that is less than the threshold is read into the disk cache first. Therefore, subse-
  1587. quent read operations will probably find the needed data in the cache, thus improving per-
  1588. formance.
  1589. The following statement sets the FAT file system cache at 512KB with lazy writing enabled
  1590. and a threshold value of 64 resulting in the caching of all reads < 32KB.
  1591. DISKCACHE=512,LW,64
  1592. 28 OS/2 Performance Tuning  
  1593. ──── Page: 29 ────────────────────────────────
  1594.  
  1595.  
  1596. BUFFERS=
  1597. Provides memory that OS/2 2.x uses to cache FAT directory information, thereby
  1598. improving performance. This usage is different than in a DOS environment. A buffer is
  1599. the size of a FAT sector (512 bytes), so every 8 buffers take one page of memory. On
  1600. larger FAT partitions, performance will be improved by increasing the number of buffers.
  1601. The default value is 30.
  1602. IFS=
  1603. This statement causes the High Performance File System to be loaded. It is also used to
  1604. specify the size in KB of memory to allocate for the HPFS disk cache (via the /CACHE
  1605. parameter), and the threshold in KB for caching disk reads (via the /CRECL parameter).
  1606. Note:  If your system has no HPFS partitions defined, you should disable the loading of
  1607. HPFS by adding a REM to the beginning of the IFS= line in your CONFIG.SYS.
  1608. Lazy writing for HPFS defaults to ON. A RUN=CACHE statement is required to change
  1609. the state of lazy writing. CACHE also can be executed from a command prompt. See
  1610. Figure 12 on page 27 for the default disk cache sizes and Figure 11 on page 25 for the
  1611. other cache and lazy write options that are available.
  1612. The example that follows shows the default statement on 8MB systems. This results in the
  1613. allocation of a 512KB HPFS disk cache and in the caching of I/O requests that are smaller
  1614. than 4KB. The /AUTOCHECK parameter designates which partitions should be
  1615. CHKDSK'd at boot time. The C: partition is designated for autocheck.
  1616. IFS=C:\OS2\HPFS.IFS /CACHE:512 /CRECL:4 /AUTOCHECK:C
  1617. The next example sets the HPFS cache at 2MB, and uses the default value of 4KB for the
  1618. cache record length threshold. No partitions are designated for autocheck.
  1619. IFS=C:\OS2\HPFS.IFS /CACHE:2048
  1620. The next example sets the HPFS cache at 256KB and sets the cache record length threshold
  1621. at 16KB. The D:, E:, and F: partitions are designated for autocheck.
  1622. IFS=C:\OS2\HPFS.IFS /CACHE:256 /CRECL:16 /AUTOCHECK:DEF
  1623. This last example attempts to set both the HPFS cache size and the cache record length
  1624. threshold to 64KB. However, the CRECL value is invalid because OS/2 2.1 disk cache
  1625. thresholds may not exceed 1/4 the total cache size. Therefore, the system overrides the
  1626. value and uses the HPFS default threshold of 4KB. The D:, E: and F: partitions are desig-
  1627. nated for autocheck.
  1628. IFS=C:\OS2\HPFS.IFS /CACHE:64 /CRECL:64 /AUTOCHECK:DEF
  1629. PRIORITY_DISK_IO=
  1630. Specifies disk input/output priority for applications running in the foreground. When
  1631. PRIORITY_DISK_IO=YES is specified in the CONFIG.SYS file, an application running
  1632. in the foreground receives disk I/O priority over applications running in the background.
  1633. Therefore, the application in the foreground has better response time than applications
  1634. running in the background.
  1635. An example of a time when this should be set to NO is if you are running an I/O intensive
  1636. application in the background (like a compile) and are working in the foreground on a task
  1637. that is less important to you than the compile. Setting this to NO would remove the pri-
  1638. ority boost from the foreground application and improve the performance of the back-
  1639. ground compile.
  1640. What Else Can be Changed to Improve Performance? 29
  1641. ──── Page: 30 ────────────────────────────────
  1642.  
  1643.  
  1644. The default value is YES.
  1645. THREADS=
  1646. Specifies the maximum number of threads OS/2 will allow to exist at any one time.
  1647. Threads are dispatchable units of execution. OS/2 applications usually have several threads
  1648. to take advantage of multitasking. DOS and Windows applications usually have only 1
  1649. thread. Some threads are used by the system. The default is 128 or 256 threads,
  1650. (depending on system memory at installation time) which should be plenty for general use.
  1651. Changing this value to an unnecessarily large one in not advisable because it takes addi-
  1652. tional memory. Reducing it below 128 does not significantly free any memory. The default
  1653. value should be acceptable in most environments. One exception is a server environment,
  1654. where it is generally better to have 256 or 512 threads on the server.
  1655. The default value is 128 or 256 threads.
  1656. MAXWAIT=
  1657. Sets the amount of time a ready-to-run regular or server class thread can wait before the
  1658. system assigns it a temporary higher priority. The amount of time to set depends on the
  1659. number of concurrent applications and the activities the applications perform.
  1660. The default is 3 seconds.
  1661. This default value is optimal for most system setups.
  1662. TIMESLICE=
  1663. Sets the minimum and maximum amount of processor time allocated per timeslice. This
  1664. line does not appear in the default install of OS/2 2.x, since the system defaults to dynamic
  1665. time slicing based on system load and paging activity. While this entry is supported, it
  1666. should not be used.
  1667. The default is not in the CONFIG.SYS. DO NOT use this setting.
  1668. MEMMAN=
  1669. Specifies memory management control options. The SWAP option indicates that swapping
  1670. to the swap file is enabled and memory can be overcommitted. The NOSWAP option pre-
  1671. vents swapping. When NOSWAP is selected, the system must contain physical memory for
  1672. all memory allocations. SWAP should be selected.
  1673. The PROTECT option enables certain APIs to allocate and use protected memory.
  1674. The COMMIT option indicates that the memory manager should reserve storage in the
  1675. swap file at the time any memory is allocated. Specifying this option causes very large
  1676. swap files to be generated. It can be useful in unattended operating environments (if you
  1677. specify the COMMIT option, you should increase the initial swap file size parameter on the
  1678. SWAPPATH= statement).
  1679. The default value is SWAP,PROTECT.
  1680. PRINTMONBUFSIZE=
  1681. Sets parallel-port device driver character monitor buffer sizes for LPT1, LPT2 and LPT3.
  1682. You may increase performance of data transfers to devices connected to parallel ports by
  1683. increasing the associated device driver monitor buffers sizes. For example, to increase the
  1684. size of the device driver buffer for a device connected to parallel-port LPT1 to 2048 bytes,
  1685. specify:  PRINTMONBUFSIZE=2048,134,134.
  1686. The default value is 134,134,134 bytes.
  1687. 30 OS/2 Performance Tuning  
  1688. ──── Page: 31 ────────────────────────────────
  1689.  
  1690.  
  1691. PROTECTONLY=
  1692. Selects one or two operating environments. The OS/2 operating system requires this state-
  1693. ment in the CONFIG.SYS file.
  1694. The PROTECTONLY=NO statement allows a user to run both DOS (including
  1695. WIN-OS/2) and OS/2 applications.
  1696. The PROTECTONLY=YES statement allows a user to run only OS/2 applications.
  1697. The default value is NO.
  1698. RMSIZE=
  1699. Specifies the highest storage address allowed for the DOS operating environment. Leave
  1700. the default for optimal performance in your VDM sessions.
  1701. The default value is 640KB.
  1702. SET DELDIR=
  1703. Specifies the location to hold deleted files, and the total size of files to be retained. This
  1704. allows you to save files that have been deleted, for later retrieval if needed. By default, this
  1705. setting is commented out because backing up each deleted file slows system performance.
  1706. When enabled, the last value is the size in KB of files to be saved for restoring. The fol-
  1707. lowing statement enables restoring files to a total of 512KB, for the  C:  and  D:  parti-
  1708. tions.
  1709. SET DELDIR=C:\DELETE 512;D:\DELETE 512;
  1710. This means that OS/2 will 'save' files erased, deleted or shredded from the  C:  partition to
  1711. a total of 512KB in the C:\DELETE subdirectory (those from the  D:  partition would be
  1712. 'saved' in the D:\DELETE subdirectory). FIFO management is used. If the last file
  1713. deleted is larger than 512KB, than that entire file is saved, regardless of size. The system
  1714. does not differentiate between files erased by the user and files erased by an application
  1715. (temp files).
  1716. Only use this function when you are cleaning your system, and ensure that you have a large
  1717. enough size specified to save all the files until you are finished. Then REM out this state-
  1718. ment in the CONFIG.SYS for the next boot. Performance when erasing or moving files is
  1719. slow with this feature enabled.
  1720. The default is disabled.
  1721. SET RESTARTOBJECTS=
  1722. Specifies the action to be taken by the Workplace Shell when the system is rebooted. This
  1723. line does not appear in the default install of OS/2 2.x, but the system defaults as if a
  1724. SET RESTARTOBJECTS=YES statement had been encountered. This causes all objects
  1725. in the Startup folder and any other objects that were active when the system was last
  1726. running to be started.
  1727. A SET RESTARTOBJECTS=NO statement indicates that nothing should be started. This
  1728. selection would provide the fastest boot time.
  1729. A SET RESTARTOBJECTS=STARTUPFOLDERSONLY statement indicates that only
  1730. the objects that are in the Startup folder should be started.
  1731. The default value is YES.
  1732. What Else Can be Changed to Improve Performance? 31
  1733. ──── Page: 32 ────────────────────────────────
  1734.  
  1735.  
  1736. Changes for a DOS Session
  1737. Virtual device drivers used by DOS sessions take little or no memory below the 640KB limit. A
  1738. user can install device drivers that are required by, and are specific to, certain applications that
  1739. run in a DOS session. If the commands to load these device drivers or other memory resident
  1740. programs are added to the CONFIG.SYS file, these device drivers (or programs) are loaded into
  1741. any DOS session. This reduces the amount of conventional memory available to DOS applica-
  1742. tions.
  1743. DOS settings allow a user to customize a DOS session. To ensure that the maximum amount of
  1744. memory is available in each DOS session, load the necessary DOS device drivers for the DOS
  1745. application by using DOS settings. For example:
  1746. DEVICEHIGH=
  1747. Loads a specified DOS device driver into an available upper memory block (UMB) for a
  1748. DOS session.
  1749. Note:  DOS device drivers normally are loaded into low memory (below 640KB) in DOS
  1750. sessions.
  1751. If a UMB is not available, the device driver is loaded into low memory (as a DEVICE=
  1752. statement). To enable UMBs, include the DOS=UMB statement in the CONFIG.SYS file.
  1753. DOS=
  1754. Specifies whether the DOS kernel will reside in the high memory area (HMA) and whether
  1755. the operating system or DOS applications will control upper memory blocks.
  1756. Note:  Upper memory blocks are provided by the XMS device driver.
  1757. It also is necessary to include a VXMS.SYS statement in the CONFIG.SYS file to have
  1758. upper memory blocks available.
  1759. ■ With a DOS=HIGH/LOW,UMB statement, the operating system controls the upper
  1760. memory blocks. This means that DOS applications can be loaded into upper memory
  1761. but cannot allocate UMBs.
  1762. ■ With a DOS=HIGH/LOW,NOUMB statement, the operating system will not control
  1763. any UMBs. DOS applications can allocate UMBs but cannot be loaded there.
  1764. Eliminate DEVICE= statements for DOS device drivers from the CONFIG.SYS file unless the
  1765. device driver is required for any DOS session.
  1766.  
  1767. The AUTOEXEC.BAT
  1768. Customizing
  1769. The AUTOEXEC.BAT file is specific to the DOS session and has no effect on the OS/2 oper-
  1770. ating system. It can be customized for each session. This file contains DOS system commands
  1771. that run when a DOS session is started. The AUTOEXEC.BAT file starts memory resident pro-
  1772. grams, such as network programs, and sets up environment variables.
  1773. 32 OS/2 Performance Tuning  
  1774. ──── Page: 33 ────────────────────────────────
  1775.  
  1776.  
  1777. To make as much base memory as possible available to applications, remove any unnecessary
  1778. commands from the AUTOEXEC.BAT file. Create several AUTOEXEC.BAT files. Include
  1779. only the commands needed in each AUTOEXEC.BAT file to customize a specific DOS session.
  1780. Note:  Do not allow the installation of a DOS or Windows application to change the
  1781. AUTOEXEC.BAT file supplied with OS/2. If a DOS command is necessary for a specific
  1782. DOS application, customize the specific AUTOEXEC.BAT file for that DOS session.
  1783. How To Specify a Different AUTOEXEC.BAT File
  1784. You may start DOS or WIN-OS/2 sessions with the default AUTOEXEC.BAT file which is
  1785. located in the root directory of the boot drive. It is better to specify a customized
  1786. AUTOEXEC.BAT file to create the environment for running that specific DOS or Windows
  1787. application. The specification of the new AUTOEXEC.BAT can be done by selecting the setting
  1788. DOS_AUTOEXEC in the WIN-OS/2 Settings notebook for the application object (Dos Set-
  1789. tings). Also see Dos Settings, Page 40.
  1790.  
  1791. Tuning for OS/2 Applications
  1792. OS/2 applications are designed to run in the native OS/2 environment. Because of this, special
  1793. settings and configurations to support these applications are not required. Well written OS/2 appli-
  1794. cations take advantage of OS/2 at the API level. Users do not need to make explicit changes for
  1795. OS/2 applications.
  1796.  
  1797. Tuning for Windows Applications
  1798. Enhanced and Standard Modes
  1799. The Enhanced Mode Compatibility enables the user to run a number of Windows 3.1 enhanced
  1800. mode applications under OS/2 2.1. It is important to realize that this is not an implementation
  1801. of Windows 3.1 enhanced mode, but a mode specific to WIN-OS/2 3.1 that illustrates the flexi-
  1802. bility of OS/2 and its power in blending different application environments into an integrated
  1803. platform since the major benefit to Windows 3.1 users of enhanced mode was virtual memory -
  1804. something which OS/2 users already have.
  1805. Like the previous WIN-OS/2 3.0, a special VDM is provided to emulate a DPMI server and the
  1806. WIN-OS/2 3.1 kernel is loaded into the VDM to directly service the requests of Windows appli-
  1807. cations running in the VDM. To preserve the integrity of the system and avoid having duplicate
  1808. virtual device drivers (one running on top of the other), the WIN-OS/2 3.1 Enhanced Mode
  1809. Compatibility does not use the Windows enhanced mode virtual device drivers (VxDs). As a
  1810. result, Windows 3.1 applications which do not access the VxDs, such as Mathematica,
  1811. OmniPage Professional and Vellum, will run in the WIN-OS/2 3.1 Enhanced Compatibility
  1812. Mode.
  1813. An application can be set up to run in the Enhanced Compatibility Mode by setting the
  1814. WIN_RUNMODE to "3.1 ENHANCED". This setting can be found in the WIN-OS/2 Settings
  1815. notebook for the application object. You can also start an Enhanced Compatibility mode
  1816. session from an OS/2 or DOS command line by typing WINOS2 /E or WINOS2 /3.
  1817. What Else Can be Changed to Improve Performance? 33
  1818. ──── Page: 34 ────────────────────────────────
  1819.  
  1820.  
  1821. To start an application to run in the Enhanced Compatibility mode, for example hello.exe, you
  1822. would type WINOS2 /3 hello.exe.
  1823. An application can be set up to run in Standard Mode by setting the WIN_RUNMODE to "3.1
  1824. STANDARD". This setting can be found in the WIN-OS/2 Settings notebook for the applica-
  1825. tion object.
  1826. You can determine which mode is enabled in a VDM by bringing up the Help pop-up menu
  1827. from the Program Manager and select About.... The selection would display the About Program
  1828. Manager Box which will inform you if the session is in Standard or Enhanced Compatibility
  1829. Mode.
  1830. How To Install a WIN-OS/2 Application.
  1831. You can select migration and the system will migrate your application, placing the icon in the
  1832. Windows Application folder. This is easiest as the system will provide paths and some settings.
  1833. You can install a Windows application on the workplace shell by creating a program object from
  1834. the Templates folder and use the Settings Notebook for the object to specify the settings for the
  1835. application accordingly. For a Single Application definition, enter the full path and file name of
  1836. the application in the Program Object definition. For a multiple application definition, enter the
  1837. name of the program manager, i.e., MYAPP.EXE, in the Program Object definition. Once the
  1838. program definition has been done, you can go to the Session Object to specify the session type:
  1839. WIN-OS/2 Full Screen or WIN-OS/2 Windowed. If you select the WIN-OS/2 Windowed option
  1840. then you can select the Separate option to run your application in a separate VDM. If the
  1841. option is not selected then it will be run by default in a Common seamless session.
  1842. Starting DOS and OS/2 Applications from WIN-OS/2
  1843. The ability to start non-Windows applications from a VDM running WIN-OS/2 does not exists
  1844. under OS/2 2.0. In the release 2.1, you can now start DOS and OS/2 applications from a VDM
  1845. running a WIN-OS/2 full screen or seamless session.
  1846. From a command prompt in a DOS VDM session, you can start an OS/2 application by typing
  1847. the name of the application as if the application was a DOS application,.
  1848. Full Screen vs. Seamless Mode.
  1849. By default, the WIN-OS/2 icon is set to full screen. Because it references * in the program set-
  1850. tings, you cannot easily change from full screen to seamless. Some performance gain can be
  1851. obtained by running your application under WIN-OS/2 in a full screen. However, you may
  1852. prefer to run in seamless mode. A quick way to change from full screen to seamless is to change
  1853. the WIN-OS/2 program settings path and file name to
  1854. C:\OS2\MDOS\WINOS2\PROGMAN.EXE (assuming C: is the partition where WIN-OS/2 is
  1855. installed). This allows you to choose either WIN-OS/2 Full Screen or WIN-OS/2 Windowed
  1856. (seamless). to launch your applications. (change the selection of full screen or seamless on the
  1857. session page of the icon settings) Change the icon title on the general settings page.
  1858. 34 OS/2 Performance Tuning  
  1859. ──── Page: 35 ────────────────────────────────
  1860.  
  1861.  
  1862. How to Load Your Application Faster in the Seamless Environment
  1863. An application can run in a common or separate sessions. Common seamless sessions share one
  1864. WIN-OS/2 kernel regardless of the number of applications loaded. Separate sessions load a new
  1865. copy of the WIN-OS/2 kernel each time an application (or session) is started. As a result, if you
  1866. launch an application from a separate seamless session, the time taken to load the application
  1867. includes the time to load the WIN-OS/2 kernel as well. To eliminate the loading time of the
  1868. WIN-OS/2 kernel, you can either load a small Windows utility program at the system startup
  1869. time (e.g., loading clock.exe from the StartUp folder), or before the actual loading of your main
  1870. application.
  1871. How to Reduce Memory Management Overhead for WIN-OS/2 3.1
  1872. When a WIN-OS/2 session starts, the WIN-OS/2 kernel checks the settings of DOS_RMSIZE
  1873. and DPMI_MEMORY_LIMIT before committing the memory it would allocate to the session.
  1874. The new WIN-OS/2 3.1 kernel will allocate 1MB for the DOS virtual machine and partially
  1875. commit the DPMI memory that was asked for. By adjusting the settings for DPMI memory, you
  1876. can drastically reduce the overhead associated with the memory management
  1877. How to Reduce Memory Resource Usage
  1878. To reduce system memory resource usage, use a Common Seamless session whenever possible
  1879. since only one VDM will be started for all of the WIN-OS/2 Seamless sessions.
  1880. Also, reduce the amount of EMS and XMS memory allocated to your sessions if your applica-
  1881. tion do not require it. While the session only allocates linear address space, some applications
  1882. try to touch all memory just to see what is available. This will increase the memory required to
  1883. run the application and may increase the size of the swap file. If you are not sure if your
  1884. application(s) use EMS or XMS, then reduce the amounts from the default 2048 KB to 64KB.
  1885. This will provide enough memory for applications to run without causing application failure with
  1886. applications requiring EMS or XMS memory support.
  1887. How to Improve Cut and Paste Operations
  1888. New user interfaces are provided in WIN-OS/2 3.1 to enable specifying the Clipboard and DDE
  1889. as either "Public" or "Private". By default, both Clipboard and DDE for both OS/2 and
  1890. WIN-OS/2 are public, you can exchange data among programs running in DOS, OS/2, and
  1891. WIN-OS/2 sessions. If the WIN-OS/2 Clipboard and DDE are set to private then the data
  1892. exchange is only allowed among programs running in the same WIN-OS/2 session.
  1893. There are two ways you can set the operating mode for the Clipboard and DDE. You can select
  1894. the operating mode of Clipboard and DDE for all WIN-OS/2 sessions through a new global
  1895. WIN-OS/2 setup object in the Workplace Shell. For local settings, effective only to the single
  1896. VDM session, you can use the new settings provided in the WIN-OS/2 Settings notebook page
  1897. (WIN_CLIPBOARD & WIN_DDE). If your application does not exchange data with a DOS
  1898. or OS/2 application then you should set the Clipboard and DDE to private for better perform-
  1899. ance.
  1900. What Else Can be Changed to Improve Performance? 35
  1901. ──── Page: 36 ────────────────────────────────
  1902.  
  1903.  
  1904. WIN-OS/2 Settings
  1905. Settings for WIN-OS/2 sessions can be changed globally, using the WIN-OS/2 Setup icon found
  1906. in the System Setup folder. Settings can also be changed for specific sessions, using the applica-
  1907. tion settings notebook. Changes to the WIN-OS/2 Setup icon will change all Windows applica-
  1908. tions that start after the change is made. The WIN-OS/2 Setup settings will not override any
  1909. custom values set for applications. This allows you to change settings easier when you have
  1910. multiple applications.
  1911. There are two new settings for WIN-OS/2 3.1.
  1912. WIN_RUNMODE
  1913. In WIN-OS/2 3.1, the WIN_RUNMODE Settings option has been changed to include two
  1914. radio buttons for selecting either one of the two modes-- 3.1 Standard or 3.1 Enhanced
  1915. Compatibility.
  1916. The default is Standard.
  1917. DOS_AUTOEXEC
  1918. The DOS_AUTOEXEC setting is new in WIN-OS/2 3.1. This setting allows the application
  1919. to run in different DOS environments. You can now specify the AUTOEXEC.BAT file to
  1920. be executed when the VDM session is started.
  1921. The default is blank, and the AUTOEXEC.BAT found in the root directory will be used.
  1922. There are several other settings that affect the performance of your WIN-OS/2 session that are
  1923. the same as in OS/2 2.0.
  1924. WIN_DDE
  1925. This setting allows WIN-OS/2 to share DDE information between WIN-OS/2 and OS/2
  1926. sessions. For better performance, this setting should be set OFF, but only if you are not
  1927. exchanging data via DDE between OS/2 and WIN-OS/2 applications.
  1928. This should be set to Off for private data exchange between DOS applications.
  1929. The default is ON.
  1930. WIN_CLIPBOARD
  1931. This setting allows WIN-OS/2 to share clipboard information between public WIN-OS/2
  1932. and OS/2 sessions.
  1933. For better performance this setting should be set to Off for private data exchange between
  1934. WIN-OS/2 applications. Only set this setting Off if you will not be exchanging clipboard
  1935. data between OS/2 applications and WIN-OS/2 applications.
  1936. The default is ON.
  1937. DOS_BACKGROUND_EXECUTION
  1938. Allows DOS applications to run in the background.
  1939. ■ When the setting is set to On a Windows application runs when it is in the background.
  1940. ■ When the setting is set to Off a Windows application is suspended when it is in the
  1941. background.
  1942. When the Windows application is suspended, it no longer receives interrupts. For example,
  1943. if users have a polling application running on the background, it may slow down the fore-
  1944. 36 OS/2 Performance Tuning  
  1945. ──── Page: 37 ────────────────────────────────
  1946.  
  1947.  
  1948. ground application. Thus, the setting may be turned on to gain the foreground perform-
  1949. ance.
  1950. The default is On.
  1951. VIDEO_8514A_XGA_IOTRAP
  1952. This setting is used to directly access the Model 8514/A or XGA video.
  1953. Setting this to Off will make an application run faster. It releases the 1 MB of allocated
  1954. memory where video information is saved in a WIN-OS/2 session, specifically when exe-
  1955. cuting with the 8514/A display driver, certain operations such as painting a dithered back-
  1956. ground will run faster.
  1957. Set this to On for all WIN-OS/2 sessions that run in 8514 or XGA video modes.
  1958. The default is Off.
  1959. VIDEO_SWITCH_NOTIFICATION
  1960. This setting is used to notify the DOS program when the session switches to or from a full
  1961. screen VDM session. WIN-OS/2 understands this notification and will redraw the screen
  1962. when the screen is switched. For WIN-OS/2 sessions, set the to ON.
  1963. The default is On.
  1964. Note:  This setting must be ON if the VIDEO_8514A_XGA_IOTRAP is set OFF.
  1965. INT_DURING_IO
  1966. Allows interrupts to be handled during file reads/writes. This setting is primarily designed
  1967. for DOS multimedia applications and should be turned on when the user runs such applica-
  1968. tions.
  1969. The default value is Off.
  1970. DOS_RMSIZE
  1971. Defines the amount of conventional memory available to WIN-OS/2. This setting is used
  1972. to decrease the amount of available memory to less than 640 KB. Do not decrease this
  1973. value for WIN-OS/2 sessions.
  1974. The default value is 640 KB.
  1975. DPMI_MEMORY_LIMIT
  1976. Defines the amount of DPMI memory available to the WIN-OS/2 session. This setting
  1977. enables you to specify the amount of DPMI memory for the Windows applications on a
  1978. per session basis. The field for this setting contains values expressed in megabytes.
  1979. The default value is 64 MB. The range is 1 to 512.
  1980.  
  1981. Tuning for DOS Applications
  1982. Full Screen vs. Windowed
  1983. DOS applications (non-graphical) perform well in a windowed session. For example, DOS file-
  1984. intensive applications such as FoxPro 1.0 perform well while running in a VDM windowed
  1985. session. DOS word processors such as WordPerfect 5.1 and Word 5.0 also perform well in a
  1986. windowed DOS session. DOS programs doing intensive text or graphical display will run slower
  1987. in a windowed session compared to a full screen session. The main reason is that the full screen
  1988. session allows data to be directly written to video memory while the windowed session does not.
  1989. What Else Can be Changed to Improve Performance? 37
  1990. ──── Page: 38 ────────────────────────────────
  1991.  
  1992.  
  1993. Multitasking DOS sessions
  1994. OS/2 2.x allows users to run more than one VDM session. It provides the ability for all DOS
  1995. and OS/2 sessions to timeshare the CPU and other system resources. It is important to note
  1996. that DOS applications, unlike OS/2 applications, rarely block. They consume CPU timeslices
  1997. even if they are in the background or appear not to be doing anything useful (e.g., polling key-
  1998. boards or other devices.) This is controlled by the DOS setting Idle_Sensitivity.
  1999. Some applications recommend that the idle sensitivity be set to a high value. Those applications
  2000. may contain functions that appear to OS/2 to be polling, and the lower setting on idle sensitivity
  2001. may cause a functional problem. If your application has functions that appear to 'hang' when
  2002. the idle sensitivity is set low, increase idle sensitivity to a value where the function works cor-
  2003. rectly.
  2004. Another option is to set the DOS_BACKGROUND_EXECUTION to Off. This makes the fore-
  2005. ground job and other OS/2 jobs run faster as there will be no background DOS applications
  2006. competing for the CPU usage. This also allows idle sensitivity to be set higher than the default
  2007. value, which improves the foreground DOS application.
  2008. Running Interrupt-critical DOS sessions
  2009. Some DOS applications require fast and stable hardware interrupt support. For instance, DOS
  2010. communication programs need a steady data flow from COM ports. Since the VDM session are
  2011. virtualized, there are some inherent interrupt limitations. For a DOS communication applica-
  2012. tion, the data processing rate can reach 9600 bps for a single-character buffer com port. This
  2013. value is reduced when running multiple communication application applications concurrently, to
  2014. a total of 9600 bps.
  2015. Similarly, DOS multimedia applications require constant timer interrupts. By the nature of the
  2016. VDM interrupt mechanism, interrupts may get simulated into the application(s) not at constant
  2017. time intervals but in a clustered fashion. Therefore, if the DOS application depends on timer
  2018. interrupts, you may encounter some unpredictable behavior.
  2019. DOS Settings
  2020. Every object (including program objects) has settings. You can adjust DOS and WIN-OS/2 set-
  2021. tings to improve performance. Settings are properties or characteristics that tell the operating
  2022. system how one object is different from other objects. Each object has a notebook or pop-up
  2023. menu choice that allows you to customize settings.
  2024. For example, you can customize the settings for a program object to tell the operating system
  2025. how the application should start each time the program object is opened. You might open the
  2026. Mouse object to customize the mouse for left hand use.
  2027. 38 OS/2 Performance Tuning  
  2028. ──── Page: 39 ────────────────────────────────
  2029.  
  2030.  
  2031. Performance Tuning
  2032. DOS settings provide the ability to selectively configure and customize a DOS session to meet
  2033. the requirements of a particular application. Some DOS applications require certain features;
  2034. others operate better without them. Thus, an individual DOS session can be set up to provide
  2035. the optimum environment for the application that will run within it. All settings can be changed
  2036. before the session is created. Some settings can also be set at any time, even while an applica-
  2037. tion is running in the session. The Master Help Index has detailed information about settings.
  2038. The following is a list of settings that affect the performance of your DOS applications.
  2039. IDLE_SENSITIVITY
  2040. Specifies a threshold for judging when an application is considered idle. The value is the
  2041. percentage of the maximum possible polling rate the application can perform. If an appli-
  2042. cation polls at a rate higher than this value, it is considered idle.
  2043. Idle detection is a "best guess" of what the program is doing. It could be that the program
  2044. is polling at a very high rate, but is still doing useful work in between checking. It may be
  2045. that the application checks at a fairly slow rate but is doing nothing but waiting. The idle
  2046. sensitivity threshold allows you to adjust the threshold for each application.
  2047. Increase the percentage if the application can receive input while running and seems to run
  2048. more slowly than expected. Selecting 100 in this field turns idle detection off, and the appli-
  2049. cation can poll as often as necessary without operating system intervention.
  2050. Be aware that polling applications are detected quicker on fast systems than on slower
  2051. systems. This means that the value on different speed systems must vary -- decrease the
  2052. value on faster systems. Example: If a polling DOS application with idle_sensitivity set to
  2053. 50 on a 33 MHz CPU is detected as exceeding the threshold and forced to yield its timeslice
  2054. by OS/2, it may not be detected as exceeding the threshold on a 16 MHz system with the
  2055. same idle-sensitivity value. The 16 MHz system will need to set a lower value before OS/2
  2056. will consider the same application as exceeding the threshold and cause a yield.
  2057. Overall system performance can usually be improved when there are multiple DOS applica-
  2058. tions running if the value is set lower. For additional information on the setting see
  2059. ╚Multitasking DOS sessions╝ on page 38.
  2060. The default value is 75. The range is 1 to 100.
  2061. IDLE_SECONDS
  2062. Specifies the length of time, in seconds, the operating system waits before applying idle
  2063. detection in a DOS session.
  2064. This setting works with the IDLE_SENSITIVITY setting to help control polling DOS
  2065. applications. You can increase this value if you have an application that waits for input or
  2066. at a prompt (like a game).
  2067. The default value is 0. The range is 1 to 60.
  2068. DOS_DEVICE
  2069. Adds or modifies information about DOS device drivers for the specified VDM, in addition
  2070. to the information specified in CONFIG.SYS.
  2071. This setting allows you to specify a specific device driver for a specific application. This
  2072. means that you do not have to load all DOS device drivers at boot time, but instead you
  2073. can have the device driver(s) loaded when the application that uses it is started. You may
  2074. What Else Can be Changed to Improve Performance? 39
  2075. ──── Page: 40 ────────────────────────────────
  2076.  
  2077.  
  2078. add, change, or delete the device drivers using this setting via the list provided. Device
  2079. drivers should be loaded with the DOS_DEVICE setting instead of in the CONFIG.SYS,
  2080. unless you want the device driver loaded for all DOS sessions. For example, a program to
  2081. support hardware such as a scanner may include a device driver that is needed only for that
  2082. particular program. This device driver should be loaded using the DOS_DEVICE setting,
  2083. not globally in the CONFIG.SYS.
  2084. The default has no drivers.
  2085. DOS_BACKGROUND_EXECUTION
  2086. Allows DOS applications to run in the background.
  2087. When the setting is set to On, the DOS application runs when it is in the background. The
  2088. setting may be turned OFF to gain foreground performance.
  2089. When the setting is set to Off the DOS application is suspended when it is in the back-
  2090. ground.
  2091. The default is On.
  2092. INT_DURING_IO
  2093. Allows interrupts to be handled during file I/O.
  2094. This setting is primarily designed for DOS multimedia applications and should be turned
  2095. On when running a multimedia application. Other DOS applications that do not require
  2096. long file read/write should leave it Off as it will cost more memory and system overhead.
  2097. The default value is Off.
  2098. DOS_AUTOEXEC
  2099. Allows customizing the selection of an AUTOEXEC.BAT file. This allows setting a specific
  2100. AUTOEXEC.BAT file for each VDM session or each DOS application. This allows you to
  2101. customize the VDM autoexec, helping to reduce memory and optimize function. Also see
  2102. ╚How To Specify a Different AUTOEXEC.BAT File╝ on page 33 for additional informa-
  2103. tion.
  2104. The default is the AUTOEXEC.BAT file in the root drive.
  2105. VIDEO_RETRACE_EMULATION
  2106. Controls the frequency of video retrace.
  2107. A few DOS applications run more slowly with this setting set to On.
  2108. Changing this setting to Off increases performance, but screen switching is not as reliable.
  2109. When set to off, retrace occurs only at the interval specific to the video mode of the
  2110. running DOS application.
  2111. The default is On.
  2112. VIDEO_8514A_XGA_IOTRAP
  2113. This setting is used to directly access the Model 8514/A or XGA video.
  2114. Setting this to Off will make an application run slightly faster. It releases the 1MB of allo-
  2115. cated memory where video information is saved in the DOS session.
  2116. The default is Off
  2117. 40 OS/2 Performance Tuning  
  2118. ──── Page: 41 ────────────────────────────────
  2119.  
  2120.  
  2121. VIDEO_SWITCH_NOTIFICATION
  2122. Notifies a DOS graphics application about a switch between background and foreground.
  2123. When this setting is On, programs that monitor screen switching will save or redraw the
  2124. screen when the screen is switched.
  2125. The default is On.
  2126. DOS_FILES
  2127. Specifies the maximum number of file handles which may be opened in a VDM.
  2128. Setting this value higher than the default may improve performance for applications which
  2129. use a large number of files. For example, DBase IV requires a DOS_FILES setting of at
  2130. least 40. Setting it higher than necessary reduces the available memory. Refer to your
  2131. application documentation for the recommended value.
  2132. The default is 20. The range is 20 to 255.
  2133. VIDEO_FASTPASTE
  2134. The fast paste setting is used to increase the speed of input other than the keyboard (i.e.
  2135. character Cut and Paste transfers).
  2136. Set this to On to increase the character speed of Cut and Paste transfers. Pasting into a
  2137. DOS session or application will generally work. However, some applications can fail when
  2138. using fast pasting because they buffer key-strokes in an internal buffer, which can overflow.
  2139. The default is Off.
  2140. DOS_FCBS
  2141. Specifies the maximum number of file control blocks (FCBs) which may be opened by
  2142. applications running in the VDM.
  2143. Note that this setting affects only DOS applications which use file-sharing. Some applica-
  2144. tions use many FCBs, so this number should be set high. Refer to your application doc-
  2145. umentation for the recommended value.
  2146. The default is 16. The range is 0 to 255.
  2147. DOS_FCBS_KEEP
  2148. Specifies the number of FCBs that will be protected against automatic closure.
  2149. This setting specifies the number of FCBs that are protected against automatic closure.
  2150. This may improve application performance.
  2151. The default is 8. The range is 0 to 255.
  2152. DOS_BREAK
  2153. The break setting is used when you want OS/2 to check for the Ctrl+Break or Ctrl+C key
  2154. combinations while an application is running.
  2155. If you want to have the option to interrupt a DOS batch file running in a VDM in a faster
  2156. way, this setting should be turned on. However, DOS applications will run slower when
  2157. this setting is set to On.
  2158. The default is Off.
  2159. VIDEO_ROM_EMULATION
  2160. Controls the emulation of video functions like WriteChar, WriteTTY, and full-screen scroll
  2161. for BIOS Int10 processing.
  2162. What Else Can be Changed to Improve Performance? 41
  2163. ──── Page: 42 ────────────────────────────────
  2164.  
  2165.  
  2166. Leave this setting ON because the emulated functions enhance performance over most
  2167. manufacturers' ROM versions of the same functions.
  2168. Select Off only if video read-only memory (ROM) provides enhancements to these video
  2169. functions, or if your application uses Int10 functions which are not emulated.
  2170. The default is On.
  2171. Memory Tuning
  2172. The OS/2 2.x CONFIG.SYS file specifies the operating system configuration and installs device
  2173. drivers and other memory resident applications. The OS/2 2.x AUTOEXEC.BAT file is specific
  2174. to the functioning of the DOS session. To allocate additional memory to applications running in
  2175. a DOS session, some commands can be moved from the AUTOEXEC.BAT to settings. The
  2176. following describes what settings can be changed to maximize memory in a DOS session. Also
  2177. see the sections on CONFIG.SYS and AUTOEXEC.BAT.
  2178. DOS_HIGH
  2179. Determines whether DOS is loaded outside the 640K low memory address space. Loading
  2180. DOS into high memory allows more available memory for application code and data within
  2181. the 640KB address space.
  2182. The default is Off (DOS is loaded into low memory).
  2183. MEM_EXCLUDE_REGIONS
  2184. This setting is used to specify address ranges which should be protected from use by
  2185. EMS/XMS and direct access by applications. This setting is intended for experienced users
  2186. who understand the hardware.
  2187. Note that if these ranges are defined excessively, they will adversely impact the function and
  2188. performance of EMS and XMS services.
  2189. The default is blank.
  2190. MEM_INCLUDE_REGIONS
  2191. Specifies regions which should be made available to EMS/XMS. This setting is used to
  2192. specify some address ranges between RMSIZE and 1MB for use by EMS and XMS.
  2193. If there is a hardware adapter in this range which you know is not going to be used by a
  2194. particular VDM session, then the address range used by the adapter should be made avail-
  2195. able to EMS and XMS. This will improve the performance of EMS and XMS services.
  2196. The default is blank.
  2197. HW_ROM_TO_RAM
  2198. Copies the Basic Input/Output System (BIOS) from ROM to RAM.
  2199. When this setting is set to On, applications might run faster due to the fact that BIOS
  2200. services run slightly faster in RAM than in ROM.
  2201. The default is Off.
  2202. VIDEO_ONDEMAND_MEMORY
  2203. Reduces swap space requirements for full screen VDMs.
  2204. Selecting On allows a full screen VDM to run without pre-allocating a virtual video buffer
  2205. for high-resolution graphics modes. Using this setting does not prevent execution of
  2206. graphics application. It means that allocation of the buffer is delayed until it is needed.
  2207. 42 OS/2 Performance Tuning  
  2208. ──── Page: 43 ────────────────────────────────
  2209.  
  2210.  
  2211. This can save a substantial amount of memory/swap space, which might be important
  2212. under certain low-memory conditions. It also enables you to start a program quickly. If
  2213. the allocation of a virtual video buffer for a full screen VDM fails at the time the applica-
  2214. tion changes video modes, the sessions will be frozen and you must switch back to the shell
  2215. to free memory. Unless you are able to free memory from another session, you may be
  2216. unable to get the DOS application running again. This is a concern if the application con-
  2217. tains unsaved data.
  2218. The default is Off.
  2219. Performance considerations for DPMI:  DPMI provides direct access by DOS applications to
  2220. > 1 MB of memory in protect mode. There is one setting that can affect system performance.
  2221. DPMI_MEMORY_LIMIT
  2222. Defines the amount of DPMI available to a DOS session. This setting enables you to
  2223. specify the amount of DPMI memory needed for DOS applications on a per session basis.
  2224. The field for this setting contains the value in MBs ranging from 0 to 512.
  2225. The value may be 0 if a DOS application does not need DPMI.
  2226. The default value is 4MB.
  2227. Performance considerations for XMS:  XMS provides compatibility for DOS applications that
  2228. require XMS. There are three settings that can affect performance.
  2229. XMS_MEMORY_LIMIT
  2230. Specifies the amount of memory that a DOS session can allocate to XMS. This setting is
  2231. expressed in KB units, ranging from 0 to 16384.
  2232. Specifying a large number for the extended-memory limit can slow performance.
  2233. The default value is 2MB.
  2234. XMS_HANDLES
  2235. Specifies the number of XMS extended memory block (EMB) handles. A handle is used
  2236. with each XMS EMB. This number is required because XMS pre-allocates all the handle
  2237. spaces to be compatible with XMS specifications. This setting should be used only if an
  2238. application uses a large number of handles.
  2239. Reducing this number will reduce memory consumption. On the other hand, specifying a
  2240. large number of handles will increase memory consumption and adversely impact system
  2241. performance.
  2242. The default value is 32.
  2243. XMS_MINIMUM_HMA
  2244. Specifies the minimum High Memory Area (HMA) memory request allowed. This setting
  2245. allows fine tuning XMS. The High Memory Area is slightly less than 64KB in size. Only
  2246. one request can be handled in this area at a time. If a value is set, then only an application
  2247. that requests an equal or greater amount will be allowed access to this memory. Subse-
  2248. quent requests and requests smaller that the value set will not be satisfied.
  2249. The default value is zero, and is optimal in almost all conditions. The range is 0 to 63KB.
  2250. What Else Can be Changed to Improve Performance? 43
  2251. ──── Page: 44 ────────────────────────────────
  2252.  
  2253.  
  2254. Performance considerations for EMS:  OS/2 2.x provides full EMS support for DOS applica-
  2255. tions. As OS/2 2.x uses virtual memory to emulate the DOS EMS system, there is some degree
  2256. of performance degradation when running a DOS applications involving EMS, compared to
  2257. native DOS. Most of the overhead is due to the management of large data structures within the
  2258. virtual memory system. The advantage of using virtual memory to emulate DOS EMS is that it
  2259. allows large expanded memory to be supported with little limitation from physical memory. In
  2260. some cases, DOS applications may declare more expanded memory than the total size of the
  2261. physical memory.
  2262. The following settings affect EMS performance:
  2263. EMS_MEMORY_LIMIT
  2264. Defines the amount of EMS available to the DOS session. This setting is expressed in KB
  2265. units, ranging from 0 to 32768.
  2266. The value should be 0 if a DOS application does not need EMS. This might improve per-
  2267. formance. Programs generally state whether they use EMS on the box or in the manuals.
  2268. This setting enables you to limit the amount of EMS that an application reserves, which
  2269. prevents an application from allocating more memory than necessary. A limit that is too
  2270. high can slow performance.
  2271. The default value is 2MB. The range is 0 to 32768 in 16KB increments.
  2272. EMS_LOW_OS_MAP_REGION
  2273. Some programs can use remappable conventional memory. Others do not use this feature.
  2274. This setting allows advanced users to set the size of the remappable conventional memory
  2275. available in a VDM.
  2276. The default is 384KB. The range is 0 to 576 in 16KB increments.
  2277. EMS_HIGH_OS_MAP_REGION
  2278. In addition to the EMS page frame, some programs can use additional address ranges to
  2279. access expanded memory. This setting gives you the capability to adjust the size of the
  2280. additional EMS region.
  2281. The default is 32KB. The range is 0 to 96 in 16KB increments.
  2282.  
  2283. Improving Printing Performance
  2284. Printing performance can be tuned by changes to printer and job property settings, changes in
  2285. the CONFIG.SYS and by using the spooler settings. Some of these changes are generic and
  2286. affect all printing. Some of the changes affect only certain types of printing. Not all settings
  2287. listed in this section are available for all printers, but, if available, they do change the perform-
  2288. ance of printing on your system.
  2289. Printer Settings
  2290. Every object (including the print object) has settings. A user can adjust these print settings to
  2291. improve performance. In OS/2 there are Job Properties and Printer Properties. Job Properties
  2292. work in conjunction with the printer driver object's Printer Properties. These settings can be
  2293. found in the printer object notebook. Not all settings are supported by all printers. Printer
  2294. driver settings include job properties such as orientation, fonts and resolution. Queue options
  2295. 44 OS/2 Performance Tuning  
  2296. ──── Page: 45 ────────────────────────────────
  2297.  
  2298.  
  2299. include printer specific format and print while spooling. Print options includes start and stop
  2300. times.
  2301. The choices you make for both printer properties and job properties will be overwritten by appli-
  2302. cations that permit the specification of job properties on a per-job basis. In this case you must
  2303. check that the options are chosen correctly within your application.
  2304. The following are properties that affect performance.
  2305. Memory (KB)
  2306. By specifying the amount of memory your printer has, the printer driver can determine if
  2307. compression is to be used. Compression reduces the amount of data that has to go to the
  2308. printer, improving performance.
  2309. Resolution
  2310. This option allows you to vary the resolution of your graphics printing. The selections are
  2311. usually presented in terms of "dpi" (dots per inch). The higher the number the better
  2312. quality your print will be. The drawback is that it will also take longer to print. However,
  2313. you can use a low number for draft output and select the highest number for printing the
  2314. finished version. A printer's memory size can limit the resolution you can choose.
  2315. Compression
  2316. This option compresses graphic print data which has the advantage of faster printing for
  2317. most jobs that contain graphics. Two common types of compression are G4 and TIFF
  2318. Packbit Byte.
  2319. ■ G4
  2320. This improves the printing of graphic data that does not have large numbers of alter-
  2321. nating bits, for example, large areas that are filled with solid color. G4 is available on
  2322. all IBM 4029 printers and IBM 4019 models that support Form Feed Time Out. The
  2323. 4019 models do not support G4 when printing in landscape mode.
  2324. ■ TIFF
  2325. This improves the printing of graphic data that consists mostly of repeating bytes, for
  2326. example, large areas having one type of fill pattern.
  2327. Fast System Fonts
  2328. You can elect, via this option, to download (copy) OS/2 system bitmap fonts, to the
  2329. memory of your printer. They will be copied to the printer as a device bitmap font. The
  2330. advantage is that a device font uses a smaller spool file and prints quicker than a font
  2331. printed in raster (graphic font) form.
  2332. If overlaying system fonts with graphics, or if print output differs from that shown on the
  2333. screen, then disable this option.
  2334. Printer Patterns
  2335. Pattern filling commands will be directly sent to the printer instead of asking the operating
  2336. system to perform the pattern filling. This reduces the spool file size for pages that contain
  2337. dense graphics (shaded and patterned rectangular areas), and large scaled text. These
  2338. improve printing speed. This option should not be used if printer output patterns must
  2339. exactly match patterns displayed on your screen, nor if there are overlapping shaded or
  2340. patterned graphics in your document.
  2341. What Else Can be Changed to Improve Performance? 45
  2342. ──── Page: 46 ────────────────────────────────
  2343.  
  2344.  
  2345. HP-GL/2
  2346. This option enables HP-GL/2 output. This allows the supporting of many more graphics
  2347. commands in the printer. This will allow faster printing of graphic objects such as lines and
  2348. circles. This also reduces the spool file size and helps to print more quickly. For faster
  2349. output, enable Page Protection (which may require additional printer memory) on both the
  2350. printer and Printer Properties dialog and use HP-GL/2.
  2351. Large Buffers
  2352. Large Buffers allow the printer drivers to use more of OS/2's memory in order to speed up
  2353. printing. Around 4 MB is used for printing so system memory should be at least 8 MB. If
  2354. this option is set to OFF, then smaller memory requests, around 1 MB will be used con-
  2355. serving memory. If you have less than 8MB of system memory, then it is better not to use
  2356. this option.
  2357. Print While Spooling
  2358. The Print while spooling option allows the printer to start processing the print job before
  2359. the application has finished sending the entire job to the spool queue. Print jobs formatted
  2360. in printer-specific format (PM_Q_RAW) can speed up printing by using Print While
  2361. Spooling.
  2362. This "threading" will increase throughput but could cause timeout problems while printing
  2363. large files with images. To solve this problem you can disable the Print While Spooling
  2364. option or you can increase the timeout value setting in the port object.
  2365. The default is On.
  2366. Start and Stop Time
  2367. Start Time and Stop Time can be entered for each print object. For example, time settings
  2368. for "lunch time", 12:00p - 12:50p, can be used which enables printing when you are not
  2369. there.
  2370. Fonts Impact Print Speed
  2371. Fonts can be stored in several places. They can be built into the printer, housed on a cartridge
  2372. that's plugged into the printer, or reside on your system and be downloaded to the printer as
  2373. needed. When you use printer-based fonts, whether built-in or on a cartridge, you can print
  2374. faster than if you first have to download them.
  2375. Fonts are either bitmapped or scalable. With a bitmapped font, each character is stored as a
  2376. collection of individual pixels, so you need a separate definition for each point size. Scalable
  2377. fonts, also called outline fonts, are stored as algorithms.This means that the system can generate
  2378. the font in any size using the algorithm. Generating scalable fonts takes time. If you're using
  2379. one font in just one size to format an entire document, the extra time may be hardly noticeable.
  2380. If you're using a lot of different fonts, the time may be considerable. You can use any combina-
  2381. tion of these font variations, bitmapped or scalable, stored in the printer or in the computer.
  2382. Clearly, you'll get the fastest printing with bitmapped fonts stored in the printer (see Fast System
  2383. Fonts), and the slowest with scalable fonts stored in your computer.
  2384. Despite the speed disadvantage, there are strong arguments for storing fonts on your computer
  2385. and for using scalable rather than bitmapped fonts. First, most printers have room for only one
  2386. or two font cartridges. So if you want to add new fonts to your library, you have to switch
  2387. cartridges when you want to use them. It's easier and much more efficient to store them on
  2388. your hard disk, where they're all available at the same time. An advantage to scalable fonts is
  2389. 46 OS/2 Performance Tuning  
  2390. ──── Page: 47 ────────────────────────────────
  2391.  
  2392.  
  2393. that you're guaranteed to have the typeface available in any size you'll ever need. Scalable fonts
  2394. require far less storage space on-disk, or in your printer, than a set of equivalent bitmapped fonts
  2395. in a range of sizes.
  2396. OS/2 Spooled Printing
  2397. Printing through the spooler will provide the best performance on your system. Here are some
  2398. settings that can affect printing performance, with suggestions.
  2399. OS/2 Spooler
  2400. For optimal performance, it is recommended that the OS/2 spooler always be enabled. The
  2401. spooler provides flexibility while optimizing the use of the system's print resources. The
  2402. OS/2 spooler can print a job in the background while you continue using the application.
  2403. You can now set the spooler's print priority via the spooler object setting.
  2404. The OS/2 spooler can support a number of printers simultaneously and can be configured
  2405. so that jobs on a single queue can be shared among all the printers. This load balancing,
  2406. called pooling, is particularly important in server environments and can be achieved without
  2407. the knowledge of your applications.
  2408. Jobs can also be reprioritized while they are waiting in the queue. For example, an urgent
  2409. job can be given a higher priority than other queued jobs or can be selected to print next,
  2410. see Changing a Print Job's Priority.
  2411. Spool Path
  2412. If print jobs are very large, you may assign a different spooler path (drive or path) that has
  2413. more space than your install drive. If your print usage is heavy, you want to place the
  2414. spool file on your fastest hard disk. The spool path is a setting of the spooler object.
  2415. Print Priority
  2416. The OS/2 spooler now has a setting called Print Priority. This allows you to vary the
  2417. spooler's priority from low to high. The default setting allows printing to be balanced with
  2418. your use of the desktop and your applications. If your application appears to be printing
  2419. slowly, you may want to choose a slightly higher value so that printing will complete faster.
  2420. If you choose a higher value, OS/2 will let print jobs print faster, but this may cause your
  2421. desktop or applications to respond slower. In a print environment where very little on
  2422. screen work is performed or where print performance is of utmost concern, you should
  2423. increase the value. Priority changes become effective when you close the spooler object
  2424. folder.
  2425. The default is 95.
  2426. Spool File Formats
  2427. There are two formats of spool file data. They are the standard (PM_Q_STD) or the raw
  2428. (PM_Q_RAW) spool file data formats. The standard format is much preferred as it con-
  2429. sumes much less disk space than the raw format file. Having less data to send across the
  2430. parallel port saves time in getting the data into the printer's buffer. Network traffic is
  2431. reduced if printing across a LAN.
  2432. Changing a Print Job's Priority
  2433. Changing a print job's priority will cause that particular print job to print before any other
  2434. queued job. To do this, click on the print job you wish to change. Use mouse button 2 to
  2435. display its context menu, and then select print next.
  2436. What Else Can be Changed to Improve Performance? 47
  2437. ──── Page: 48 ────────────────────────────────
  2438.  
  2439.  
  2440. You can change the priority of a print job so that it can print before or after other jobs
  2441. queued. To do this, click on the print job you wish to re-prioritize. Use mouse button 2 to
  2442. display its context menu. Open Settings and change the value in the Priority field.
  2443. Note: Once a job has started printing, it is no longer possible to change its priority, the
  2444. Settings option is not available.
  2445. Printing from DOS
  2446. While there are no performance specific tuning options, there are two things to check.
  2447. Do not use the LPTDD.SYS device driver unless necessary. (The DOS application is using
  2448. INT 21h and is not closing the LPT1 handle). This will slow down your DOS printing per-
  2449. formance.
  2450. The other is the DOS setting called PRINT_TIMEOUT. This is useful for DOS applications
  2451. which do not explicitly close their print jobs. This is the time that OS/2 waits before forcing
  2452. a print job to the printer. A timeout of 1 or 2 seconds is sufficient for small print jobs, such
  2453. as copying the contents of the screen. However, when printing large files, formatting docu-
  2454. ments, or running calculations, the value must be set high enough to allow all print results to
  2455. reach the spooler before the time limit expires. If not, results go in two or more spool files
  2456. instead of one, and the resulting output may be unsatisfactory. The default time is 15
  2457. seconds.
  2458. Printing from WIN-OS/2
  2459. You should always keep the OS/2 Spooler enabled to get the most benefit out of the OS/2 print
  2460. subsystem. This will assure that even from the WIN-OS/2 environment, printing is done in a
  2461. separate thread. You should also keep the WIN-OS/2 Print Manager disabled unless you are
  2462. using a COM attached printer. That is, always keep the WIN-OS/2 Print Manager icon closed.
  2463. The OS/2 Spooler allows multithreading and can deal with huge print files, even while you work
  2464. in WIN-OS/2. Print jobs sent from any WIN-OS/2 application to a parallel attached printer
  2465. won't show up in the WIN-OS/2 Print Manager. In this case if you need to view or manipulate
  2466. these print jobs, use the correct OS/2 printer object on the Workplace Desktop.
  2467. ■ WIN-OS/2 Ports and Drivers
  2468. You should direct application output to LPTn.OS2 (where n is 1,2,3) wher possible. LPTn
  2469. refers to the physical printer port. LPTn.OS2 is a file which is intercepted by WIN-OS/2 and
  2470. routed directly to the spooler. This will provide improved performance over the standard
  2471. LPT port assignments.
  2472. You should always install equivalent printer queues in the OS/2 Desktop for your WIN-OS/2
  2473. printers even if you are only going to print to them from WIN-OS/2. If there is no equiv-
  2474. alent OS/2 printer driver available then use the IBMNULL.DRV printer driver found in the
  2475. OS/2 printer object.
  2476. ■ WIN-OS/2 COM Attached Printer
  2477. If you have a COM attached printer and you would like to have your print jobs spooled,
  2478. then enable the WIN-OS/2 Print Manager. This should be the only reason for you to use
  2479. the WIN-OS/2 Print Manager. Remember that print jobs directed to LPTn.OS2 and LPTn
  2480. will still go through the OS/2 Spooler.
  2481. 48 OS/2 Performance Tuning  
  2482. ──── Page: 49 ────────────────────────────────
  2483.  
  2484.  
  2485.  
  2486. Improving COM Performance
  2487. Changes can be made in both CONFIG.SYS and DOS_SETTINGS that can affect the perform-
  2488. ance of communications applications. You must check the settings as they may affect other
  2489. applications running concurrently. In general, the speed of your system will also affect the
  2490. ability of your communications program to achieve high baud rates and to multitask. CPU
  2491. intensive and disk intensive foreground applications/operations will affect the performance of
  2492. your communications application when it is in the background.
  2493. The following settings will affect the performance of communications applications.
  2494. PRIORITY_DISK_IO
  2495. Changing PRIORITY_DISK_IO to NO in CONFIG.SYS will improve the performance of
  2496. communications applications running in the background that are doing disk I/O, if there is
  2497. foreground work being performed that is also doing disk I/O. See the CONFIG.SYS, page
  2498. 29 for additional information.
  2499. INT_DURING_IO
  2500. This DOS setting set to ON allows interrupts to be handled during file reads and writes.
  2501. This setting turned ON may help the performance of your communications program that
  2502. performs disk I/O that requires long read and write operations.
  2503. See DOS Settings, page 39 for additional information.
  2504. IDLE_SENSITIVITY
  2505. This DOS setting, set to 100, turns idle detection off, and the application can now poll
  2506. without operating system intervention.
  2507. See DOS Settings, page 39 for additional information.
  2508. HW_ROM_TO_RAM
  2509. This DOS setting set to ON may speed up your DOS communication program because it
  2510. allows the operating system to copy BIOS from ROM to faster RAM which might run the
  2511. application faster because BIOS services will run faster in fast RAM than slow ROM.
  2512. See DOS settings, page 42 for additional information.
  2513. What Else Can be Changed to Improve Performance? 49
  2514. ──── Page: 50 ────────────────────────────────
  2515.  
  2516.  
  2517.  
  2518. Does the Hardware Impact Performance on OS/2 ?
  2519. Performance of any system can only be as good as the hardware and software work together.
  2520. Some hardware advantages must be exploited by the software to provide the added function or
  2521. improved performance. OS/2 attempts to exploit these advantages. Other hardware advantages
  2522. provide additional function or improved performance without requiring specific software. To
  2523. fully cover improving performance of OS/2, some general hardware information is included here.
  2524. The three main areas where performance for any system can be bottlenecked are memory, disk
  2525. and CPU.
  2526. Memory bottlenecks occur when attempting to run more programs in memory than there is
  2527. actual system memory. The hardware allows operating systems to execute beyond the real
  2528. system memory by allowing paging or swapping Both paging and swapping allow code and data
  2529. to be moved from memory to disk. Paging is the term used in virtual memory systems, and
  2530. swapping is the term used in segmented systems. As paging or swapping continue, system per-
  2531. formance degrades as access time to code or data written to disk now includes the disk access
  2532. time required to read back into memory information that was moved out. It probably also
  2533. required moving off to disk some information to make room for the returning information. This
  2534. activity can cause extremely poor performance.
  2535. Disk bottlenecks occur when the operating system or application(s) require large numbers of disk
  2536. accesses quickly. Since the hard disk must complete one I/O request before starting the next
  2537. request, multiple requests can start to queue, causing poor performance. Between I/O requests
  2538. the hard disk must move the head from one location to the next. Hard drives use average seek
  2539. time to show overall performance for I/O operations. Smaller seek times provide faster system
  2540. response times for I/O requests.
  2541. CPU bottlenecks occur when multiple concurrent tasks require processor time. Since operating
  2542. systems like OS/2 allow concurrent processing among multiple tasks, the likelihood of becoming
  2543. CPU constrained is increased. Additional processor speed (described in megahertz) will allow
  2544. faster completion of CPU requests.
  2545. As with any operating system, hardware limitations or advantages affect the overall system per-
  2546. formance. Processor speed, memory speed, hard drive access time, instruction caches and data
  2547. caches all influence performance. More specific information on the impacts follow. Generally
  2548. speaking, just adding more memory may not be the answer to improving performance on a
  2549. system. Specifically on OS/2 2.1, the following generalities are true. On an 80386SX system,
  2550. greater performance overall will be realized by upgrading to an SLC, an 80386DX or an 80486
  2551. (or higher) processor. For disk I/O bound applications, especially where the I/O requests are
  2552. large (data bases, word processors) or small but sequential (spread sheets, compilers), upgrading
  2553. to a hard disk that has on-board caching will improve performance. If a system is memory
  2554. overcommitted (swap file is > 4 times system memory), performance will improve by adding
  2555. more memory.
  2556. 50 OS/2 Performance Tuning  
  2557. ──── Page: 51 ────────────────────────────────
  2558.  
  2559.  
  2560. CPU
  2561. Upgrading the CPU will improve performance in instruction intensive applications (graphical
  2562. intensive applications like CAD, computational programs like a spread sheet recalculation). Per-
  2563. formance improvements vary based on the upgrade. Upgrading a PS/2 Model 56 SX or 57 SX
  2564. to a 386SLC can double the performance, and moving to a 486SLC can improve performance by
  2565. 4 times for compute bound tasks. The 80386SX has an internal data bus of 16-bits, therefore
  2566. 32-bit instructions will become two instructions internally. Without any instruction caching to
  2567. buffer this, 32-bit instructions will perform slower than 16-bit. This is the basic reason that OS/2
  2568. 2.1 on an 80386SX system does not show the same performance improvements that other
  2569. processors show.
  2570. If you have a system where your performance is not acceptable, and the system is an 80386SX,
  2571. upgrading the CPU will provide performance improvements. Adding memory on 80386SX
  2572. systems does not appreciably improve the overall system performance. If the additional memory
  2573. is not on the system board, then performance may be slowed even further.
  2574. Memory
  2575. Memory is generally available on the system board, in SIMMs and/or on adapter cards. The
  2576. speed of the memory is expressed in nanoseconds, and the lower the value the better.
  2577. While memory speed itself is important (faster memory provides faster access to information
  2578. stored there), installation is also. Memory on the system board (or planar) can be accessed by
  2579. the processor faster than memory located on an adapter card. The adapter card memory
  2580. requires access through the system bus, slowing down the time from processor to memory.
  2581. Having adequate memory in a system will also reduce the disk access because paging or swap-
  2582. ping is decreased. If OS/2 does not have to handle paging I/O requests along with application
  2583. I/O requests, system performance will improve. If the swap file is large, and changing from one
  2584. application to another results in I/O requests, the system would benefit from additional memory.
  2585. Displays
  2586. OS/2 2.1 supports the displays of VGA, XGA, SVGA, 8514, CGA, and EGA. Video Graphics
  2587. Array (VGA) was introduced by IBM in 1987 as the base video for all IBM PS/2 systems. At
  2588. the same time, the IBM 8514 Display Adapter/A was introduced to meet customer requirement
  2589. for high-resolution graphics. Extended Graphics Array (XGA) is the latest IBM solution to high-
  2590. resolution graphics. It has employed many new technology advances and is a good choice for
  2591. high performance display. To compete with IBM's VGA standard, many manufacturers of video
  2592. adapter cards formed the Video Electronics Standards Association (VESA) to promote higher-
  2593. resolution, more-color displays. Video modes supported by VESA are often called Super VGA
  2594. (SVGA). Though CGA and EGA are supported by OS/2 2.1, due to the limited display capabili-
  2595. ties, they are not recommended.
  2596. Does the Hardware Impact Performance on OS/2 ? 51
  2597. ──── Page: 52 ────────────────────────────────
  2598.  
  2599.  
  2600. VGA
  2601. VGA has existed long enough that almost every video adapter card and monitor is highly com-
  2602. patible with the VGA specifications. The resolutions available in OS/2 2.1 are 640 x 480 x 16
  2603. colors, and 320 x 200 x 256 colors. VGA mode is also supported on XGA and SVGA display
  2604. adapters.
  2605. SVGA
  2606. OS/2 2.1 supports several SVGA chip sets. See ╚Display Selection╝ on page 13 
  2607. ET4000 is widely used in display adapters, e.g., ProDesigner IIs by Orchid Technology Inc.,
  2608. PowerGraph VGA by STB Systems, Inc., and some IBM PS/1 and ValuePoint systems. Com-
  2609. pared with XGA subsystems, these SVGA display adapters provide an inexpensive alternative to
  2610. high-resolution graphics, but the performance is not as good as XGA. The SVGA drivers
  2611. shipped with OS/2 2.1 are 256 color drivers with three different resolutions. With 0.5 MB
  2612. VRAM, you can only run in 640 x 480 x 256 color mode. 1.0 MB VRAM is required to run in
  2613. 800 x 600 x 256 and 1024 x 768 x 256 color modes. As you might expect, higher resolutions lead
  2614. to slower performances.
  2615. Additionally, the OS/2 SVGA display drivers are generic device drivers, and are not optimized for
  2616. any particular video adapter. The supplied drivers may be used with adapters that have the
  2617. supported chip sets. The manufacturer's driver may be optimized to provide better video per-
  2618. formance on their specific hardware. However, the vendor drivers may not support all the
  2619. functionality of the OS/2 drivers, such as seamless, OS/2 Palette Management, Multimedia
  2620. support, etc.
  2621. XGA & XGA-2
  2622. XGA is IBM's current standard for high-resolution graphics. Instead of the Dynamic RAM
  2623. (DRAM) used in most VGA subsystems, XGA has employed the Video RAM (VRAM) tech-
  2624. nology, which allows the XGA display controller update the video data in the VRAM simultane-
  2625. ously while the VRAM is busily refreshing the display. With the new Hardware Drawing Assist
  2626. functions, the XGA display controller can directly draw the data stored in video display buffer.
  2627. These functions allow lines to be drawn, blocks of data to be moved (Bit-Blt), and areas of color
  2628. to be filled in on the display. With 0.5 MB VRAM, XGA can run in 640 x 400 x 256, 640 x 480
  2629. x 256, and 1024 x 768 x 16 color modes. It requires 1.0 MB VRAM to run in 1024 x 768 x 256
  2630. color mode.
  2631. The new XGA-2 subsystem offers more resolutions and faster performance than the original
  2632. XGA. The major hardware improvements include external polling, non-interlace support, and
  2633. faster VRAM. With external polling, graphics coprocessor status can be retrieved without inter-
  2634. rupting the current processing.
  2635. The new XGA driver in OS/2 2.1 has made use of this new technology and performance is
  2636. greatly enhanced. The ability of XGA-2 to display high resolution screens at non-interlaced
  2637. refresh rates of up to 75Hz reduces flicker while enhancing usability and providing potential pro-
  2638. ductivity gains. With the XGA-2 subsystem, OS/2 2.1 can display up to 65,536 colors in low
  2639. resolution modes (640 x 480 and 640 x 400) as well as all the resolutions supported in XGA.
  2640. 52 OS/2 Performance Tuning  
  2641. ──── Page: 53 ────────────────────────────────
  2642.  
  2643.  
  2644. 8514
  2645. 8514 is IBM's old standard for high-resolution graphics. Several non-IBM display adapters, e.g.,
  2646. 8514 Ultra by ATI, also provide 8514 support. The driver shipped with OS/2 2.1 is the 16-bit
  2647. driver shipped with OS/2 2.0. You can only run in 1024 x 768 x 256 color mode. With the 16-bit
  2648. driver and the new 32-bit graphics engine, conversion overhead between these two components is
  2649. inevitable. The performance is slightly slower when compared with OS/2 2.0.
  2650. Hard Drives
  2651. Hard drives, or fixed disks, affect the performance of boot time and application load time, as well
  2652. as the performance of I/O intensive applications. Hard disk speed is expressed in average seek
  2653. time, and the lower number the better. Faster seek times reduces the amount of time an oper-
  2654. ating system or application must wait until the requested data is returned. The following
  2655. example shows information on 3 SCSI hard disks. Notice the increased transfer rate on the disk
  2656. with only 1 ms faster average seek time.
  2657. Formatted Capacity(MB) 40 80 160
  2658. Average Seek Time(ms) 17 17 16
  2659. Data Transfer rate(MB/sec 1.35 1.35 1.50
  2660. Average Latency(ms) 8.3 8.3 8.3
  2661. Sector interleave 1:1 1:1 1:1
  2662. Interface SCSI SCSI SCSI
  2663. When upgrading your system, check the average seek time of the hard disk. Be certain to weigh
  2664. larger disk space and average seek time against cost to determine the best hard disk for your
  2665. system.
  2666. Hard Disk Caches
  2667. Hard disks or disk adapters can provide caching for I/O requests. Generally, an entire track is
  2668. read into the cache memory and the data requested is transferred from that memory into system
  2669. memory. Because an entire track has been read, there is less loss in head movement and rota-
  2670. tional delay. Additionally, the next I/O request may be satisfied from the hard disk cache and the
  2671. disk access time is removed. The greatest performance for cached DASD is seen in sequential
  2672. I/O requests. Random, small size requests also see an advantage if more than 1/3 of the requests
  2673. can be satisfied from the cache rather than reading from the disk. This is determined by the way
  2674. the application accesses the data, and is generally not controlled by you.
  2675. When upgrading your system, cached hard disks will generally provide petter performance
  2676. overall.
  2677. Multiple Hard Disks
  2678. Some hard drive types cannot support multiple hard disks. Of the ones that do, only SCSI
  2679. drives can handle concurrent I/O requests in multiple drives. This means that on a system with
  2680. 3 SCSI drives, OS/2 can potentially overlap 3 I/O requests (one per drive). This improves per-
  2681. formance in I/O intensive scenarios when disk requests are correctly balanced.
  2682. Does the Hardware Impact Performance on OS/2 ? 53
  2683. ──── Page: 54 ────────────────────────────────
  2684.  
  2685.  
  2686. Parallel Printing
  2687. OS/2 provides support for advanced parallel port hardware. If the machine supports Micro
  2688. Channel and uses Direct Memory Access (DMA) for its parallel port, then OS/2's Print Device
  2689. Driver (PRINT02.SYS) significantly improves the speed in which data is sent to the printer, in
  2690. excess of 100 KB per second. This allows OS/2 to improve print performance as well as
  2691. spending more time running applications because of the DMA's quickness.
  2692. Communications
  2693. Machines with a buffered UART (for example NS16550A) will have better performance than
  2694. machines without buffering (for example NS16450).
  2695. 54 OS/2 Performance Tuning  
  2696. ──── Page: 55 ────────────────────────────────
  2697.  
  2698.  
  2699.  
  2700. Appendix A. Top Tips to Improve Performance
  2701. This is a list of the top 13 performance tips for OS/2 2.1 MEMORY CONSTRAINED (4 meg)
  2702. and/or 80386SX systems.
  2703. 1. Disable Animation (page 18)
  2704. 2. Eliminate all extraneous processes (clock, CPU meters) (page 19)
  2705. 3. Only use FAT file system (page 24)
  2706. 4. Remove IFS= line for HPFS (if not used) (page 29)
  2707. 5. Upgrade processor and/or memory as needed (page 50)
  2708. 6. Minimize apps & folders between uses (rather than close and reopen) (page 19)
  2709. 7. Remove unused device drivers from CONFIG.SYS (page 39)
  2710. 8. Leave diskcache at 128 KB (page 28)
  2711. 9. Limit the number of concurrent applications (page 19)
  2712. 10. Limit background processing when working in the foreground (page 19)
  2713. 11. Limit communication BAUD rate (page 38)
  2714. 12. Limit concurrent spooling (page 47)
  2715. 13. Optimize all paths in CONFIG.SYS (page 27)
  2716. This is a list of the top 7 performance tips for OS/2 2.1 SMALL DASD systems.
  2717. 1. Increase Available Memory (page 19)
  2718. 2. Only use FAT file system (page 24)
  2719. 3. Remove IFS= line for HPFS (if not used) (page 29)
  2720. 4. Add memory (page 50)
  2721. 5. Leave diskcache at 128 KB (page 28)
  2722. 6. Spool from 1 Application at a time (page 47)
  2723. 7. Use List of Tips for Memory Constrained
  2724. This is a list of the top 7 performance tips for Windows applications
  2725. 1. Tune WIN-OS/2 settings (page 33)
  2726. 2. Tune DOS session settings (page 37)
  2727. 3. Run multiple applications in one session (common) (page 35)
  2728. 4. Leave the Windows Spooler Disabled (page 48)
  2729. 5. Verify Adequate Amount of DPMI Memory (page 37)
  2730. 6. Reduce EMS & XMS memory allocations to 64K (page 35)
  2731. 7. Start Applications from the Icons (page 19)
  2732. This is a list of the top 8 tips for large, multitasking systems
  2733. 1. Verify the swap file is the correct size at boot time. (page 20)
  2734. 2. Use HPFS on large, busy disks. (page 8)
  2735. 3. Tune the file system caches(use SPM/2) (page 24 & page 28)
  2736. 4. Tune DOS and Windows session settings (page 33 & page 37)
  2737. 5. Use 32-bit applications (page 4)
  2738. 6. Startup LAN and Comm from their Directory (page 19)
  2739. 7. Replace Startup.cmd with the Startup Folder (page 19)
  2740. 8. Optimize the Desktop
  2741. Appendix A. Top Tips to Improve Performance 55
  2742. ──── Page: 56 ────────────────────────────────
  2743.  
  2744.  
  2745.  
  2746. Appendix B. Application Performance Measurements
  2747. The charts for this appendix will not be available until after OS/2 2.1 ships and the results are
  2748. collected and charted. Look to IBM market tools and on CompuServe for these files.
  2749. 56 OS/2 Performance Tuning  
  2750. ──── Page: 57 ────────────────────────────────
  2751.  
  2752.  
  2753.  
  2754. Appendix C. Display Driver Performance
  2755. The charts for this appendix will not be available until after OS/2 2.1 ships and the results are
  2756. collected and charted. Look to IBM market tools and on CompuServe for these files.
  2757. Appendix C. Display Driver Performance 57
  2758. ──── Page: 58 ────────────────────────────────
  2759.  
  2760.  
  2761.  
  2762. Appendix D. Removing Features
  2763. Sometimes, features are installed and later you would like to move them off to a server to reduce
  2764. disk requirements, or you may wish to remove them. Here is a list of the files associated with
  2765. some of the features and applets that can be deleted from your hard drive.
  2766. ■ Advanced Power Management (APM)
  2767. Used on on those systems that contain the required hardware, usually notebook type
  2768. systems.
  2769. \OS2\APM.SYS
  2770. ■ Bitmaps
  2771. These are extra bitmaps provided for background display.
  2772. \OS2\BITMAP\SWAN.BGA
  2773. \OS2\BITMAP\LIGHTHOU.VGA
  2774. ■ CID
  2775. These files are used for LAN installation of OS/2.
  2776. \OS2\INSTALL\SEDISK.EXE \OS2\INSTALL\SEINST.EXE
  2777. \OS2\INSTALL\SEIMAGE.EXE \OS2\INSTALL\SEMAINT.EXE
  2778. ■ Command Reference
  2779. This file is the system command reference (on-line help).
  2780. \OS2\BOOK\CMDREF.INF
  2781. ■ High Performance File System
  2782. These are the files associated with HPFS.
  2783. \OS2\CACHE.EXE \OS2\DLL\STARTLW.DLL
  2784. \OS2\HPFS.IFS \OS2\DLL\UHPFS.DLL
  2785. ■ Linker
  2786. The linker files are used by application developers to link compiled/assembled files into pro-
  2787. grams. End users not developing applications might wish to delete these files.
  2788. \OS2\RCPP.ERR \OS2\RC.EXE
  2789. \OS2\LINK.EXE \OS2\RCPP.EXE
  2790. \OS2\LINK386.EXE
  2791. ■ PCMCIA Support
  2792. PCMCIA support may not be needed on your system. You can remove this file.
  2793. 58 OS/2 Performance Tuning  
  2794. ──── Page: 59 ────────────────────────────────
  2795.  
  2796.  
  2797. \OS2\PCMCIA.SYS
  2798. ■ REXX
  2799. End users that do not need REXX support can delete these files.
  2800. Note:  REXX support is required for IBM Communication Manager Support.
  2801. \OS2\REXXTRY.CMD \OS2\DLL\PMREXX.DLL
  2802. \OS2\PMREXX.EXE \OS2\DLL\REXX.DLL
  2803. \OS2\RXQUEUE.EXE \OS2\DLL\REXXAPI.DLL
  2804. \OS2\RXSUBCOM.EXE \OS2\DLL\REXXINIT.DLL
  2805. \OS2\REX.MSG \OS2\DLL\REXXUTIL.DLL
  2806. \OS2\REXH.MSG \OS2\HELP\PMREXX.HLP
  2807. \OS2\BOOK\REXX.INF
  2808. ■ RIPL
  2809. These files are used for remote IPL.
  2810. \OS2\HELP\RIPLINST.HLP
  2811. \OS2\INSTALL\RIPLINST.EXE
  2812. ■ Tutorial
  2813. These file are used by the tutorial. If you have completed the tutorial and would like to
  2814. delete it, you can remove these files.
  2815. \OS2\TUTORIAL.EXE \OS2\HELP\TUTORIAL.HLP
  2816. \OS2\DLL\TUTDLL.DLL
  2817. ■ Chess
  2818. These are the files for the chess applet.
  2819. \OS2\APPS\OS2CHESS.BIN \OS2\APPS\DLL\CHESSAI.DLL
  2820. \OS2\APPS\OS2CHESS.EXE \OS2\HELP\OS2CHESS.HLP
  2821. ■ EPM
  2822. These are the files for the enhanced editor applet.
  2823. \OS2\APPS\BOX.EX \OS2\APPS\MATHLIB.EX
  2824. \OS2\APPS\DRAW.EX \OS2\APPS\PUT.EX
  2825. \OS2\APPS\E3EMUL.EX \OS2\APPS\EPM.EXE
  2826. \OS2\APPS\EPM.EX \OS2\APPS\DLL\ETKE551.DLL
  2827. \OS2\APPS\EPMLEX.EX \OS2\APPS\DLL\ETKR551.DLL
  2828. \OS2\APPS\EXTRA.EX \OS2\APPS\DLL\ETKTHNK.DLL
  2829. \OS2\APPS\GET.EX \OS2\HELP\EPM.HLP
  2830. \OS2\APPS\HELP.EX \OS2\HELP\EPMHELP.QHL
  2831. ■ Jigsaw
  2832. These are the files for the jigsaw applet.
  2833. Appendix D. Removing Features 59
  2834. ──── Page: 60 ────────────────────────────────
  2835.  
  2836.  
  2837. \OS2\APPS\JIGSAW.EXE
  2838. \OS2\HELP\JIGSAW.HLP
  2839. ■ Klondike
  2840. These are the files for klondike (solitaire).
  2841. \OS2\APPS\CARDSYM.FON \OS2\DLL\KLONBGA.DLL
  2842. \OS2\APPS\KLONDIKE.EXE \OS2\HELP\KLONDIKE.HLP
  2843. ■ NEKO
  2844. These are the files for neko (the cat).
  2845. \OS2\APPS\NEKO.EXE \OS2\HELP\NEKO.HLP
  2846. \OS2\DLL\NEKO.DLL
  2847. ■ PICVIEW
  2848. These are the files for picview.
  2849. \OS2\APPS\PICVIEW.EXE \OS2\HELP\PICVIEW.HLP
  2850. \OS2\APPS\DLL\PICVIEW.DLL
  2851. ■ PMChart
  2852. These are the files for the PM Chart productivity aid.
  2853. \OS2\APPS\FASHION.DAT \OS2\APPS\INVEST.GRF
  2854. \OS2\APPS\GREEN.DAT \OS2\APPS\DLL\MGXLIB.DLL
  2855. \OS2\APPS\INVEST.DAT \OS2\APPS\DLL\MGXVBM.DLL
  2856. \OS2\APPS\PMCHART.EXE \OS2\APPS\DLL\PMFID.DLL
  2857. \OS2\APPS\FASHION.GRF \OS2\HELP\PMCHART.HLP
  2858. \OS2\APPS\GREEN.GRF
  2859. ■ PM Diary
  2860. These are the files for the PM Diary productivity aid.
  2861. \OS2\APPS\PMDALARM.EXE \OS2\APPS\PMDTODO.EXE
  2862. \OS2\APPS\PMDCALC.EXE \OS2\APPS\PMDTUNE.EXE
  2863. \OS2\APPS\PMDCALEN.EXE \OS2\APPS\PMMBASE.EXE
  2864. \OS2\APPS\PMDDARC.EXE \OS2\APPS\PMSPREAD.EXE
  2865. \OS2\APPS\PMDDIARY.EXE \OS2\APPS\PMSTICKY.EXE
  2866. \OS2\APPS\PMDLIST.EXE \OS2\APPS\DLL\PMDIARY.DLL
  2867. \OS2\APPS\PMDMONTH.EXE \OS2\APPS\DLL\PMDIARYF.DLL
  2868. \OS2\APPS\PMDNOTE.EXE \OS2\APPS\DLL\PMSTICKD.DLL
  2869. \OS2\APPS\PMDTARC.EXE \OS2\HELP\PMDIARY.HLP
  2870. ■ PM Seek
  2871. These are the files for the PM Seek productivity aid.
  2872. \OS2\APPS\PMSEEK.EXE \OS2\HELP\PMSEEK.HLP
  2873. 60 OS/2 Performance Tuning  
  2874. ──── Page: 61 ────────────────────────────────
  2875.  
  2876.  
  2877. \OS2\DLL\PMSEEK.DLL
  2878. ■ Pulse
  2879. These are the files for the pulse applet (CPU meter).
  2880. \OS2\APPS\PULSE.EXE
  2881. \OS2\HELP\PULSE.HLP
  2882. ■ Reversi
  2883. These are the files for reversi.
  2884. \OS2\APPS\REVERSI.EXE
  2885. \OS2\HELP\REVERSI.HLP
  2886. ■ Scramble
  2887. These are the files for scramble.
  2888. \OS2\APPS\SCRAMBLE.EXE \OS2\DLL\SCRLOGO.DLL
  2889. \OS2\DLL\SCRAMBLE.DLL \OS2\HELP\SCRAMBLE.HLP
  2890. \OS2\DLL\SCRCATS.DLL
  2891. ■ SoftTerm
  2892. These are the files for SoftTerm (the terminal emulator).
  2893. \OS2\APPS\ACSACDI.DAT \OS2\DLL\OPROFILE.DLL
  2894. \OS2\APPS\CTLSACDI.EXE \OS2\DLL\ORSHELL.DLL
  2895. \OS2\APPS\SOFTERM.EXE \OS2\DLL\OSCH.DLL
  2896. \OS2\APPS\CUSTOM.MDB \OS2\DLL\OSIO.DLL
  2897. \OS2\APPS\SASYNCDA.SYS \OS2\DLL\OSOFT.DLL
  2898. \OS2\APPS\SASYNCDB.SYS \OS2\DLL\OTEK.DLL
  2899. \OS2\DLL\CTLSACDI.DLL \OS2\DLL\OTTY.DLL
  2900. \OS2\DLL\OACDISIO.DLL \OS2\DLL\OVIO.DLL
  2901. \OS2\DLL\OANSI.DLL \OS2\DLL\OVM.DLL
  2902. \OS2\DLL\OANSI364.DLL \OS2\DLL\OVT.DLL
  2903. \OS2\DLL\OCHAR.DLL \OS2\DLL\OXMODEM.DLL
  2904. \OS2\DLL\OCM.DLL \OS2\DLL\OXRM.DLL
  2905. \OS2\DLL\OCOLOR.DLL \OS2\DLL\SACDI.DLL
  2906. \OS2\DLL\OCSHELL.DLL \OS2\DLL\SAREXEC.DLL
  2907. \OS2\DLL\ODBM.DLL \OS2\DLL\SACDI.MSG
  2908. \OS2\DLL\OFMTC.DLL \OS2\HELP\ACDISIO.HLP
  2909. \OS2\DLL\OIBM1X.DLL \OS2\HELP\ANSI364.HLP
  2910. \OS2\DLL\OIBM2X.DLL \OS2\HELP\ANSIIBM.HLP
  2911. \OS2\DLL\OKB.DLL \OS2\HELP\IBM31011.HLP
  2912. \OS2\DLL\OKBC.DLL \OS2\HELP\IBM31012.HLP
  2913. \OS2\DLL\OKERMIT.DLL \OS2\HELP\IBMSIO.HLP
  2914. \OS2\DLL\OLPTIO.DLL \OS2\HELP\SOFTERM.HLP
  2915. \OS2\DLL\OMCT.DLL \OS2\HELP\TTY.HLP
  2916. \OS2\DLL\OMRKCPY.DLL \OS2\HELP\VTTERM.HLP
  2917. \OS2\DLL\OPCF.DLL \OS2\HELP\XRM.HLP
  2918. Appendix D. Removing Features 61
  2919. ──── Page: 62 ────────────────────────────────
  2920.  
  2921.  
  2922. \OS2\DLL\OPM.DLL
  2923. ■ Touch
  2924. These are the files for Touch.
  2925. \OS2\TOUCO21D.BIN \OS2\DLL\TCP.DLL
  2926. \OS2\TOUMOU.BIO \OS2\DLL\TOUCALLS.DLL
  2927. \OS2\CALIBRAT.DAT \OS2\HELP\TCP.HLP
  2928. \OS2\CALIBRAT.EXE \OS2\MDOS\VTOUCH.COM
  2929. \OS2\TOUCH.INI \OS2\MDOS\VTOUCH.SYS
  2930. \OS2\PDITOU01.SYS \OS2\MDOS\WINOS2\SYSTEM\TOUCH.DRV
  2931. \OS2\PDITOU02.SYS \OS2\SYSTEM\TDD.MSG
  2932. \OS2\TOUCH.SYS \OS2\SYSTEM\TDDH.MSG
  2933. \OS2\CALIBRAT.TXT \OS2\SYSTEM\TDI.MSG
  2934. \OS2\DLL\FSGRAPH.DLL \OS2\SYSTEM\TDIH.MSG
  2935. 62 OS/2 Performance Tuning  
  2936. ──── Page: 63 ────────────────────────────────
  2937.  
  2938.  
  2939.  
  2940. Appendix E. Performance Tools
  2941. A number of tools are available that can be useful in evaluating and tuning the performance of
  2942. your OS/2 2.x system.
  2943. SPM/2 - System Performance Monitor/2 - IBM Corp.
  2944. SPM/2 2.0 is an integrated package of powerful facilities that allow you to monitor resources
  2945. such as CPU, RAM, disk and more on your local and remote IBM Operating System/2 2.0.
  2946. SPM/2's ability to graph this resource information allows you to look at real time data as well as
  2947. saved data for any monitored workstation in your LAN.
  2948. ■ Collects critical resource utilization data: CPU, memory, files, swap file, FAT/HPFS cache,
  2949. physical disk, printer and communication port
  2950. ■ Records performance data to disk for processing at a later time.
  2951. ■ Collects data from multiple nodes in a single recording session.
  2952. ■ Provides a real-time graphical representation of how system resources are being used (CPU,
  2953. disk, RAM and swap activity) as well as the ability to playback previously recorded data.
  2954. ■ Produces detailed resource utilization reports (from recorded data) that can be summarized
  2955. by workstation, application, process or thread.
  2956. ■ Provides in-depth OS/2 2.0 memory analysis information (including working set and a view of
  2957. OS/2 control blocks).
  2958. ■ Monitoring of remote OS/2 LAN Requester as well as Servers.
  2959. Performance 2.1 by Clear and Simple, Inc.
  2960. This tool is a simple aid to tune your system. It is excellent for the novice user. It provides a
  2961. way to change the CONFIG.SYS and to remove some file to free DASD>
  2962. Pulse
  2963. Pulse is one of the simplest tools available for monitoring performance. It generates an
  2964. EKG-like graphic display that shows the level of CPU activity. This tool can be found in the
  2965. OS/2 Productivity Aids folder.
  2966. CPU Monitor - BONAMI SOFTWARE CORPORATION
  2967. A powerful combination of performance and analysis tools for the OS/2 user. Via Presentation
  2968. Manager graphics, CPU Monitor displays Real-Time information for estimated CPU utilization,
  2969. OS/2 process relationships and more. Dynamically suspend and resume execution for individual
  2970. threads. Helps you detect and stop runaway, invisible and background programs.
  2971. OSRM2 - OS/2 Resource Monitor - C.O.L. Consulting, Ltd.
  2972. An integrated group of applications for tracking (real time monitor) and performing capacity
  2973. planning functions (analysis and modeling) for machine resources (CPU, Disk, Memory, applica-
  2974. tions).
  2975. Appendix E. Performance Tools 63
  2976. ──── Page: 64 ────────────────────────────────
  2977.  
  2978.  
  2979. Bridge/Monitor - Bridge Technology Inc.
  2980. Bridge/Monitor is an OS/2 performance analysis and reporting tool, for large enterprise LANs,
  2981. that allows the user to remotely monitor and manage the performance of the LAN. Performance
  2982. bottlenecks are identified and alerts generated in realtime when user defined thesholds are
  2983. exceeded. A complete performance database with query capability is maintained for reporting,
  2984. trend analysis and capacity planning. BRIDGE/MONITOR's proprietary communications
  2985. method enables peer-to-peer services between devices in the network.
  2986. Triplecheck - International OS/2 USER GROUP
  2987. A three-in-one monitoring utility. SwapMON monitors the size of the swapper file. The free
  2988. space on the swapper drives and displays the largest contiguous block of memory. MON is an
  2989. idle-time monitor displaying in graphics form the amount of processor activity over a selectable
  2990. timespan can be used to monitor background activity. Clock displays concurrent date or time in
  2991. analogue or digital format. On-line context-sensitive help available for each program.
  2992. 64 OS/2 Performance Tuning  
  2993. ──── Page: 65 ────────────────────────────────
  2994.  
  2995.  
  2996.  
  2997. Appendix F. Files that can be Migrated to the Server
  2998. This file contains information about which files are required on a LAN Requester and which can
  2999. be migrated to a Server machine. Read carefully. In some cases, it is easier to list what files
  3000. must remain, and in other cases it is easier to list what can be moved. Tests were performed to
  3001. move files off a requester machine onto a server, boot the requester machine, and then perform
  3002. basic operations, functions, and applications.
  3003. When files are moved to a server machine, remember that the LIBPATH, PATH, and DPATH
  3004. statements in the requester's (client) CONFIG.SYS file should be updated with the SERVER
  3005. directory where these files were moved. Do NOT delete any OS/2 system directory entries in
  3006. these path statements even if they are empty. If empty, they should be moved to the end of the
  3007. path statements. For any applications that appear in folders, such as:
  3008. ■ STHR.EXE in the Start Here icon on the OS/2 Desktop
  3009. ■ E.EXE in the Productivity Folder
  3010. ■ All of the Applets and games in the Productivity and Games folders.
  3011. You must update the Settings to point to the correct drive and sub-directory.
  3012. 1. \OS2
  3013. Following is a list of files that SHOULD REMAIN in the \OS2 sub-directory. Most of these
  3014. files are for device drivers, hardware support and system and user INI files. Some of the
  3015. .SYS and .DMD files may not reside in your \OS2 sub-directory depending upon the type of
  3016. install you performed and what hardware is installed on your system. The CACHE.EXE and
  3017. HPFS.IFS files are required if you are using HPFS in your system. UNPACK.EXE is
  3018. included in case you need to retrieve a file from the installation diskettes. CHKDSK.COM is
  3019. included if Autocheck is specified for the file systems upon system boot up. The
  3020. ATTRIB.EXE file is included because it may be needed by certain support functions.
  3021. IBM2ADSK.ADD OS2DASD.DMD ABIOS.SYS
  3022. IBM2FLPY.ADD OS2SCSI.DMD CLOCK02.SYS
  3023. IBM2SCSI.ADD ATTRIB.EXE COM.SYS
  3024. 000000.BIO CACHE.EXE DOS.SYS
  3025. F80D00.BIO CMD.EXE EXTDSKDD.SYS
  3026. F80D01.BIO PMREXX.EXE LOG.SYS
  3027. W020100.BIO PMSHELL.EXE MOUSE.SYS
  3028. W020101.BIO SVGA.EXE KBD02.SYS
  3029. W050000.BIO UNPACK.EXE PCLOGIC.SYS
  3030. W050100.BIO VIEW.EXE PCMCIA.SYS
  3031. W050101.BIO VIEWDOC.EXE PMDD.SYS
  3032. W060100.BIO HPFS.IFS POINTDD.SYS
  3033. W0F0000.BIO PMCONTRL.INF PRINT02.SYS
  3034. CHKDSK.COM OS2.INI SCREEN02.SYS
  3035. KEYBOARD.DCP OS2SYS.INI TESTCFG.SYS
  3036. VIOTBL.DCP IBMINT13.I13 VDISK.SYS
  3037. OS2ASPI.DMD
  3038. Any files removed from this directory can be moved to a Server directory. This directory
  3039. should be placed in the PATH statement of the CONFIG.SYS file in the root directory. It
  3040. Appendix F. Files that can be Migrated to the Server 65
  3041. ──── Page: 66 ────────────────────────────────
  3042.  
  3043.  
  3044. would also be wise to create a diskette with system utilities such as FORMAT, XCOPY, and
  3045. the like that will be near the requester machine in case the server is not available and mainte-
  3046. nance is needed on the requester machine.
  3047. 2. \OS2\DLL
  3048. Following are the DLL files that are MUST REMAIN in the \OS2\DLL sub-directory. This
  3049. sub-directory will also contain files used for Fonts and printer drivers. These files should
  3050. remain on your requester machine, but are not listed here. They have file extensions exten-
  3051. sions of PSF, FON, DRV, PDR and QPR. This list does not include any DLL files that may
  3052. be placed in the \OS2\DLL sub-directory by another installed product other the the base
  3053. OS/2 system.
  3054. BKSCALLS.DLL NAMPIPES.DLL PMVIOP.DLL
  3055. BMSCALLS.DLL NLS.DLL PMWIN.DLL
  3056. BVH8514A.DLL NPXEMLTR.DLL PMWP.DLL
  3057. BVHVGA.DLL NWIAPI.DLL PMWPMRI.DLL
  3058. BVHWNDW.DLL OS2CHAR.DLL QUECALLS.DLL
  3059. BVSCALLS.DLL OS2SM.DLL REXXINIT.DLL
  3060. DISPLAY.DLL PMATM.DLL SESMGR.DLL
  3061. DOSCALL1.DLL PMCTLS.DLL SOM.DLL
  3062. FKA.DLL PMDRAG.DLL SPL1B.DLL
  3063. HELPMGR.DLL PMGPI.DLL VIOCALLS.DLL
  3064. HPMGRMRI.DLL PMGRE.DLL WCFGMRI.DLL
  3065. IBM8514.DLL PMMLE.DLL WINCFG.DLL
  3066. IMP.DLL PMSDMRI.DLL WPCONFIG.DLL
  3067. KBDCALLS.DLL PMSHAPI.DLL WPCONMRI.DLL
  3068. MINXMRI.DLL PMSHAPIM.DLL WPPRINT.DLL
  3069. MOUCALLS.DLL PMSHLTKT.DLL WPPRTMRI.DLL
  3070. MSG.DLL PMSPL.DLL
  3071. The BVH and IBM DLL files will vary in name depending upon the type of display adapter
  3072. your are using in your system. The rule is, if the name of the DLL starts with BVH or IBM,
  3073. it must remain in the DLL sub-directory on the requester machine.
  3074. 3. \OS2\MDOS
  3075. Here are the files which SHOULD REMAIN in the \OS2\MDOS sub-directory. The
  3076. APPEND.EXE file is required to be in this sub-directory and cannot be moved. The
  3077. DOSKRNL and COMMAND.COM files are also searched for in this directory specifically.
  3078. All the other files are device driver support. These can be removed or may not appear if the
  3079. devices are not on your system, or because of the install options that were used.
  3080. DOSKRNL VCDROM.SYS VLPT.SYS
  3081. COMMAND.COM VCGA.SYS VMONO.SYS
  3082. APPEND.EXE VCMOS.SYS VMOUSE.SYS
  3083. ANSI.SYS VCOM.SYS VNPX.SYS
  3084. COMDD.SYS VDMA.SYS VPCMCIA.SYS
  3085. EGA.SYS VDPMI.SYS VPIC.SYS
  3086. EMM386.SYS VDPX.SYS VSVGA.SYS
  3087. FSFILTER.SYS VDSK.SYS VTIMER.SYS
  3088. HIMEM.SYS VEGA.SYS VVGA.SYS
  3089. LPTDD.SYS VEMM.SYS VWIN.SYS
  3090. 66 OS/2 Performance Tuning  
  3091. ──── Page: 67 ────────────────────────────────
  3092.  
  3093.  
  3094. V8514A.SYS VFLPY.SYS VXGA.SYS
  3095. VAPM.SYS VKBD.SYS VXMS.SYS
  3096. VBIOS.SYS
  3097. 4. \OS2\BOOK and \OS2\HELP
  3098. All of the base files in \OS2\BOOK and \OS2\HELP sub-directories CAN BE MOVED
  3099. moved to a server machine. If done, the SET HELP, SET GLOSSARY, and SET
  3100. BOOKSHELF statements in CONFIG.SYS must be updated to point to the Server path.
  3101. 5. \OS2\SYSTEM
  3102. No files should be removed from this sub-directory.
  3103. 6. \OS2\INSTALL
  3104. Different files will be removed from this sub-directory depending on what other support is
  3105. being installed on your system and if service updates are going to be applied to the system.
  3106. Because of service requirements, all files except the following should remain in this sub-
  3107. directory. These files CAN BE MOVED.
  3108. DATABASE.DAT PRDESC.LST SAMPLE.RSP
  3109. DATABASE.TXT PRDRV.LST USER.RSP
  3110. INSTAID.LIB
  3111. From these files, you may have DATABASE.DAT remain in the \OS2\INSTALL sub-
  3112. directory because it is the MIGRATE Application utility.
  3113. 7. \OS2\APPS
  3114. These files were discussed in an earlier append in this document. Basically, all of the files can
  3115. be moved to a server machine, you just have to insure that the Productivity and Games icons
  3116. reflect the correct path names.
  3117. 8. \OS2\BITMAP
  3118. The only file required in this sub-directory is OS2LOGO.BMP.
  3119. 9. \OS2\DRIVERS
  3120. All files in this directory remain there.
  3121. Appendix F. Files that can be Migrated to the Server 67
  3122. ──── Page: 68 ────────────────────────────────
  3123.  
  3124.  
  3125.  
  3126. Glossary
  3127. API.  Application Programming Interface
  3128. APM.  Advanced Power Management
  3129. Bit.  Either of the binary digits 0 or 1
  3130. BIOS.  Basic Input/Output System
  3131. BPS.  Bits per Second
  3132. Byte.  8 bits treated as a unit representing 1 char-
  3133. acter
  3134. CD/ROM.  Compact Disk Read-Only Memory
  3135. High-capacity read-only memory in the form of an
  3136. optically read compact disk.
  3137. CGA.  Color Graphics Array
  3138. DASD.  Direct Access Storage Device
  3139. DLL.  Dynamic Link Library
  3140. DOS.  Disk Operating System
  3141. DRAM.  Dynamic random-access memory
  3142. EA.  Extended Attribute
  3143. EGA.  Enhanced Graphics Array
  3144. EMS.  Expanded Memory Support
  3145. ESDI.  Enhanced Small Device Interface
  3146. FAT.  File Allocation Table
  3147. FIFO.  First-in/First-out
  3148. GB.  Gigabyte (1,073,741,824 bytes)
  3149. GDT.  Global Descriptor Table
  3150. HPFS.  High Performance File System
  3151. IDE.  Intelligent Drive Electronics
  3152. I/O.  Input/Output
  3153. IPF.  Information Presentation Facility
  3154. ISA.  Industry Standard Architecture
  3155. KB.  Kilobyte (1,024 bytes)
  3156. LAN.  Local Area Network
  3157. Launched Common.  Starting Windows applica-
  3158. tions in the same session as other Windows appli-
  3159. cations
  3160. Launched Separate.  Starting Windows applica-
  3161. tions in separate Window sessions
  3162. LDT.  Local Descriptor Table
  3163. MB.  Megabyte (1,048,576 bytes)
  3164. MHz.  Megahertz
  3165. MVDM.  Multiple Virtual DOS Machines
  3166. OS/2⌐.  Operating System/2╦
  3167. PM.  Presentation Manager
  3168. RAM.  Random Access Memory
  3169. ROM.  Read Only Memory
  3170. SCSI.  Small Computer System Interface
  3171. Seamless Session.  WIN-OS2 session appearing as
  3172. a window on the Workplace Shell
  3173. SIMM.  Single Inline Memory Module
  3174. SVGA.  Super Video Graphics Array
  3175. Swap file.  Page file containing memory data
  3176. VDM.  Virtual DOS Machines
  3177. VGA.  Video Graphics Array
  3178. VIO.  Video I/O
  3179. VRAM.  Video RAM
  3180. WIN-OS/2.  OS/2 support for running Windows
  3181. applications
  3182. 68 OS/2 Performance Tuning  
  3183. ──── Page: 69 ────────────────────────────────
  3184.  
  3185.  
  3186. XGA.  Extended Graphics Array
  3187. XMS.  Extended Memory Support
  3188. Glossary 69
  3189. ──── Page: 70 ────────────────────────────────
  3190.  
  3191.  
  3192.  
  3193. Index
  3194. A
  3195. animation 18
  3196. application performance measurements 56
  3197. AUTOEXEC.BAT
  3198. specifying different 33
  3199. B
  3200. boot manager 6
  3201. C
  3202. changing display drivers 18
  3203. CONFIG.SYS
  3204. buffers 29
  3205. changes to 27
  3206. customizing for DOS 32
  3207. devicehigh 32
  3208. disk cache 28
  3209. dos 32
  3210. libpath 28
  3211. maxwait 30
  3212. memman 30
  3213. path 27
  3214. printmonbufsize 30
  3215. priority_disk_io 29
  3216. protectonly 31
  3217. rmsize 31
  3218. set deldir 31
  3219. set restartobjects 31
  3220. swap file 20
  3221. swappath 28
  3222. threads 30
  3223. timeslice 30
  3224. using Alt-F1 27
  3225. customizing DOS sessions 38
  3226. customizing for DOS
  3227. AUTOEXEC.BAT 32
  3228. customizing WIN-OS/2 sessions
  3229. cut and paste 41
  3230. D
  3231. DASD 23
  3232. removing features 58
  3233. default cache sizes 9
  3234. disk caching 22
  3235. disk partitioning 24
  3236. display
  3237. installation selection 13
  3238. display driver performance 57
  3239. DOS
  3240. memory tuning 42
  3241. printing 48
  3242. settings 38
  3243. DOS settings
  3244. memory 42
  3245. performance 39
  3246. F
  3247. FAT file system 23
  3248. file system
  3249. caches 24
  3250. default cache sizes 9, 26
  3251. FAT 23
  3252. file size supported 8, 22
  3253. HPFS 23
  3254. lazy writing 24
  3255. partition size supported 8, 22
  3256. file system selection 8
  3257. H
  3258. hardware
  3259. communication 54
  3260. displays 51
  3261. exploitation 1
  3262. hard drives 53
  3263. memory 51
  3264. minimum requirements 3
  3265. processor 50
  3266. High Performance File System (HPFS) 23
  3267. I
  3268. installation 6
  3269. boot manager 6
  3270. default cache sizes 9
  3271. display selection 13
  3272. file system 8
  3273. fonts 15
  3274. formatting the install partition 9
  3275. full install 11
  3276. general 17
  3277. installation feature selections 9
  3278. 70 OS/2 Performance Tuning  
  3279. ──── Page: 71 ────────────────────────────────
  3280.  
  3281.  
  3282. installation (continued)
  3283. migrating applications 17
  3284. partitioning 7
  3285. preselected install 10
  3286. selectable install 11
  3287. setup and installation menu 15
  3288. SVGA Display 14
  3289. swap file 16
  3290. system configuration menu 13
  3291. VGA Display 14
  3292. XGA Display 14
  3293. L
  3294. lazy writing 22
  3295. M
  3296. memory
  3297. flat memory model 1
  3298. required 3
  3299. memory management 42
  3300. swap file 20
  3301. microprocessors supported 3
  3302. migrating applications 17
  3303. MVDM 1
  3304. P
  3305. partitions 7
  3306. performance
  3307. tips 55
  3308. performance improvements in 2.1
  3309. DPMI 5
  3310. graphic subsystem 4
  3311. printing 5
  3312. VDM support 4
  3313. WIN-OS/2 performance 4
  3314. performance tools 63
  3315. post installation
  3316. changing the display driver 18
  3317. changing the display resolution 18
  3318. CONFIG.SYS changes 27
  3319. post installation.
  3320. AUTOEXEC.BAT changes 32
  3321. AUTOEXEC.BAT file 32
  3322. tuning DOS applications 37
  3323. tuning OS/2 applications 33
  3324. tuning Windows applications 33
  3325. printer settings 44
  3326. compression 45
  3327. fast system fonts 45
  3328. HP-GL/2 46
  3329. printer settings (continued)
  3330. large buffers 46
  3331. memory 45
  3332. print while spooling 46
  3333. printer patterns 45
  3334. resolution 45
  3335. start and stop time 46
  3336. printing 44
  3337. fonts 46
  3338. from DOS 48
  3339. from WIN-OS/2 48
  3340. spool files 47
  3341. R
  3342. read ahead 22
  3343. removing features 58
  3344. S
  3345. settings 38
  3346. DOS_AUTOEXEC 36, 40
  3347. DOS_BACKGROUND_EXECUTION 36, 40
  3348. DOS_BREAK 41
  3349. DOS_DEVICE 39
  3350. DOS_FCBS 41
  3351. DOS_FCBS_KEEP 41
  3352. DOS_FILES 41
  3353. DOS_HIGH 42
  3354. DOS_RMSIZE 37
  3355. DPMI_MEMORY_LIMIT 37, 43
  3356. EMS_HIGH_OS_MAP_REGION 44
  3357. EMS_LOW_OS_MAP_REGION 44
  3358. EMS_MEMORY_LIMIT 44
  3359. for DOS sessions 38
  3360. for WIN-OS/2 sessions 36
  3361. HW_ROM_TO_RAM 42
  3362. IDLE_SECONDS 39
  3363. IDLE_SENSITIVITY 39
  3364. INT_DURING_IO 37, 40
  3365. MEM_EXCLUDE_REGIONS 42
  3366. MEM_INCLUDE_REGIONS 42
  3367. memory for DOS sessions 42
  3368. VIDEO_8514A_XGA_IOTRAP 37, 40
  3369. VIDEO_FASTPASTE 41
  3370. VIDEO_ONDEMAND_MEMORY 42
  3371. VIDEO_RETRACE_EMULATION 40
  3372. VIDEO_ROM_EMULATION 41
  3373. VIDEO_SWITCH_NOTIFICATION 37, 41
  3374. WIN_CLIPBOARD 36
  3375. WIN_DDE 36
  3376. WIN_RUNMODE 36
  3377. Index 71
  3378. ──── Page: 72 ────────────────────────────────
  3379.  
  3380.  
  3381. settings (continued)
  3382. XMS_HANDLES 43
  3383. XMS_MEMORY_LIMIT 43
  3384. XMS_MINIMUM_HMA 43
  3385. spooled printing 47
  3386. spooler
  3387. path 47
  3388. print priority 47
  3389. swap file 16, 20
  3390. parameters 20
  3391. T
  3392. top tips to improve performance 55
  3393. tuning
  3394. AUTOEXEC.BAT 32
  3395. COM 49
  3396. CONFIG.SYS 27
  3397. DOS applications 37
  3398. general 27
  3399. OS/2 applications 33
  3400. printing 44
  3401. Windows applications 33
  3402. W
  3403. WIN-OS/2
  3404. install 17
  3405. printing 48
  3406. reducing memory 35
  3407. settings 36
  3408. Windows application support 2
  3409. 72 OS/2 Performance Tuning  
  3410. ──── End Document: WP ────────────────────────────
  3411.