Stop NTExecutive From Paging
In Windows NT, 2000 and XP, you can prevent pageable drivers and system code in the Windows NT Executive from being paged out to the paging file.
Normally, pageable drivers and system codes are paged out to the paging file to free up memory. Naturally, this reduces the performance of the operating system and affected drivers.
However, you can easily change that and force Windows to keep all drivers and system code in the system memory. But you will need to edit the registry.
Start up Registry Editor by running regedit.exe in the drive:\Windows\ folder or by going to Start Menu -> Run... -> regedit.exe.
Once you have opened up Registry Editor, go to the following subkey :-
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
You will see the following screen :-
Look for the DisablePagingExecutive option. By default, it is set to 0.
Double-click on it and change its value to 1. Then close Registry Editor and reboot your computer.
When Windows boots up again, the pageable drivers and system code will no longer be paged out to the paging file. Instead, they will be retained in system memory for maximum performance.
This method works with Windows NT, 2000 and XP. It does not work with Windows 98 or Windows Me