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

  1. Open the Registry Editor
    • Press Windows Key + R to open the Run dialog box.
    • Type regedit and press Enter (or click OK).
    • If prompted by User Account Control (UAC), click Yes to grant administrative privileges.
  2. 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
  3. 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 0 to 1.
    • Ensure the Base is set to Hexadecimal (or Decimal).
    • Click OK to save the changes.
  4. Restart Your Computer
    • Close the Registry Editor.
    • Restart your PC for the changes to take effect.

Understanding the Values

System Requirements and Considerations