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
- Press
Win + Rto open the Run dialog. - Type
regeditand press Enter or click OK. - 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.
In the Registry Editor, navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory ManagementIn the right-hand pane, locate the
LargeSystemCacheentry. If it does not exist, right-click an empty area, select New > DWORD (32-bit) Value, and name itLargeSystemCache.Double-click
LargeSystemCacheto 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).
Set the Base to Hexadecimal or Decimal, enter your desired value (
0or1), 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.
In the Registry Editor, navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemLocate the
NtfsMemoryUsageDWORD entry. If missing, right-click, select New > DWORD (32-bit) Value, and name itNtfsMemoryUsage.Double-click
NtfsMemoryUsageto 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.
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.