Thursday, April 28, 2011

To test: Moving the Windows XP prefetch cache onto a flash drive

Need to test this to see if it works. If flash drive is not available at boot time (i.e. USB flash drive) it might possibly cause an error.

Disable the prefetch cache with the following registry modification:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnablePrefetcher=0

Reboot to make the change take effect.

Move prefetch directory to the new location and replace it with a hard link to that location. To force a rebuild of the cache:

Now enable the prefetch cache and reboot again:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnablePrefetcher=3

Notes:

"rundll32.exe advapi32.dll,ProcessIdleTasks" will rebuild the prefetch cache and do a defrag of the system files listed in Layout.ini (and should recreate that file if it was deleted)