Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How to speed up boot process under Windows Vista or Windows 7

- - - - -

  • Please log in to reply
663 replies to this topic

#301
compsavvy

compsavvy

    Newbie

  • Member
  • 22 posts
  • Joined 01-January 11
  • OS:Windows 7 x64
  • Country: Country Flag
@Marian
Open cmd.exe as admin

Type this:
rundll32.exe advapi32.dll,ProcessIdleTasks

And wait for it to complete


How to remove advertisement from MSFN

#302
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag

@Marian
Open cmd.exe as admin

Type this:
rundll32.exe advapi32.dll,ProcessIdleTasks

And wait for it to complete


It just finishes straight away. No messages, not nothing. Is it the normal behavior?

#303
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Still no reply. If you still have the 90day free support start a support case
Posted Image

#304
compsavvy

compsavvy

    Newbie

  • Member
  • 22 posts
  • Joined 01-January 11
  • OS:Windows 7 x64
  • Country: Country Flag
@marian
It happens if "idle tasks" have been taken care of recently.

Have you tried boot defrag?? if not try this in an elevated command prompt
defrag.exe [drive letter]: -b

#305
Grimm

Grimm
  • Member
  • 2 posts
  • Joined 30-June 11
  • OS:Windows 7 x64
  • Country: Country Flag
Ok, this has been killing me for a day.


Problem: Startup takes too long, and system is sluggish

So, 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 no
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimize

so I created Dfrg, and made
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction

and set:
Enable: Y
LcnEndLocation: 0
LcnStartLocation: 0
OptimizeComplete: No
OptimizeError: Missing Registry Entries

as 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 set
HKEY_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 valiantly

I 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.

#306
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Which Windows 7 do you use? Sp1 or RTM? Is it a clean DVD or a recovery DVD from an OEM?
Posted Image

#307
Grimm

Grimm
  • Member
  • 2 posts
  • Joined 30-June 11
  • OS:Windows 7 x64
  • Country: Country Flag
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 SP1

curiously it did produce a boot trace at some point, though theres no defrag
Here

Edited by Grimm, 30 June 2011 - 12:37 PM.


#308
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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.
Posted Image

#309
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag

@marian
It happens if "idle tasks" have been taken care of recently.

Have you tried boot defrag?? if not try this in an elevated command prompt
defrag.exe [drive letter]: -b


No, I doesn't work. I get this error:

Boot optimization could not run because the prefetch layout file is missing or invalid. <0x8900001B>


#310
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

go to the C:\Windows\prefetch folder. Do you see files there or is the folder empty?
Posted Image

#311
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag

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?

#312
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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.
Posted Image

#313
compsavvy

compsavvy

    Newbie

  • Member
  • 22 posts
  • Joined 01-January 11
  • OS:Windows 7 x64
  • Country: Country Flag
@marian
If 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.

#314
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag
@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 by Marian, 03 July 2011 - 09:00 AM.


#315
anon13872

anon13872
  • Member
  • 1 posts
  • Joined 03-July 11
  • OS:Windows 7 x64
  • Country: Country Flag
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 :)

#316
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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 :)


only xbootmgr did it, Windows ALWAYS uses all cores.

http://www.withinwin...-with-msconfig/

@Marian

run sfc /Scannow to detect and fix missing Windows files.
Posted Image

#317
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag
@MagicAndre1981: did that and it didn't help. But I did find a problem: the ImagePath of SysMain was incorrect, so I fixed that and I am not getting the "Error 2" error, but I am getting another error:

Attached File  error-1297.jpg   83.72KB   7 downloads

Any thoughts on this?

#318
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag
Oh, btw... I can't see to open Local Group Policy Object Editor either... :huh:

#319
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

it looks like you damaged the security configuration of your account. Create a new admin account and try it there again.
Posted Image

#320
Marian

Marian

    Newbie

  • Member
  • 14 posts
  • Joined 07-June 11
  • OS:Windows 7 x64
  • Country: Country Flag
I have installed all the updated for Windows 7 SP1 and Superfetch started to work again.

Then I tried to speed up the boot process, but an error occurred at the last step (I think), then I followed the steps presented here: http://social.msdn.m...cf-f0ca25b4b33a and the process worked fine! :) But bootDoneViaPostBoot shows -1 on both xml files.

#321
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

-1 measn the data are not in the file. By default xperf traces 120 seconds after the desktop was loaded. Add
-postBootDelay 240
to the command line
Posted Image

#322
compsavvy

compsavvy

    Newbie

  • Member
  • 22 posts
  • Joined 01-January 11
  • OS:Windows 7 x64
  • Country: Country Flag
@Marian
I feel your system files may be corrupt.
So, try this:
SFC.EXE /SCANNOW

Again in an elevated command prompt

#323
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

he already fixed the issue. Please read before posting
Posted Image

#324
compsavvy

compsavvy

    Newbie

  • Member
  • 22 posts
  • Joined 01-January 11
  • OS:Windows 7 x64
  • Country: Country Flag
@MagicAndre1981
I did not figure it out that the problem had been resolved.
I was just trying to help.

#325
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,060 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

[OT]you don't help if you post things twice if they are already fixed. So please read the older posts, too. I'm getting email notfications for all replies. So if you post over and over agaon things which are already solved I get a lot of useless notifications[/OT]
Posted Image




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users