Force Windows Kernel to Stay in RAM Using Regedit
By default, Windows transfers inactive kernel-mode drivers and system
code from physical RAM to the paging file on your storage drive to
conserve memory for applications. On systems equipped with ample RAM,
you can force the operating system kernel to remain in physical memory
at all times to enhance system responsiveness. This guide explains how
to use the Windows Registry Editor to configure the
DisablePagingExecutive setting, ensuring the core Windows
kernel stays in fast RAM.
Step-by-Step Instructions to Keep the Kernel in RAM
- Open the Registry Editor
- Press Windows Key + R to open the Run dialog box.
- Type
regeditand press Enter (or click OK). - If prompted by User Account Control (UAC), click Yes to grant administrative privileges.
- Navigate to the Memory Management Key
- In the left sidebar of the Registry Editor, navigate through the
following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
- In the left sidebar of the Registry Editor, navigate through the
following path:
- Modify the DisablePagingExecutive Value
- In the right pane, locate the DWORD value named DisablePagingExecutive.
- Double-click on DisablePagingExecutive to open its properties.
- Change the Value data field from
0to1. - Ensure the Base is set to Hexadecimal (or Decimal).
- Click OK to save the changes.
- Restart Your Computer
- Close the Registry Editor.
- Restart your PC for the changes to take effect.
Understanding the Values
- 0 (Default): Drivers and kernel-mode components are paged to disk as needed to free up physical memory.
- 1 (Enabled): Drivers and kernel-mode components remain in physical RAM and are never paged to the disk.
System Requirements and Considerations
- RAM Requirements: This tweak is recommended only for systems with at least 8 GB to 16 GB of RAM or more. On systems with low memory, disabling kernel paging can lead to memory exhaustion and system instability.
- Reverting Changes: If you experience any
instability or run out of memory during heavy workloads, return to the
same registry key and change the value of
DisablePagingExecutiveback to0.