home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / os2 / os2perf.inf (.txt) < prev    next >
OS/2 Help File  |  1993-07-05  |  123KB  |  3,877 lines

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