This is part of how Prefetch works.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
Enable
[[Accepted values for this entry are Y or N. If the entry is set to Y,
Windows automatically optimizes the file location for boot optimization.
This optimization occurs automatically if the system is idle for 10
minutes. Boot optimization improves startup time by locating startup
files in contiguous clusters on the volume, reducing the movement of the
disk head when reading the volume.]]
Enable change to Y.
LcnEndLocation change to 0.
LcnStartLocation change to 0.
OptimizeComplete leave this one alone.
OptimizeError leave this one alone.
This will force any pending idle tasks to be executed immediately,
without having to wait a lengthy period of time. Now do this...
Open a command prompt...
Start | Run | Type: cmd | Click OK |
Type or paste this in the command prompt:
Rundll32.exe advapi32.dll,ProcessIdleTasks
Hit your Enter key.
Go do something else for a while. It can take 10 to 15 minutes for idle
tasks to complete.
After your hard drive is done thrashing open regedit again and go to...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
Enable should still be Y.
LcnEndLocation should have changed from 0 to a larger number.
LcnStartLocation should have changed from 0 to a larger number.
OptimizeComplete should have changed to Yes.
OptimizeError should be blank unless there was an error like Insufficient
space.
ProcessIdleTasks
Idle Task Scheduling: The ProcessIdleTask API
http://www.microsoft.com/whdc/system/sysperf/benchmark.mspx#EDAA
Also check this key...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Memory Management\PrefetchParameters
Look for EnablePrefetcher in the right pane, if the value is not 3,
Double click EnablePrefetcher and change the value to 3.
Values are (0 = disabled, 1 = Application launch prefetching, 2 = Boot
prefetching, 3 = Both prefetching). 3 seems to be the preferred option.
Exit regedit
This will take effect on next reboot.
It will take three boots to rebuild the Prefetch file.