Prefetch folder question

D

DJS0302

How does Windows determine what to delete from the prefetch folder? Does it
delete unused entries after a certain period of time or does it wait till the
folder reaches a certain size and then delete the oldest entries. I installed
XP on April 19th of this year and I noticed that the prefetch folder kept
getting larger and larger. Yesterday I opened it and I noticed it was a lot
smaller. What determines how often the prefetch folder gets cleaned out and
can you change it? Anything I've read only mentions manually deleting all the
files except layout.ini and then letting Windows rebuild the information in the
folder.
 
R

Ronnie Vernon MVP

DJS0302 said:
How does Windows determine what to delete from the prefetch folder?
Does it delete unused entries after a certain period of time or does
it wait till the folder reaches a certain size and then delete the
oldest entries. I installed XP on April 19th of this year and I
noticed that the prefetch folder kept getting larger and larger.
Yesterday I opened it and I noticed it was a lot smaller. What
determines how often the prefetch folder gets cleaned out and can you
change it? Anything I've read only mentions manually deleting all
the files except layout.ini and then letting Windows rebuild the
information in the folder.

Deleting all of the prefetch files is not necessary and will actually cause
the loading of programs to initially slow down. Here is a good description
of the prefetch process posted by MVP Alex Nichol.

"When a program is loaded, a record is put, or updated, in the
corresponding file in Prefetch, detailing what files it uses, in what
order. Boot of the system has such a record, too

From that two things happen.

One - when a load is started in future, the system arranges to get the
expected files into RAM straight away, without waiting to be asked, and

Two - every three days, a sort of semi-defrag run is done in a quiet
period, which arranges files so that such sets will be able to load as a
smooth stream without need to hunt around the disk for them. The boot
side of this speeds load of the system: the Bootvis program does a
preliminary optimisation of their layout, but it will take place, and
better, through the automatic process. The details of the best layout
are kept in the layout,inf file which is checked and updated each time
this optimisation runs, for the best overall performance. This can be
used for optimisation alternatively by some third party defrag programs,
eg Perfect Disk Pro

Two points:

Contrary to what is said , it is *not* necessary to empty prefetch.
Any program that does not get used for a week will have its file dropped
out anyway: ones that are rarely used get low priority in optimisation

and:
The optimisation at regular intervals is initiated by task scheduler so
you need to have it running for this to work (also for System Restore
to make its daily restore point) even though no scheduled task appears
if you look in control Panel - Scheduled tasks. Check the Advanced menu
there, and if it says 'Start Using. . ' click that so it says 'Stop
using . . .' It then looks for a time when the system is quiescent (I
think it waits for 15 mins of no disk activity, but am not sure on
that). This is one reason for the query 'my hard disk goes chattering
when I am doing nothing'; the other being search engine indexing.

Alex Nichol MS MVP (Windows Technologies)"


--
Ronnie Vernon
Microsoft MVP
Windows Shell/User

Please reply to the newsgroup so all may benefit.
http://www.dts-l.org
http://www.mvps.org
 
A

Alex Nichol

DJS0302 said:
How does Windows determine what to delete from the prefetch folder? Does it
delete unused entries after a certain period of time or does it wait till the
folder reaches a certain size and then delete the oldest entries.

It will drop entries for programs that have not been used for (I think)
a week - or a bit more. It will also drop the least used ones if there
are more entries than it can handle in an optimisation pass - something
like 30

The folder is not big; it is just a small file for each program
recording the pattern of loading of files when it loads up. Then next
time the system can get loading of all of them under way without being
asked. And twice a week it does the 'optimise' to try to lay them all
out to get best overall load time for the whole collection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Prefetch Layout.ini 3
Prefetch folder empty 1
re-populating the prefetch folder 5
What are PREFETCH files for? 24
Prefetch question 48
Windows XP Prefetch Not Working good 1
XP's prefetch myth/s... 3
Prefetch Folder 4

Top