eVBin

News from the “e” world

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:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]

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.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: