Memory Tweaks – Part 2
Posted by n0nsequitur on February 2, 2008
One of the great things about how Vista manages memory is Prefetch and Superfetch. Incredible as this might seem, the default values work best for most people. There is no need to clear the Prefetch directory from time to time as unneeded entries are cleared automatically and the “/Prefetch” command appended to application shortcuts is a myth according to this article at MSDN.
To set the parameters for Prefetch and Superfetch, open your favorite registry editor and navigate to the following:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
EnablePrefetcher and Enable Superfetch should be at their default value of 3.
Another myth that I would like to dispel is regarding the AlwaysUnloadDLL setting in the registry. Since this key only applies to Windows Explorer extensions, it is completely unnecessary. Here is an explanation from Microsoft:
“The Shell automatically unloads a DLL when its usage count is zero, but only after the DLL has not been used for a period of time. This inactive period might be unacceptably long at times, especially when a Shell extension DLL is being debugged. For operating systems prior to Windows 2000, you can shorten the inactive period by adding the following information to the registry.”
To remove this key, navigate to the following location in your registry:
and if you have a sub-key called AlwaysUnloadDLL, delete it.
As with all registry modifications, restart your system for the changes to take effect.