none
Windows Performance Analyzer error

    Question

  • Hi..

    I'm new to the Windows Performance Toolkit and would appreciate some help with regards to an error I have been receiving.

    It occurs after running the following command:
    xbootmgr.exe -trace boot -prepSystem

    The system reboots and the trace process continues as it should.  Then the system restarts again and after the trace countdown finishes after logging back on, i'm faced with the following error:
    Failed to save prefetcher data (C:\Windows\prefetch\layout.ini) in cab archive (stage 1, error 0)
    Failed to defragment disk after 5 attempts.
    PrepareSystem failed.
    Couldn't find kernel logger in active logger list.
    Couldn't find user-mode logger in active logger list.

    I have recently trialled UltimateDefrag 2008 and when launching the program, it offered to disable boot optimizing as it could interfere with the defrag process.  I allowed it to change the setting and assumed that any changes would be reversed when I uninstall the program.  I have since uninstalled UD2008 and have had to reset the registry value manually.  However, i'm not sure if there's any other changes UD2008 may have made that could be linked to the error above.

    I'm running Vista Ultimate x32 SP1 plus all updates
    Intel E6600 conroe overclocked to 3.2GHz (stable)
    2GB Corsair DDR2 XMS2-6400C4 RAM
    ATI Radeon HD 3850 Pro Xtreme 512MB GDDR3 GPU
    Corsair HX620W Modular PSU
    ASUS P5K-E WiFi

    Any help would be greatly appreciated.  If you need any further information, i'll be happy to provide it.

    Thanks in advance :)
    Thursday, May 21, 2009 9:50 AM

All replies

  • Hi Nick,

    Which version of WPT are you using?

    Thanks,
    Michael
    Tuesday, May 26, 2009 6:40 PM
    Owner
  • Hi Nick,

    Which version of WPT are you using?

    Thanks,
    Michael

    Hi Michael,

    thanks for the reply and apologies for the delay in getting back to you.

    I'm using WPT v4.1.6512
    Thursday, June 18, 2009 10:02 AM
  • Hi Nick,

    Can you please try to repro using WPT 4.5 that is part of the Windows 7 RC SDK? You can find the ISO here: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6db1f17f-5f1e-4e54-a331-c32285cdde0c and the web-installer here: http://www.microsoft.com/downloads/details.aspx?familyid=F75F2CA8-C1E4-4801-9281-2F5F28F12DBD&displaylang=en.

    Let me know if you are still hitting the same issue.

    Thanks,
    Michael
    Friday, June 19, 2009 4:46 AM
    Owner
  • Hi Michael..

    I finally got round to downloading the ISO and extracting the new version of WPT.  I get a similar error now when I run:
    xbootmgr.exe -trace boot -prepSystem

    Failed to defragment disk after 5 attempts
    PrepareSystem failed
    Couldn't find kernel logger in active logger list
    Couldn't kind user-mode logger in active logger list

    If you have any suggestions, I would be very grateful

    Cheers..

    Nick :)
    Tuesday, June 30, 2009 7:09 AM
  • Hello All !

    I got the same problem, with WPT 4.1, I got this error message when I do "xbootmgr.exe -trace boot -prepSystem":

    Failed to save prefetcher data (C:\Windows\prefetch\layout.ini) in cab archive (stage 1, error 0)
    Failed to defragment disk after 5 attempts.
    PrepareSystem failed.
    Couldn't find kernel logger in active logger list.
    Couldn't find user-mode logger in active logger list.

    but when I use WPT 4.5 my computer reboot six times (against two with WPT 4.1) and xbootmgr freezes when it try to defrag, then after a reboot
    it can save prefetcher data but still can't defrag, error:

    Failed to defragment disk after 5 attempts
    PrepareSystem failed
    Couldn't find kernel logger in active logger list
    Couldn't kind user-mode logger in active logger list

    Log xbootmgr:

    [2009/06/30-12:50:32.446] ReadyBoot detection: last boot status is 1, assuming virtual prefetcher ran.
    [2009/06/30-12:50:32.462] Waiting for prefetcher...
    [2009/06/30-12:50:32.462] Waiting for prefetcher done.
    [2009/06/30-12:50:32.462] Saving prefetcher data...
    [2009/06/30-12:50:33.351] Saved prefetcher data from C:\Windows\prefetch\NTOSBOOT-B00DFAAD.pf in cab archive
    [2009/06/30-12:50:33.975] Saved prefetcher data from C:\Windows\prefetch\layout.ini in cab archive
    [2009/06/30-12:50:33.991] Preparing system...
    [2009/06/30-12:50:33.991] Launching attempt #1 to defragment disk...
    [2009/06/30-12:53:57.217] ProcessIdleTasks returned.
    [2009/06/30-12:53:57.217] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.
    [2009/06/30-12:53:57.217] Launching attempt #2 to defragment disk...
    [2009/06/30-12:54:27.434] ProcessIdleTasks returned.
    [2009/06/30-12:54:27.434] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.
    [2009/06/30-12:54:27.434] Launching attempt #3 to defragment disk...
    [2009/06/30-12:54:56.154] ProcessIdleTasks returned.
    [2009/06/30-12:54:56.154] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.
    [2009/06/30-12:54:56.154] Launching attempt #4 to defragment disk...
    [2009/06/30-12:55:24.140] ProcessIdleTasks returned.
    [2009/06/30-12:55:24.140] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.
    [2009/06/30-12:55:24.140] Launching attempt #5 to defragment disk...
    [2009/06/30-12:55:52.626] ProcessIdleTasks returned.
    [2009/06/30-12:55:52.626] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.
    [2009/06/30-12:55:52.626] Failed to defragment disk after 5 attempts.
    [2009/06/30-12:55:52.626] PrepareSystem failed.
    [2009/06/30-12:55:52.626] Stopping trace...
    [2009/06/30-12:55:52.938] Couldn't find kernel logger in active logger list.
    [2009/06/30-12:55:52.938] Couldn't find user-mode logger in active logger list.
    [2009/06/30-12:55:52.938] Unregistering auto-run...
    [2009/06/30-12:55:52.938] Completed auto-run change.

    Thanks in advance :)
    (sorry for my english, i'm french...)

    I'm running Windows Vista Ultimate SP2 with all updates
    on Asus F3Ke Laptop with AMD Turion 64 x2 TL-60 2GHz
    2GB Qimonda DDR2-667 SDRAM
    ATI Mobility Radeon X2300 256MB
    I got Windows XP Pro SP3 and Windows Seven RC1 in multiboot on the same machine
    • Edited by Tuxtox Tuesday, June 30, 2009 12:26 PM
    Tuesday, June 30, 2009 11:41 AM
  • Hey Guys :)

    Here some news...

    The ReadyBoost service (EMDMgmt) was disabled, so I put it on Automatic Startup,
    and, in Reliability and Performance Monitor -> Data Collector Sets -> Startup Event Trace Sessions -> the ReadyBoot item was disabled, so I activated it...
    and re-run xbootmgr...

    I've win more than a minute in boot process (1 min. 50 sec. before and 0 min. 40 sec. after changes to boot)

    but xbootmgr is still freezing when it try to defrag !

    log xbootmgr:

    [2009/06/30-18:57:20.851] Detected Win6 physical (ReadyBoot) prefetcher.
    [2009/06/30-18:57:20.882] Waiting for prefetcher...
    [2009/06/30-18:57:20.960]     the latest prefetcher trace file is 'C:\Windows\prefetch\ReadyBoot\Trace6.fx'...
    [2009/06/30-18:57:31.053]     the latest prefetcher trace file is 'C:\Windows\prefetch\ReadyBoot\Trace6.fx'...
    [2009/06/30-18:57:41.147]     the latest prefetcher trace file is 'C:\Windows\prefetch\ReadyBoot\Trace7.fx'...
    [2009/06/30-18:57:41.147] Waiting for prefetcher done.
    [2009/06/30-18:57:41.147] Saving prefetcher data...
    [2009/06/30-18:57:41.817] Saved prefetcher data from C:\Windows\prefetch\layout.ini in cab archive
    [2009/06/30-18:57:45.374] Saved prefetcher data from C:\Windows\prefetch\ReadyBoot\ReadyBoot.etl.old in cab archive
    [2009/06/30-18:57:45.374] Saved prefetcher data from C:\Windows\prefetch\AgCx*.db in cab archive.
    [2009/06/30-18:57:45.702] Saved prefetcher data from C:\Program Files\Microsoft Windows Performance Toolkit\bootPrep_BASE+CSWITCH_6.ppf.newPlan in cab archive
    [2009/06/30-18:57:45.717] Preparing system...
    [2009/06/30-18:57:45.717] Launching attempt #1 to defragment disk...       <--- xbootmgr freezes at this moment

    Thanks :)
    Tuesday, June 30, 2009 5:21 PM
  • I have got it working on my pc now....more luck than judgement though.

    @Tuxtox: Let us know what values you have under the following registry keys please:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher

    All I did was change one value and created another and it works ok for me now.
    Friday, July 03, 2009 5:38 PM
  • Hello Nick,

    I am happy that it works for you,
    my registry values are the following ones:

    for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction

    Enable = N
    LcnEndLocation = 0
    LcnStartLocation = 0
    OptimizeComplete = No
    OptimizeError = Missing Registry Entries

    and for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher

    BootFilesOptimized = 1
    LastDiskLayoutTime = 8b b3 8c 31 48 fa c9 01
    LastDiskLayoutTimeString = 2009/07/01-14:33:53

    Thanks
    Saturday, July 04, 2009 11:16 AM
  • Hello Nick,

    I am happy that it works for you,
    my registry values are the following ones:

    for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction

    Enable = N
    LcnEndLocation = 0
    LcnStartLocation = 0
    OptimizeComplete = No
    OptimizeError = Missing Registry Entries

    and for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher

    BootFilesOptimized = 1
    LastDiskLayoutTime = 8b b3 8c 31 48 fa c9 01
    LastDiskLayoutTimeString = 2009/07/01-14:33:53

    Thanks

    Hi Tuxtox,

    For the first key, my 'enable' value was already showing as Y but the 'optimize complete' value was N so I changed that to Y

    Under the second key, the BootFilesOptimized key was missing so I added it with the 1 value then after rebooting, xbootmgr was able to complete without an error.

    I'm not sure if this will help in your case as the 'Missing registry entries' value may point to a problem elsewhere so before you try changing anything, take a backup or the keys and create a system restore point.

    Hope it helps :)
    Saturday, July 04, 2009 6:34 PM
  • Hi Nick,

    Thanks so much for your help :)

    Now it's working perfectly, I've only change theses values in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction

    Enable = Y
    OptimizeComplete = Yes

    and the value OptimizeError is now empty.

    Thanks again,

    Bye !
    • Proposed as answer by RPA601SG Wednesday, August 24, 2011 9:57 PM
    Sunday, July 05, 2009 12:12 PM
  • You're welcome....glad you got it working :)
    Monday, July 06, 2009 7:08 PM
  • Hi,

    nice summary for additional tipps for "xbootmgr -trace boot -prepsystem"

    Wednesday, August 24, 2011 9:58 PM