Customizing the OS/2 2.0 CONFIG.SYS file improves performance and reduces memory requirements. This section describes some OS/2 2.0 CONFIG.SYS statements.
Some users might want to shorten the installation process by copying files from a network server or from a previously installed system. However, using the statements from an existing system configuration CONFIG.SYS file for another system might not enable optimum performance of the operating system, because many of the parameters for the CONFIG.SYS statements are dynamically determined based on the configuration of the system. For example, disk cache sizes and swap file sizes are determined by hard disk and memory sizes. Refer to the online help for detailed descriptions of CONFIG.SYS statements and DOS and WIN-OS/2 settings.
DISKCACHE speeds up applications that read hard disks by keeping hard disk data frequently accessed in a cache. However, increasing the size of the disk cache decreases the size of available memory. See "File System Caches" for information about default disk cache sizes.
Lazy writing for HPFS defaults to On. A RUN=CACHE statement is required to change the state of lazy writing. CACHE also can be executed from a command prompt.
If PROTECTONLY=NO is specified, a user can reduce the size of the DOS session further by specifying RMSIZE. This allows a user to decrease the size of the DOS session, thereby making more memory available for OS/2 2.0 sessions.
The operating system pre-allocates the initial swap file size based on the size in the SWAPPATH statement in the CONFIG.SYS file. However, if necessary, as a system runs, OS/2 2.0 increases the size of the swap file.
To change the pre-allocated size in the CONFIG.SYS file, modify the SWAPPATH= statement (sizes are specified in KB). To customize the swap file size for a particular environment, modify the default value to reflect the smallest default value, according to Table 1 (for example, 2MB); then restart the system. Start the desired application, view the OS2 \SYSTEM \SWAPPER.DAT file and record the size periodically. Take the largest size that you record and add 1-2MB. If this size is larger than the recommended size in Table 1, choose the larger value. For more information, see "Swap File."
Normal operation of OS/2 2.0 involves considerable disk activity as operating system functions are loaded and pages are moved in and out of the swap file. To improve performance, consider dedicating a separate partition for the swap file next to the operating system partition. This helps avoid fragmentation of the swap file, because other files will not be added and deleted from the dedicated partition. Disk access time will be minimized.
Ensure that the dedicated partition is large enough to contain the swap file as it increases in size.