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