Avast WEBforum

Other => General Topics => Topic started by: polonus on November 24, 2006, 02:27:32 PM

Title: Flush the Windows XP Prefetch log!
Post by: polonus on November 24, 2006, 02:27:32 PM
Hi malware fighters,

Cleaning up the Win XP Prefetch file can be advisable for better performance, and freeing some space on your HD. There is a special tool to do this:
http://www.majorgeeks.com/download2495.html

Tool for flushing the Prefetch log and controlling the Prefetch Parameters.

Prefetch is available to load websites faster.

polonus


Title: Re: Flush the Windows XP Prefetch log!
Post by: Vlk on November 24, 2006, 02:43:44 PM
I'd recommend against doing this. 8)
Title: Re: Flush the Windows XP Prefetch log!
Post by: DavidR on November 24, 2006, 02:46:10 PM
Flushing the Prefetch log could initially have a detrimental effect as it will take at least three boots to rebuild the layout.ini file.

If you are concerned about the size of the prefetch folder, you can restrict the files that it monitors, mine is set to only monitor files that run on boot. Currently my prefetch folder is a huge ;D 0.97MB so no space overhead at all.
Title: Re: Rather not flush the Windows XP Prefetch log!
Post by: polonus on November 24, 2006, 03:11:05 PM
Hello Vlk and DavidR,

Good we have that cleared then. I had this program and info  from a reliable site as I have experienced "Majorgeeks"to be. The only consideration was privacy related, but as this farfetching crapcleaning bears stability risks as you two so aptly informed, we'd better not tamper with it then. Point taken, lesson learned! But that actually is one of the big advantages of this here webforum to get at and behind the facts. And everybody can be aware of that now. Again thanks for your reaction,

polonus
Title: Re: Flush the Windows XP Prefetch log!
Post by: bob3160 on November 24, 2006, 03:19:10 PM
Quote
Cleaning up the Win XP Prefetch file can be advisable for better performance
Unfortunately, doing this has just the opposite affect. It will adversely affect your performance.
This is also a subject we've discussed on several occasions and not always on a nice and friendly basis..... :'(
Title: Re: Flush the Windows XP Prefetch log!
Post by: essexboy on November 24, 2006, 07:14:30 PM
The only time that I would clear prefetch is after a serious malware infection.  More as a tidying up exercise than anything else, so that anti-spy tools don't latch onto the old files and give the misleading impression of malware still active
Title: Re: Flush the Windows XP Prefetch log!
Post by: Gene J on November 25, 2006, 08:31:28 AM
I went into the registry a couple of years ago and turned prefetch off. I find it a bit slower when I click "back" since it has to load the page each time from scratch. When loading a new page of course it makes no difference. If I had Win98 or a slow comp on dial-up I would still have prefetch on. Remember, If you do a repair install it automatically turns prefetch back on. This is another topic on which each person seems to have their own preference.

Edit: I found this excellent article in MSDN Magazine by Mark Russinovich and David Solomon that explains how prefetch works in WinXP. I have now started up prefetch. I stand corrected. Thanks guys.

http://msdn.microsoft.com/msdnmag/issues/01/12/XPKernel/default.aspx

DavidR: You are right, prefetch does not affect webpages. Since it is now loading pages (and going "back") faster now that I have enabled prefetch, I assume that browser settings are prefetched however. Thank you for getting me thinking about prefetch.
Title: Re: Flush the Windows XP Prefetch log!
Post by: timcan on November 25, 2006, 01:46:56 PM
Hi, I use ccleaner like so many people do,and it cleans 'old prefetch data' by default.I've never noticed any problems using this.So is it adviseable to uncheck this option in ccleaner?
Title: Re: Flush the Windows XP Prefetch log!
Post by: DavidR on November 25, 2006, 02:19:21 PM
I went into the registry a couple of years ago and turned prefetch off. I find it a bit slower when I click "back" since it has to load the page each time from scratch. When loading a new page of course it makes no difference. If I had Win98 or a slow comp on dial-up I would still have prefetch on. Remember, If you do a repair install it automatically turns prefetch back on. This is another topic on which each person seems to have their own preference.

Gene the prefetch we are talking about has nothing to do with your browser, back button or cache. It registers the location on the HDD of programs that run on boot and after depending on settings. Since the location of the file on the HDD is known it loads it doesn't have to search for it.
Title: Re: Flush the Windows XP Prefetch log!
Post by: bob3160 on November 25, 2006, 05:33:29 PM
timcan,
I have that unchecked in my settings for Ccleaner.
Only because I don't consider the prefetch log crap and therefore don't want it cleaned.
Title: Re: Flush the Windows XP Prefetch log!
Post by: RejZoR on November 26, 2006, 10:15:11 AM
Flushing prefetch data is only recommended after very long periods of time (2 years for example). And even here i think Windows clean old stuff automatically anyway...
Title: Re: Flush the Windows XP Prefetch log!
Post by: Lisandro on November 26, 2006, 12:55:40 PM
And even here i think Windows clean old stuff automatically anyway...
Are you sure...? I think the entries of the prefetch folder stay there forever..., even programs that no long exist anymore  ::) ???
Title: Re: Flush the Windows XP Prefetch log!
Post by: bob3160 on November 26, 2006, 06:44:10 PM
And even here i think Windows clean old stuff automatically anyway...
Are you sure...? I think the entries of the prefetch folder stay there forever..., even programs that no long exist anymore  ::) ???
Tech,
Maybe this will give you a better insight:
http://www.edbott.com/weblog/archives/000743.html
Title: Re: Flush the Windows XP Prefetch log!
Post by: Lisandro on November 26, 2006, 07:02:34 PM
Maybe this will give you a better insight: http://www.edbott.com/weblog/archives/000743.html

I've read this there:
Quote
If you never run the program again, that .pf file never gets used, and in fact it gets deleted eventually.
But I did not find any technical answer: how, when, why... Windows delete a .pf file  ::) ???

I've also found this:
Quote
Windows cleans out old files here automatically, and it uses the current information simply as instructions to help load programs more efficiently. If you delete a program, its layout and trace files go unused and are deleted within weeks.

I'll have to believe, although I can't understand how it's being done...
Title: Re: Flush the Windows XP Prefetch log!
Post by: bob3160 on November 26, 2006, 07:15:00 PM
Guess that's something you'll have to ask Microsoft about.
The article however does poin't out that the prefetch log should NOT be deleted or cleaned out.
 
Title: Re: Flush the Windows XP Prefetch log!
Post by: FreewheelinFrank on November 26, 2006, 07:20:26 PM
The only reference I can see to Prefetch files being deleted is this:

Quote
For one thing, XP will just re-create that data anyways; secondly, it trims the files anyways if there's ever more than 128 of them so that it doesn't needlessly consume space.

http://blogs.msdn.com/ryanmy/archive/2005/05/25/421882.aspx
Title: Re: Flush the Windows XP Prefetch log!
Post by: Lisandro on November 26, 2006, 07:26:38 PM
The article however does poin't out that the prefetch log should NOT be deleted or cleaned out.
I fully agree with this... I just want to know the other point.
Discussing if Windows XP Prefetch folder should be flushed or not is useless... you should not clean it.
What I can't understand is why CCleaner, for instance, still have this option there  ::)
Title: Re: Flush the Windows XP Prefetch log!
Post by: FreewheelinFrank on November 26, 2006, 07:50:31 PM
Quote
I just want to know the other point.

According to the MS man, the number of Prefetch files will not be allowed to go over 128. I assume Windows will delete the least used, but that's just a guess.

Title: Re: Flush the Windows XP Prefetch log!
Post by: FreewheelinFrank on November 26, 2006, 08:56:34 PM
Quote
What I can't understand is why CCleaner, for instance, still have this option there

The reason I heard on the CCleaner forum is that you might want to remove all traces of a program you installed. Somebody put it more bluntly on Warp2Search:

Quote
Commentary misses the point with knee-jerk reaction. The prefetch cleaning option is not intended to increase performance but simply remove a run history of applications. Users may not want it recorded that they ever ran pr0nmaster5000.exe or continue to do so from a removeable flash drive.


http://www.warp2search.net/modules.php?name=News&file=article&thold=-1&mode=flat&order=0&sid=25820

Of course, as CCleaner only removes Prefetch files over two weeks old, this is not exactly going to work as a privacy clean up tool.  :P
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:18:30 AM
Hi malware fighters,

Cleaning up the Win XP Prefetch file can be advisable for better performance, and freeing some space on your HD. There is a special tool to do this:
http://www.majorgeeks.com/download2495.html

Tool for flushing the Prefetch log and controlling the Prefetch Parameters.

Prefetch is available to load websites faster.

polonus
God why does this Myth never die? The Windows XP Prefetcher has nothing to do with loading websites faster. You are confusing Browser Prefetching such as Fasterfox with Windows XP Prefetching. Windows XP Prefetching is already configured optimally by default and should never be cleaned or disabled. Unless of course you want Windows and all of your applications to load SLOWER! Prefetching simply optimizes how applications and Windows XP loads.

Anyone who recommends cleaning the folder, disabling the Windows XP Prefetching or "tweaking" it in ANY way has absolutely NO idea how it works.

http://mywebpages.comcast.net/SupportCD/XPMyths.html (http://mywebpages.comcast.net/SupportCD/XPMyths.html)
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:20:52 AM
Flushing the Prefetch log could initially have a detrimental effect as it will take at least three boots to rebuild the layout.ini file.

If you are concerned about the size of the prefetch folder, you can restrict the files that it monitors, mine is set to only monitor files that run on boot. Currently my prefetch folder is a huge ;D 0.97MB so no space overhead at all.
Concerned? The folder never gets over 128 entries in it which averages around 5MB. It is self cleaning at 128 entries. Disabling application prefetching will slow down how long ALL you applications take to load! You should NEVER do this unless you want your applications to load slower. Anyone who is concerned about the ridiculously little disk space this takes up does not understand Windows XP Prefetching.
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:23:01 AM
The only time that I would clear prefetch is after a serious malware infection.  More as a tidying up exercise than anything else, so that anti-spy tools don't latch onto the old files and give the misleading impression of malware still active
Nope that is another Myth. Prefetch files are non executable. If a file is an actual malware file (rare) and is located in the prefetch folder, it will have a different extension other than .pf and you should just delete that file NOT the whole contents of the Prefetch folder. Do you delete the Windows folder if you find an infected file? Nope.
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:27:04 AM
Hi, I use ccleaner like so many people do,and it cleans 'old prefetch data' by default.I've never noticed any problems using this.So is it adviseable to uncheck this option in ccleaner?
Bad idea, this will reduce performance since it cleans the Prefetch folder's files based on the NTFS last access date for each when they are two weeks old. This is idiotic for a number of reasons, first the folder is self cleaning by Windows XP when it reaches 128 entries and outdated or unused prefetch files in NO WAY negatively effect performance ever. Even worse is if you have the NTFS last access date turned off this will clean the whole folder! Never select this option and it is FINALLY disabled by default in the latest version of CCleaner but should be removed completely. The makers of CCleaner have no concept of how the Windows XP prefetcher works.

 CCleaner Cripples Application Load Times (http://poptech.blogspot.com/2005/10/ccleaner-cripples-application-load.html)
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:28:53 AM
And even here i think Windows clean old stuff automatically anyway...
Are you sure...? I think the entries of the prefetch folder stay there forever..., even programs that no long exist anymore  ::) ???
Nope it is automatically cleaned at 128 entries.
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:30:17 AM
I'll have to believe, although I can't understand how it's being done...
Windows assigns a value to all prefetch files and only the most used (important) 32 are kept once the 128 limit is reached.
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 05:33:34 AM
What I can't understand is why CCleaner, for instance, still have this option there  ::)
Because the maker of CCleaner has no concept of how Windows Prefetching works. If he spent five minutes talking to a member of the Windows Client Performance team he would know. It only proved his ignorance when he started locking and deleting all topics about it in his forum, only to wait almost ten months to remove it from the default because the evidence was undeniable.

I am surprised Frank did not reference my extensive XP Myths site on this issue which covers it in depth. ;D
Title: Re: Flush the Windows XP Prefetch log!
Post by: polonus on December 01, 2006, 08:21:02 AM
Hi Mastertech,

But how about pre-fetch and the elimination of evidence. You won't stand a chance with the secret life inside Windows, and what goes on the general public is not aware of.
But could not it be that the contents of the PreFetch folder could give you away, if educated people (forensics)  would like to search the contents of your computer. Would you stand a chance? To-day with all the external content retaining even your airbag blackbox data can land you in jail for life, elimination of certain data could be vital to your well being, leaving the pre-fetch folder on or the way "delete" works with Windows makes it a dangerous machine. I have nothing to hide, but those that had should stay miles away from any technical apps (computer, printer, cell phone, etc).
Is there ueberhaupt a way to use Windows sothat your privacy is guaranteed?

polonus
Title: Re: Flush the Windows XP Prefetch log!
Post by: Mastertech on December 01, 2006, 12:24:35 PM
What could someone get from your Prefetch information? That you ran the programs you have installed on your PC? I think the personal information in your My Documents folder would be of more interest.

Unless you routinuely run a US DOD level wipe of deleted files then they can find quite a bit out.