The following registry tweak specifies whether kernel-mode drivers and kernel-mode system code can be paged to disk when not in use. Even if you have enough RAM available, Windows will still “page” important operating system components to the pagefile. By enabling the DisablePagingExecutive registry key you will prevent Windows from paging this type of data.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session [...]