In Windows 98, programs could be loaded and kept in RAM for as long as you wanted. You could even load a video clip into RAM directly and have it play from there! XP is much more restrictive, mostly due to security reasons. But when it comes to the Windows XP kernel, there’s something you can do. By default, XP only loads the required parts of the kernel into RAM at boot time, and calls the other parts as and when needed. Having the entire kernel available in memory speeds up processing.
Navigate to:
HLM\ System\ CurrentControlSet\ Control\ Session
Manager\ Memory Management
Set the value of the DisablePagingExecutive key to 1. This will make the entire kernel be loaded in memory. A reboot is required for the changes to take effect.
Only use this hack if you have sufficient memory. Recommended: 512 MB or more. Also, this |-hack may affect some programs that use the Windows swap file directly, such as Adobe Photoshop.