Optimizing File System Performance

In Windows 95, the disk cache is dynamic. You do not need to configure its size as part of system configuration. Because of this, the following types of settings used for Windows 3.x are not required in Windows 95 and should be removed from the configuration files.

Configuration file

Configuration setting to remove

autoexec.bat

SHARE
SMARTDRV settings
Any entries for other disk cache software1

config.sys

SMARTDRV settings (double-buffer driver)
Any entries for other disk cache software


1 For a list of the disk caching software that is removed by Windows 95 Setup, see Chapter 6, "Setup Technical Discussion."

The overall performance, for example, of a computer with 8 MB of memory is better under Windows 95 than under Windows 3.1. However, the amount of paging might be more under Windows 95 for several reasons:

Changing the cache size (even if you could) probably wouldn't have much effect on paging. Paging through the cache would quickly overwhelm it and make it useless for other file I/O. Although swap file I/O operations don't go through the cache, memory-mapped files and executable files do. The cache, however, is designed to make sure it can't be overwhelmed by such I/O operations.

The cache grows and shrinks as needed. If the system begins to page a lot, the cache shrinks automatically. However, people often think they are seeing a lot of paging, but they are really seeing other disk activity, such as Windows 95 building its icon cache or the cache lazy writing.

If the amount of paging is extreme, to the point where system performance is poor, then you probably have a hard disk that requires a real-mode device driver. If Windows 95 needs to use real-mode for its disk I/O operations, then a lot of code has to be locked down that would otherwise be pageable, and your working set increases significantly. Paging through a real-mode driver does increase paging, but on a computer with 8 MB of memory, it shouldn't cause unacceptable performance.

Tip for 32-bit Disk Access in Windows 95

The 32-bit disk access feature is always turned on in Windows 95 unless Windows 95 detects a real-mode disk driver that doesn't have a protected-mode replacement. This could be, for example, an older Stacker® driver or a hard-disk security or encryption driver for a disk drive.

To prevent the performance loss that occurs when Windows 95 is forced to use a real-mode disk driver, upgrade to a protected-mode replacement for that driver. If you need to determine why a Windows 95 real-mode disk driver was installed, check the IOS.LOG file. For more information, see Chapter 19, "Devices."