Registry hacks that made my computer faster.

theigloo wrote on 3/2/2004, 4:15 PM
About a year ago I picked up a copy of CPU magazine in an airport and it had the article below in it. All of the machines I have applied the below hacks to have become a fair bit snappier. I have since become a subscriber and find it to be the best magazine for me because it is usually at or above my level of understanding.

Since this is blatant rip off of their stuff... consider subscribing.... or at least buy an issue if you see in on a shelf.

--------------------------BEGIN CPU MAGAZINE [MAR 2003]------------------------------

Use all your memory. WinXP swaps data into virtual memory (aka your hard drive) even when it doesn’t have to, which is why you will get mysterious disk activity in the background even if you have only one app open and a full gig of system RAM. You can force the OS to swap data to disk only when it runs out of volatile memory by adding a line to your System.ini file. Go to the Run dialog box and type msconfig to open the System Configuration Utility dialog box. In the System.ini tab, highlight [386enh] and click New to add a new line beneath this branch. Type ConservativeSwapfileUsage=1 in the empty box that appears, then click Apply and restart your PC. We found that this helped clean up game jerkiness because it reduces the background file swapping that causes video hiccups and pauses.

Down with dead DLLs. After you shut down a program, Windows tends to hold some of that app’s DLLs in memory, which hogs resources and can slow down your PC’s loading of the next app. End this behavior with a Registry tweak. (Before starting, you may want to check out all applicable instructions and warnings about proper Registry editing in the previous two Software Tips articles: December CPU page 94, January CPU page 95). Go to HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\EXPLORER and create a new subkey named AlwaysUnloadDLL. This will create a default DWORD value, which you should give a value of 1.

Mo’ memory, mo’ memory, mo’ memory. Two DWORD values, all at the same Registry key, may goose system performance by keeping more of XP’s code in memory at once. Use these values only if you are well stocked with RAM, preferably 512MB (although these tweaks may help systems with 256MB, as well). Go to HKEY_LOCAL_MACHINE\SYSTEM \CURRENTCONTROLSET\CONTROL\SESSIONMANAGER\MEMORYMANAGEMENT. The DisablePagingExecutive value controls whether XP pages data from memory to the hard drive, and changing the default value of 0 to 1 turns paging off and may make general operations faster.

Changing the LargeSystemCache value from its default of 0 to 1 tells XP to keep as much of its kernel in memory as possible. Monitor its effect on 256MB systems because it can actually worsen performance by forcing very large applications to swap to disk more often. These two tweaks produced noticeably smoother performance on our testbed with only 256MB.

Comments

TheHappyFriar wrote on 3/3/2004, 5:58 AM
Will these work with Win2k too?
theigloo wrote on 3/4/2004, 11:05 AM

If Win2K has the registry keys then yes.
mark30 wrote on 3/4/2004, 12:28 PM
Can you apply these settings apart from each other or do you have to do them all?

thx
smhontz wrote on 3/4/2004, 12:49 PM
ConservativeSwapfileUsage is a Win98/ME hack only and will do nothing for Windows 2000 / XP. And, you should be careful using the other tweaks because you may make your system unbootable. I suggest searching at support.microsoft.com for the other hacks to read the caveats before trying these.
theigloo wrote on 3/4/2004, 1:56 PM

Smhonts,

You might be right about the ConservativeSwapfileUsage point. I did not notice any increase in my RAM usage after applying it. In fact, when I looked at my page file, it was still at my previous manual setting. Makes you wonder why it's there.

As far as making the machine unbootable, I don't think that's an issue. I've been running these hacks on all my machines for about a year. Further, XP supports system restore wich you can access in safety mode.

Only apply these hacks if you have lots of RAM (They say 512 MB, but I would suggest a gig).
BillyBoy wrote on 3/4/2004, 2:07 PM
A few words of caution...

Each defrag application is a little different. For example Diskkeeper while popular can be poorly behaved. If you have removable drives and switch them in and out like I do even if you DISABLE automatic running which means the application shouldn't start up on its own, this application is so dumb it starts up anyway. So If you're in the middle of rendering, and it, not you decides to defrag that drive it will corrupt the file. Meaning how many hours you may have invested in rendering a project is totally wasted to say nothing of currupting the VEG file.

Why I don't use it anymore.
smhontz wrote on 3/4/2004, 2:22 PM
I was just pointing out the need to be cautious because someone was asking about Win 2k, not XP. When I did a search on Microsoft, the first article I found was "The DisablePagingExecutive Setting May Cause Windows 2000 to Hang"... didn't want anyone to blindly try a hack without knowing how to get out of it first...
riredale wrote on 3/5/2004, 9:18 AM
My laptop has been having a hard time playing a DVD cleanly, without occasional frozen frames. I tried the "Conservative swap file usage" trick mentioned, to no effect.

But then I stumbled across a web page that held the key. It said to check to see if the DVD drive in the laptop was in DMA mode (duh). Turns out, it wasn't--it was in PIO mode. I tried changing it, but after rebooting it the mode reverted back to PIO.

Then another web page mentioned the fix: in Device Manager, uninstall the secondary IDE channel (which was the one controlling the DVD drive). When rebooting, the computer finds the hardware out there, and reinstalls the software controlling that channel. Sure enough, the computer now works normally, and the DVD drive is DMA mode2.