Optimize File System Cache Size Using Regedit

Adjusting the file system cache size in Windows Server allows administrators to allocate system memory more effectively based on server workload, whether prioritizing file sharing or dedicated application performance. This guide covers how to navigate the Windows Registry Editor (regedit) to modify key values such as LargeSystemCache and NtfsMemoryUsage, enabling optimized caching performance for high-throughput file servers and memory-intensive environments.

Step 1: Open the Registry Editor

  1. Press Win + R to open the Run dialog.
  2. Type regedit and press Enter or click OK.
  3. If prompted by User Account Control (UAC), click Yes.

Step 2: Configure LargeSystemCache

The LargeSystemCache parameter controls whether the operating system maintains a standard or large working set cache for file operations.

  1. In the Registry Editor, navigate to the following path:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
  2. In the right-hand pane, locate the LargeSystemCache entry. If it does not exist, right-click an empty area, select New > DWORD (32-bit) Value, and name it LargeSystemCache.

  3. Double-click LargeSystemCache to modify its value:

    • 0 (Default): Optimizes memory for applications and services (recommended for dedicated application servers, such as Microsoft SQL Server or Exchange).
    • 1: Optimizes memory for the system cache (recommended for dedicated file servers to keep frequently accessed files in RAM).
  4. Set the Base to Hexadecimal or Decimal, enter your desired value (0 or 1), and click OK.

Step 3: Configure NtfsMemoryUsage (Optional)

For servers handling a large volume of NTFS files and directories, increasing the NTFS metadata cache limit improves directory traversal and lookup speeds.

  1. In the Registry Editor, navigate to:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
  2. Locate the NtfsMemoryUsage DWORD entry. If missing, right-click, select New > DWORD (32-bit) Value, and name it NtfsMemoryUsage.

  3. Double-click NtfsMemoryUsage to adjust the tier:

    • 1 (Default): Standard memory allocation for NTFS structures.
    • 2: Increased memory allocation, raising the lookaside list limits and pool allocation for NTFS metadata.
  4. Click OK to save the value.

Step 4: Apply the Changes

Registry changes to memory management and file system parameters do not apply dynamically. Restart the server to initialize the updated cache parameters.