Optimizing File System Performance with Profiles

In Windows 95, file system and disk performance can be controlled based on how the computer is used in most situations. The option for configuring file system performance is controlled only by the user. None of these settings are affected by other configuration changes that might be made in Windows 95, such as installing File and Printer Sharing services, or choosing the Portable option as the Setup Type when installing Windows 95.

To optimize file system performance

  1. In the System option in Control Panel, click the Performance tab, and then click the File System.
  2. In the list named Typical Role Of This Machine, select the most common role for this computer, and then click OK. The following table describes each role in the list.

Role

Description

Desktop Computer

A normal computer acting primarily as a network client, or an individual computer with no networking. This configuration assumes there is more than the minimum required RAM, and that the computer is running on power (rather than battery).

Mobile Or Docking System

Any computer with limited memory. This configuration assumes limited RAM and that the computer is running on battery, so the disk cache should be flushed frequently.

Network Server

A computer used primarily as a peer server for file or printer sharing. This configuration assumes that the computer has adequate RAM and frequent disk activity, so the system is optimized for a high amount of disk access.


Each disk performance profile adjusts the values of the following file-system settings in the Registry:

The values to be assigned to each disk performance profile are stored in the following Registry key:


Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion
\FS Templates

The following subkey contains the actual settings for the profile currently used:


Hkey_Local_Machine\System\CurrentControlSet\Control\FileSystem

An additional performance setting in the FileSystem subkey, ContigFileAllocSize, can be used to change the size of the contiguous space that VFAT searches for when allocating disk space. Under MS-DOS, the file system began allocating the first available space found on the disk, which ensured a great deal of disk fragmentation and related performance problems. By default under Windows 95, VFAT first tries to allocate space in the first contiguous 0.5 MB of free space, then returns to the MS-DOS method if it can't find at least this much contiguous free space. This optimizes performance for both the swap file and multimedia applications.

In some cases, you might choose to set a smaller value in the Registry, such as if you are not running demanding applications on the computer. A smaller value for ContigFileAllocSize, however, can lead to more fragmentation on the disk and, consequently, more disk access for the swap file or applications that require larger amounts of disk space.