compsavvy Posted June 28, 2011 Posted June 28, 2011 @MarianOpen cmd.exe as adminType this:rundll32.exe advapi32.dll,ProcessIdleTasksAnd wait for it to complete
Marian Posted June 28, 2011 Posted June 28, 2011 @MarianOpen cmd.exe as adminType this:rundll32.exe advapi32.dll,ProcessIdleTasksAnd wait for it to completeIt just finishes straight away. No messages, not nothing. Is it the normal behavior?
MagicAndre1981 Posted June 28, 2011 Author Posted June 28, 2011 Still no reply. If you still have the 90day free support start a support case
compsavvy Posted June 29, 2011 Posted June 29, 2011 @marianIt happens if "idle tasks" have been taken care of recently.Have you tried boot defrag?? if not try this in an elevated command promptdefrag.exe [drive letter]: -b
Grimm Posted June 30, 2011 Posted June 30, 2011 Ok, this has been killing me for a day.Problem: Startup takes too long, and system is sluggishSo, on a clean install (and no media or recovery partition to reinstall so i'm having to be very careful ><)I put in the SDK, ran the exe and went to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\but there was no Dfrg, and noHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeso I created Dfrg, and made HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunctionand set:Enable: YLcnEndLocation: 0LcnStartLocation: 0OptimizeComplete: NoOptimizeError: Missing Registry Entriesas per a different thread, and also ran defrag c: /u /v from an admin command prompt to make sure it works, and it does.I checked Superfetch next which wasn't running, and when I tried to start the service would give me a "cannot find file" error.so I setHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SysMain to 0 (boot)I checked sysmain.dll, which was in the correct directory now Superfetch still wont start from services. But I plod on valiantlyI added HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher"BootFilesOptimized" with a D-Word data of 1 ran xbootmgr -trace boot -prepSystem -verboseReadyBoot from cmd.exe with admin priviledges. Result:[2011/06/30-11:42:37.347] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-11:42:37.362] Registering for auto-run with a 120000 msec delay...[2011/06/30-11:42:37.362] Completed auto-run change.[2011/06/30-11:46:39.518] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-11:46:39.549] Waiting for prefetcher...[2011/06/30-11:46:39.549] Saving prefetcher data...[2011/06/30-11:50:29.020] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-11:50:29.035] Waiting for prefetcher...[2011/06/30-11:50:29.035] Saving prefetcher data...[2011/06/30-11:55:12.228] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-11:55:12.243] Waiting for prefetcher...[2011/06/30-11:55:12.243] Saving prefetcher data...[2011/06/30-12:00:10.849] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-12:00:10.864] Waiting for prefetcher...[2011/06/30-12:00:10.864] Saving prefetcher data...[2011/06/30-12:04:39.873] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-12:04:39.889] Waiting for prefetcher...[2011/06/30-12:04:39.889] Saving prefetcher data...[2011/06/30-12:08:40.700] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 0).[2011/06/30-12:08:40.731] Waiting for prefetcher...[2011/06/30-12:08:40.731] Saving prefetcher data...[2011/06/30-12:08:40.731] Preparing system...[2011/06/30-12:08:40.731] Launching attempt #1 to defragment disk...[2011/06/30-12:08:45.006] ProcessIdleTasks returned.[2011/06/30-12:08:45.006] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.[2011/06/30-12:08:45.006] Launching attempt #2 to defragment disk...[2011/06/30-12:08:53.367] ProcessIdleTasks returned.[2011/06/30-12:08:53.367] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.[2011/06/30-12:08:53.367] Launching attempt #3 to defragment disk...[2011/06/30-12:09:01.308] ProcessIdleTasks returned.[2011/06/30-12:09:01.308] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.[2011/06/30-12:09:01.308] Launching attempt #4 to defragment disk...[2011/06/30-12:09:09.357] ProcessIdleTasks returned.[2011/06/30-12:09:09.357] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.[2011/06/30-12:09:09.357] Launching attempt #5 to defragment disk...[2011/06/30-12:09:17.251] ProcessIdleTasks returned.[2011/06/30-12:09:17.251] Failed to defrag - status key is 'No', error description is 'Missing Registry Entries'. Retrying.[2011/06/30-12:09:17.251] Failed to defragment disk after 5 attempts.[2011/06/30-12:09:17.251] PrepareSystem failed.[2011/06/30-12:09:17.251] Stopping trace...[2011/06/30-12:09:21.588] Couldn't find kernel logger in active logger list.[2011/06/30-12:09:21.588] Couldn't find user-mode logger in active logger list.[2011/06/30-12:09:21.588] Unregistering auto-run...[2011/06/30-12:09:21.588] Completed auto-run change.And thats all i've really accomplished in about 60 reboots.
MagicAndre1981 Posted June 30, 2011 Author Posted June 30, 2011 Which Windows 7 do you use? Sp1 or RTM? Is it a clean DVD or a recovery DVD from an OEM?
Grimm Posted June 30, 2011 Posted June 30, 2011 (edited) It's a co-worker's wife's computer. They just had it reset to original, and its a toshiba laptop. The only thing on it besides the OS were the toshiba utlities they bundle with it, and norton antivirus which I removed.Its running Windows 7 home premium 32bit, probably SP1curiously it did produce a boot trace at some point, though theres no defragHere Edited June 30, 2011 by Grimm
MagicAndre1981 Posted June 30, 2011 Author Posted June 30, 2011 I checked the trace. The boot is slow because the ReadyBoot prefetcher is completely untrained. Make a double click and look at the readyBoot IO graph. It is mostly black, which means there are cache misses. This is very bad. The TOSHIBA MK2555GSX 250GB 5400rpm Hard Drive is not the fastest so a fully working Prefetcher is really needed to have a fast Windows boot.I can see that the Windows is Windows 7 RTM. So install the Sp1 + all post Sp1 Updates.Now try it again, please.
Marian Posted July 1, 2011 Posted July 1, 2011 @marianIt happens if "idle tasks" have been taken care of recently.Have you tried boot defrag?? if not try this in an elevated command promptdefrag.exe [drive letter]: -bNo, I doesn't work. I get this error:Boot optimization could not run because the prefetch layout file is missing or invalid. <0x8900001B>
MagicAndre1981 Posted July 1, 2011 Author Posted July 1, 2011 go to the C:\Windows\prefetch folder. Do you see files there or is the folder empty?
Marian Posted July 1, 2011 Posted July 1, 2011 go to the C:\Windows\prefetch folder. Do you see files there or is the folder empty?There is only one folder, ReadyBoot, which contains a few files with these extensions: .avail, .dqpafm, .dqpafmsg, .dqpa, .dqpaf and .etl, but I`m guessing this ain't good, eh?
MagicAndre1981 Posted July 1, 2011 Author Posted July 1, 2011 correct, this is not good. You should see .pf files in the prefetch folder.What are the values of the EnableSuperfetch and EnablePrefetcher under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters? Both should be set to 3.
compsavvy Posted July 2, 2011 Posted July 2, 2011 @marianIf what MagicAndre1981 suggested does not help, open notepad as admin and save a blank file as layout.ini(and not layout.ini.txt) in the prefetch folder.
Marian Posted July 3, 2011 Posted July 3, 2011 (edited) @MagicAndre1981: The setting were already like that.@compsavvy: done that and tried "defrag C: -b" and it worked, then tried "xbootmgr -trace boot -prepSystem -verboseReadyBoot" and it failed after the 1st restart.... ARGHHH! Oh, and now layout.ini is missing.Btw... when I try to start the Superfetch service it says: "Window could not start the Superfetch service on Local Computer. Error 2: The system cannot find the filed specified.". Edited July 3, 2011 by Marian
anon13872 Posted July 3, 2011 Posted July 3, 2011 I just wanted to say thank you for this guide! This, along with setting the amount of cores used at boot in msconfig->boot->advanced options from the default 1 to 8 on my hp envy 14 has halved my boot up time to just under a minute
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now