Fix Windows boot up time

Ryanwb

ASFN IDOL
BANNED BY MODERATORS
Joined
May 13, 2002
Posts
35,576
Reaction score
6
Location
Mesa
Why windows takes so long to start up.



Most of us have had a brand new computer at one time. It's a great feeling. You boot up windows and within 30 seconds you are surfing the net, checking your email, or playing your favorite game. 10 months down the road things aren't so nice anymore. You power up your computer and it seems to take forever to load.

Even when you are careful about what you install it seems that each day it takes longer for it to boot. It's not your imagination - and there are a couple of good tips to keep your boot time short and sweet.

As always - backup your system before you start any of this. If you make a mistake you might need to restore from backup

Update (09/08/2006) - There has been some controversy about the prefetch folder. I think this issue needs to be looked into. I did have a reputable source for this information: It was the "Windows XP Annoyances" book by O'Reilly. Page 210. Titled "Keeping an eye on prefetch"

The prefetch cache

The tip I want to talk about is the windows prefetch. Windows XP has this feature that loads commonly used programs - at boot time.

Here is how it works: Yesterday you used MS Word, and Duke Nukem 3D. Today you boot your system to check e-mail. It sees parts of these two programs in the prefetch folder and loads them into memory before windows completes the boot process. The benefit is faster application launch times. If you really wanted to use MS Word, it would pop up really quick when you double clicked on it.

The problem is most people have been running windows for years, and the prefetch gets clogged with stuff that you almost never use. Windows takes forever to boot because it is prefetching a 1.0 copy of Napster, and you just want to check your email before you have to go to work.

What can be done about it? Well there are a few things we can do to tweak the prefetch cache. One method is to disable it partially, and this can be done quite easily.

Simply browse to the windows folder (Ex: C:\Windows) and under there you should see the prefetch folder. Go into the prefetch folder and delete all the files (Careful! It should look like this c:\windows\prefetch) And here is a screenshot of one if you still have questions


The first thing to note is the next reboot will be slow. This is because windows needs to relearn the prefetch for system files. Subsequent boots will run much faster since the sludge of programs has been removed, and only new ones are in the cache.

The trouble is that it will only help you for a while - until the prefetch gets clogged up again. We need to edit a registry key to tweak it. Open regedit and browse to this key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters

Under this key you should see a value named: EnablePrefetcher

It has 4 possible values:

0 - Disabled : The prefetch system is turned off.

1 - Application : The prefetch only caches applications.

2 - Boot : The prefetch only caches boot system files.

3 - All : The prefetch caches boot, and application files.

We don't want to disable it entirely. This would actually make boot times *longer*. This is because this feature is also used to speed up the loading of boot files. That is why we are going to pick the number 2 option. It allows us to keep the advantage of caching system files, without continually clogging the system up with applications.

Set the value to 2 and reboot.

The 2nd time you boot it should boot much faster. Remember that the side effect is that launching individual applications once windows has loaded will now be slightly slower.
 

Chaplin

Better off silent
Joined
May 13, 2002
Posts
46,389
Reaction score
16,890
Location
Round Rock, TX
I take it you can't just delete specific files, for example, say I have files for these:

Madden 02
NBA Live 03
Noone Lives Forever
Wordperfect
Microsoft Office 2003
Norton Utilities
Photoshop

You don't play the games or use Wordperfect anymore, but use the others frequently. Can you just remove the old stuff? If so, what does that mean for altering the registry?
 

BillsCarnage

ASFN Addict
Joined
Dec 2, 2005
Posts
5,827
Reaction score
1,197
Location
The Flip Side
I'm curious if the prefetch really does what it's implied to do.

I dump my prefetch once a month and it's usually about 4-6mb worth. It doesn't actually store the .exe, but rather a link to it along with frequency of use data, etc (i'm guessing on that as the extension is .pf). Not to mention there are will be multiple .pf files of the same app.

Second, does it really load the app into memory? If it did and based on the apps it's preloading then wouldn't your ram usage at startup be rather high? I get a typical 256-300mb on XP when it starts.

And, quite frankley, i've never noticed any faster loading apps w/ the prefetch.

I understand MS's reasoning behind the prefetch, but have never noticed any siginficant difference.


to keep my comp running smoothly once a month i:
delete cache
delete temp folder contents (w/in user profiles and \windows if there's one)
delete prefetch contents
dump recycle bin
defrag - an often overlooked key
 

EndZone

Hall of Famer
Joined
May 14, 2002
Posts
2,369
Reaction score
38
Location
New York
I did this and it has helped. I did it last week and haven't had any problems since and I do get somewhat faster boot times. Another thing I did was go into

regedit HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion>Run

there are a bunch of processes in there that run everytime your PC boots up. If you go through and delete the ones you don't need it will help too. If you don't know if you need it or not do a search on the process name and there should be a couple sites out there that will tell you what it is and what to do with it. I have to run now but I will post a link to those sites later today.
 

Pariah

H.S.
Supporting Member
Joined
Feb 3, 2003
Posts
35,345
Reaction score
18
Location
The Aventine
regedit HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion>Run
That did work for me. Maybe I'm doing it wrong...I went to start, run, then cut and pasted the above. Got a message saying windows couldn't do it...
 

Chaplin

Better off silent
Joined
May 13, 2002
Posts
46,389
Reaction score
16,890
Location
Round Rock, TX
That did work for me. Maybe I'm doing it wrong...I went to start, run, then cut and pasted the above. Got a message saying windows couldn't do it...

just type "regedit" (not the whole line), and then it will look like a regular windows folder directory structure
 
Top