Maintaining Windows XP System Performance? 159
jerud wonders: "I assume that most people on Slashdot are forced to, at some point, touch Windows. Further, I assume that many of them are forced to administer Windows boxes. I am in the unfortunate situation of using Windows for about 90% of my tasks, due to the nature of my job. As a firm believer in 'if it isn't broke don't fix it', I've delayed moving to XP for just about as long as possible, holding onto my Windows 2000 installation, while my brother spent a lot of time complaining about the XP issues he dealt with, at work. Finally, I made the transition and, low and behold, it didn't seem to bad. In fact, there were a few things that I really liked. Now, a few years later I have quite a few XP machines and they all share the same problem: over time they have slowed so noticeably that they have made even the most solid configurations run like they were made in 1999. Is there any regular treatment out there that can minimize this kind of system degradation?"
"Solid practices are in use on most of these machines, or at least the ones that are completely under my control. Even with that, I know these machines are much slower now then when I bought them. I really don't want to spend two weekends every year starting over from scratch, simply because thats the only way to reclaim performance."
Services (Score:2, Informative)
defrag the registry. (Score:5, Informative)
Start up monitor (Score:5, Informative)
A problem I had recently (Score:2, Informative)
Ask around, do dependancy checks run spy+ no great insight
Then a friend says "What anti-virus you use?"
"AVG, you know the free one"
"ARGHH dumpit, replace it with something else"
Turns out AVG puts some drivers into the pipeline so it can scan ethernet,USB and FireWire, so everytime the scanner sent a glob of the slide this software was checking to see if it was a virus!
And yes this continued AFTER I removed the 1364 network stuff, I even go as far as trying another card
My scanning speeds have droped from 5 mins a slide to 1.35mins, do you know how much more of a life I can have!
So have a look at device manager, choose view->devices by connection & tick hidden devices box, right near the top you'll see among much else you Antivirus drivers, some dumb some not so dumb
Re:Re-install from scratch (Score:4, Informative)
I'd recommend reinsatlling Windows, installing all your apps and patches. Then get a copy of Norton Ghost and take an image of your machine. Save that to a jillion CD's or a couple of DVD's and shelve them. When your box gets trashed again, slap the image back on and apply any updates from there. Saves some time.
-m
few things I've found (Score:3, Informative)
2)Disk Cleanup, Chkdsk, and Defragment the hard drive at least once a month. a lot of speed can be gained just by doing this regularly.
3)Protect windows like the plague. Patch to the latest revisions of Service packs, critical, and recommended updates. also use third party protection to protect against malware. Spywareblaster, Microsoft Antispyware and Grisoft AVG free edition are my personal favorites.
4)Keep system restore on and always make a restore point before you install anything. That way, if it screws up the machine after you installed it, you can uninstall it and roll the computer back to ensure that the system is totally clean of it.
5) If you got Norton ghost lying around, use it to make an image of your machine after you set it all up, that way you can roll back to that image just in case something really hoses windows.
So far, I've kept this mantra going with my machine. It's been a good 1 to 2 years since I reinstalled windows either from scratch or by ghost and I've haven't noticed any slowdown to date that I couldn't attribute to the machine getting more obsolete by the day.
Re:Start up monitor (Score:5, Informative)
Bruised registry (Score:4, Informative)
CCleaner (Score:4, Informative)
Windows XP Tune-Up Guide (Score:5, Informative)
It's a comprehensive step-by-step of what any aunt or uncle should be able to follow in order to free system resources and make for a better (faster!) desktop experience.
The usual speedups (Score:5, Informative)
Other small speedups:
Switch to the classic win2k theme.
If your wallpaper is a gif or jpeg, replace it with a bmp and disable active desktop. For anything other than bmps, it uses Internet Explorer to render your desktop.
Get more ram.
If less than about 20% disk free, delete stuff you don't need and then defrag.
Disable window animations and other eye candy.
Check for malware.
Install and run ShellExView. Some programs install shell extensions which can (but not usually) cause slowdowns and pauses in Windows Explorer. It should color code items depending on if they come with windows, if they are known, if they are known to be bad, or if they are unknown. I encountered a system where a Eudora shellexecute hook was causing the system to freeze for 2 minutes whenever you tried to start a program.
Disable the indexing service.
Disable/uninstall your virus scanner, if you're the type who never installs viruses.
16bit color is sometimes faster. You'll have to test for yourself.
Sometimes I get lucky with this one: In control panel->hardware->device manager, open the properties for the "Primary IDE Channel" and see whether it's in DMA or PIO mode. If it's in PIO mode, right click the "Primary IDE Channel" and click remove/uninstall, and reboot. I've encountered several systems where this was the cause of major slowdown. Windows occasionally encounters timeouts reading from the hard drive, and sometimes mistakingly assumes that stepping down to a slower transfer mode will solve the problem. I see it happen most on systems that go to sleep a lot. Microsoft's website says it's fixed, and shouldn't happen much at all in the future, but you'll still need to do the fix I described on systems that already have the problem.
Some people suggest removing System Restore. I've had occasions where it helped out a lot, like when a Microsoft Windows Update badly broke my system, so I can't recommend disabling it unless you don't mind the occasional reinstall.
I'm typing this on Linux, so some of the above instructions might be slightly off, but are generally correct.
nLiteOS? (Score:3, Informative)
Also, remember to have a sane partitioning scheme, in case you need to reinstall. You might want to use FAT for your data partition; that way, you can read it via a Knoppix CD in a real emergency.
Some registry tweaks (Score:3, Informative)
IoPageLockLimit: increases the amount of pages that can be locked into memory. Changing this setting can improve performance although there is some controversy over this setting's effectiveness. Make sure that you have at least 256MB of RAM. HKEY_LOCAL_MACHINE\SYSTEM\CONTROL\CURRENTCONTROLS
LargeSystemCache: This setting is primarily used for servers but can help improve performance. Again, it's effectiveness may be controversial. It is located at HKEY_LOCAL_MACHINE\SYSTEM\CONTROL\CURRENTCONTROLS
DisablePageExecutive: Again this is a controversial setting. You may or may not notice a difference in performance and it is driver sensitive so be forewarned about using it. It too has the potential to cause crashes after being enabled. This setting prevents kernel memory from being paged. It is located at HKEY_LOCAL_MACHINE\SYSTEM\CONTROL\CURRENTCONTROLS
Note: Any problems encountered from changing these settings will be noticed on next boot. They are a "either it's fine or it isn't" settings.
To reduce boot time, you can disable autodetection of devices on IDE controllers that have no devices connected to them. This can be done from the device manager. Also, adjust Windows for best performance and turn off the themes service.
Lastly, there's XPlite [litepc.com] which can help cut down on some of the fat. Also, be sure to check out TweakXP.com [tweakxp.com] for more XP performance tweaks. And there's nLite [nliteos.com]. Unlike XPlite, nLite allows you to remove Windows components before installation. It also has service pack integration.
Maintenance Installation (Score:3, Informative)
The main advantage of doing this is that you'll have full access to your XP installation without having any system files blocked. What I did was take a fresh install of XP (with all of my base drivers and applications installed) and make a copy of the Windows, Program Files, and Documents and Settings directories. Now, if I feel that my XP installation is getting bloated to the point where I can't fix it anymore, I can "reinstall" XP by booting into my maintenance partition and replacing those directories. As long as you are booted into another partition when you do it, Windows is completely oblivious to the fact that you've just replaced your primary OS.
Having a maintenance partition is also advantageous when defragmenting your primary partition, since no system files will be locked. It's also handy if you suspect you've been infected with a rootkit, since that seems to be a trendy topic at the moment.
Its Explorer (Score:3, Informative)
Re:Run as a Non-admin User (Score:2, Informative)
A couple of tips, in case someone might not be familiar with these...
Running as a plain old User privileges may be good for some situations, but I run my XP box with Power User privileges for a bit more power. This option is not presented by the Control Panel applet, but is available through Computer Management, opened by right-clicking My Computer and selecting Manage. Once there, go to System Tools -> Local Users and Groups -> Groups. Double-click Power Users on the right-side window and add your user account to the group.
For more info on the differences between the privilege levels, see here [wellesley.edu].
If you use applications that require admin privileges, either use the Run as... command from the right-click menus of the shortcuts (or the runas command inside the cmd shell), or modify the shortcuts permanently so clicking them always produces the dialog for entering alternate credentials: right-click an icon, choose Properties, click Advanced inside the Shortcut tab and check the box labeled Run with different credentials.
XP and DMA mode auto-loss (Score:3, Informative)
This behaviour occurs with the following conditions:
Windows XP is the operating system
A CD-ROM, DVD-ROM, or sometimes even a HDD, which is known to support DMA mode now works only in PIO mode.
The drive controller is set to use "DMA if available" but reports to be only in PIO mode.
Following is the mechanism that has worked for me, please try it at your own risk, it involves hacking the registry:
Open RegEdit
Find the following KEY:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contr
The last four digits will be 0000, 0001, 0002, 0003, and so on.
Under each key, delete all occurences of the following values:
MasterIdDataChecksum
SlaveIdDataChecksum
Reboot the computer. Windows will now redetect DMA settings.
This happens if a device on the bus has been getting periodic errors either because of a hardware problem or because of scratched or copy-protected CDs. XP steps down the DMA to try and stop the errors because it assumes it is a hardware problem.