DisablePagingExecutive 1: what it does, the default value, and whether it helps gaming
Short answer
UpdatedWindows may move parts of its own kernel and drivers to the page file when memory is short. DisablePagingExecutive set to 1 keeps that code in memory at all times. In the registry it sets DisablePagingExecutive to 1 under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
HKLMSYSTEM\
DisablePagingExecutiveYour previous value1
What it does
Windows may move parts of its own kernel and drivers to the page file when memory is short. DisablePagingExecutive set to 1 keeps that code in memory at all times.
In the app the switch is called "Keep the Kernel in RAM", described there as: Stops Windows from paging kernel and driver code to disk. For PCs with 16 GB or more (reboot).
When it helps, and when it hurts
When it helps
- Systems under real memory pressure, where paged-out kernel code would have to be read back from disk at a bad moment.
When it hurts
- With enough memory Windows almost never pages this code out, so the setting changes nothing.
- With very little memory it leaves even less for programs.
What it writes
Exactly what the switch changes, read from the app's source. Switching it off is what the app writes when you turn the tweak off again.
| Key and value | With the tweak | Switching it off |
|---|---|---|
| HKLMSYSTEM\ | 1 | Your previous valueSaved before the change, or deleted if there was none.Windows default: 0. |
From the app's source (pack_extra.hpp), app 2.0.0, checked .
The same change by hand
You do not need the app for this one. These commands make the changes from the table above. Run them in a Command Prompt opened as administrator, and make a restore point first.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d 1 /freg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d 0 /freg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive"How to undo it
In the app: Yes
Switching it off puts back exactly what was there before, value for value.
Switch the tweak off in Frozen Tweaks. The app saved what each value was before the change and writes exactly that back, or removes the value if it did not exist.
Changing several settings at once? The app's Make a restore point button, on every plan, makes a Windows restore point before you start.
Verdict
A harmless setting with a reputation larger than its effect. It makes sense with 16 GB or more, and will rarely be noticeable.
Questions
- What does the "Keep the Kernel in RAM" tweak change in Windows?
- In the registry it sets DisablePagingExecutive to 1 under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
- What is the default value of DisablePagingExecutive?
- The Windows default of DisablePagingExecutive is 0. Frozen Tweaks sets it to 1, and switching the tweak off puts back the value you had before.
- Is "Keep the Kernel in RAM" safe to switch on?
- A harmless setting with a reputation larger than its effect. It makes sense with 16 GB or more, and will rarely be noticeable. The main cost: With enough memory Windows almost never pages this code out, so the setting changes nothing.
- How do I undo it?
- Switch the tweak off in Frozen Tweaks. Switching it off puts back exactly what was there before, value for value.
- Does it need a restart?
- Yes, the change applies after a restart.
- Is "Keep the Kernel in RAM" free in Frozen Tweaks?
- It is part of Frozen Pro and Elite. You can also make the change by hand with the values on this page.
In the app
- Switch
- Keep the Kernel in RAM
- Category
- Memory
- Plan
- Pro
- Undo
- Yes
Related guides
More tweak explainers
- Memory compressionWhat Disable-MMAgent -MemoryCompression (-mc) changes, why turning off memory compression helps some PCs and badly hurts others, and how to put it back.2 min read
- NVMe interrupt steeringAn NVMe drive raises an interrupt when a read or write finishes. What the tweak changes, when it helps, when it hurts and how to undo it.2 min read
- LargeSystemCacheLargeSystemCache tells the Windows memory manager to favor the file system cache over the memory of running programs. What it changes and how to undo it.3 min read
In the app
- Category
- Memory
- Plan
- Pro
- Undo
- Yes
Frozen Tweaks
Free for Windows 10 and 11
58 tweaks free, each with an undo switch. Never edits game files.
v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details
Or type frozentweaks.com on your PC.

The free Windows app for competitive games.
58 tweaks free, each with an undo switch. Never edits game files.
v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details
Frozen Tweaks runs on Windows. Send the link to your PC and download it there.
Or type frozentweaks.com on your PC.
