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

#51
tookie

tookie
  • Member
  • 4 posts
  • OS:Windows 7 x64
  • Country: Country Flag
hello, i've used the method described in your post, and obtained a reduction from 120k to 80k ms. is it possible to decrease this even further? I've looked through the event viewier.. I did not see anything that I can shave seconds from.

Thanks for the awesome guide!


How to remove advertisement from MSFN

#52
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

make a full trace:

http://www.msfn.org/...yresume-issues/

and give me the trace file.
Posted Image

#53
tookie

tookie
  • Member
  • 4 posts
  • OS:Windows 7 x64
  • Country: Country Flag

make a full trace:

http://www.msfn.org/...yresume-issues/

and give me the trace file.


here it is

#54
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Hi,

timing bootDoneViaExplorer="49970" bootDoneViaPostBoot="116070"

Your Windows needs 50s to boot to the desktop and 106 seconds to boot completely.

<interval name="PreSMSS" startTime="0" endTime="8469" duration="8469">

The PreSMSS subphase begins when the kernel is invoked. During this subphase, the kernel initializes data structures and components. It also starts the PnP manager, which initializes the BOOT_START drivers that were loaded during the OSLoader phase.
When the PnP manager detects a device, it loads and initializes the device’s drivers


Your takes 8.5s, this is ok.

<interval name="SMSSInit" startTime="8469" endTime="22670" duration="14200">

The SMSSInit subphase begins when the kernel passes control to the session manager process (Smss.exe). During this subphase, the system initializes the registry, loads and starts the devices and drivers that are not marked BOOT_START, and starts the subsystem processes. SMSSInit ends when control is passed to Winlogon.exe.


this takes 14s which is bit too long. I can see that the time difference between the both csrss.exe is 4s which means it takes 4s to initialize the graphic card driver. Are you using the latest driver or your NVIDIA GeForce GTX 285?

<interval name="WinlogonInit" startTime="22670" endTime="40805" duration="18134">

The WinLogonInit subphase begins when SMSSInit completes and starts Winlogon.exe. During WinLogonInit, the user logon screen appears, the service control manager starts services, and Group Policy scripts run. WinLogonInit ends when the Explorer process starts.


your takes 18s, which is also too long.

I found this:

- <notification type="Logon" sessionId="1" startTime="29088" endTime="38339" duration="9251">
  <subscriber name="Profiles" startTime="29088" endTime="38332" duration="9244" /> 

So loading the profile takes too long. To see what happens there, download ProcessMonitor and activate bootlogging. Make a new boottrace with xbootmgr and reboot. Start ProcessMonitor again and save the data into a PML file. Zip both files (xbootmgr and PML file) and upload it.

<interval name="ExplorerInit" startTime="40805" endTime="49970" duration="9164">

The ExplorerInit subphase begins when Explorer.exe starts. During ExplorerInit, the system creates the desktop window manager (DWM) process, which initializes the desktop and displays it for the first time.


this takes 9.2 seconds. This is also a bit too long.

Applications—such as antivirus programs or application servers—that are created during service start in this or previous phases can consume CPU resources during ExplorerInit. Some services might not be started yet when ExplorerInit is complete.


I can see that you use MSE/Commodo which causes a high CPU usage. remove both and see if it it faster.

<interval name="PostExplorerPeriod" startTime="49970" endTime="116070" duration="66100">

During PostBoot, Windows examines the entries in the various Run and RunOnce keys (Run, RunOnce, RunOnceEx, RunServices, and so on) in the registry and the Startup folder in the file system, and then starts the listed applications.


So starting all startup applications takes too long (56seconds). So use AutoRuns and try to remove all unneeded applications like the google and JAVA update checker.

Edited by MagicAndre1981, 09 November 2010 - 08:23 AM.

Posted Image

#55
aboto

aboto
  • Member
  • 8 posts
  • OS:Windows 7 x86
  • Country: Country Flag

90s are still a bit to high, make a boot trace (http://www.msfn.org/...howtopic=140247), zip and and upload it. Maybe I can find something to reduce the time again.



I just make a boot trace following your intruction. When computer starting, the "dead green screen" appeared. I cannot log in the computer. I have to use repair dick several times to fix "startup ...".
Please see the attachment file!
THank you so much


My link

PS: It seems the Sidebar takes much time!

#56
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

timing bootDoneViaExplorer="45239" bootDoneViaPostBoot="138339"

Your Windows takes 45 to boot to the desktop and 128s to boot completely.

<interval name="PreSMSS" startTime="0" endTime="5088" duration="5088">

The PreSMSS subphase begins when the kernel is invoked. During this subphase, the kernel initializes data structures and components. It also starts the PnP manager, which initializes the BOOT_START drivers that were loaded during the OSLoader phase. When the PnP manager detects a device, it loads and initializes the device’s drivers


This takes 5. Which is ok.

<interval name="SMSSInit" startTime="5088" endTime="15581" duration="10492">

The SMSSInit subphase begins when the kernel passes control to the session manager process (Smss.exe). During this subphase, the system initializes the registry, loads and starts the devices and drivers that are not marked BOOT_START, and starts the subsystem processes. SMSSInit ends when control is passed to Winlogon.exe.


Provider Name, Task Name, Time (s)
, smss:InitializeRegistry,
, , 5.941076308, win:Start
, , 8.476292276, win:Stop

so initializing of the registry take a bit too long.

<interval name="WinlogonInit" startTime="15581" endTime="29551" duration="13970">

The WinLogonInit subphase begins when SMSSInit completes and starts Winlogon.exe. During WinLogonInit, the user logon screen appears, the service control manager starts services, and Group Policy scripts run. WinLogonInit ends when the Explorer process starts.


from what I can see is that KasperSky service starts too slowly:

serviceTransition name="AVP" group="" transition="start" totalTransitionTimeDelta="32507"

interval name="ExplorerInit" startTime="29551" endTime="45239" duration="15687">

The ExplorerInit subphase begins when Explorer.exe starts. During ExplorerInit, the system creates the desktop window manager (DWM) process, which initializes the desktop and displays it for the first time.


this also takes too long, because of Kaspersky:

Applications—such as antivirus programs or application servers—that are created during service start in this or previous phases can consume CPU resources during ExplorerInit. Some services might not be started yet when ExplorerInit is complete.


- <interval name="PostExplorerPeriod" startTime="45239" endTime="138339" duration="93100">

During PostBoot, Windows examines the entries in the various Run and RunOnce keys (Run, RunOnce, RunOnceEx, RunServices, and so on) in the registry and the Startup folder in the file system, and then starts the listed applications.


Remove the googleupdater and remove the amount of index folders. The Windows Search service also takes too long to start.

I think that Kaspersky is the cause of the slowdown. Remove it.
Posted Image

#57
aboto

aboto
  • Member
  • 8 posts
  • OS:Windows 7 x86
  • Country: Country Flag

Remove the googleupdater and remove the amount of index folders. The Windows Search service also takes too long to start.

I think that Kaspersky is the cause of the slowdown. Remove it.


Thank you indeed. I will remove something as your suggestion. Kaspersky is to protect my computer from internet harmful attacks. So I may have to accept its usage time. This is a contradiction! :-<

#58
tookie

tookie
  • Member
  • 4 posts
  • OS:Windows 7 x64
  • Country: Country Flag

So loading the profile takes too long. To see what happens there, download ProcessMonitor and activate bootlogging. Make a new boottrace with xbootmgr and reboot. Start ProcessMonitor again and save the data into a PML file. Zip both files (xbootmgr and PML file) and upload it.


Hi MagicAndre1981,
here it is. the one with the processmonitor trace. i've updated my graphics driver as you advised, and cleared off some programs that are not needed in autoruns. but i might have to leave comodo and MSE in for now, or i would have no internet security >.<

thanks for the advise thus far! :)

#59
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Thank you indeed. I will remove something as your suggestion. Kaspersky is to protect my computer from internet harmful attacks. So I may have to accept its usage time.


use a different tools (free tool) like Aivra AntiVir and the in Windows included Firewall.
Posted Image

#60
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

but i might have to leave comodo and MSE in for now, or i would have no internet security >.<


The cause of the slow login is COMODO (cmdagent.exe) which scans all commands + MSE + you highly fragmented HDD which is used by 100%.

same suggestion like aboto. use Aivra AntiVir + Windows included Firewall and run the optimization again.
Posted Image

#61
aboto

aboto
  • Member
  • 8 posts
  • OS:Windows 7 x86
  • Country: Country Flag


Thank you indeed. I will remove something as your suggestion. Kaspersky is to protect my computer from internet harmful attacks. So I may have to accept its usage time.


use a different tools (free tool) like Aivra AntiVir and the in Windows included Firewall.


Thank you, Andre! Windows 7 is known as a best OS, why are you still a Vista lover ? :D (Just for fun)

---------------------
PS: I want to ask you a marginal question: Do you know there are any way to install windows live mesh on XP? ( I am sorry for this question, but I just want to sync data between my two computers, one uses Xp OS and one is win7 OS)

#62
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Windows 7 is known as a best OS, why are you still a Vista lover ? :D (Just for fun)


Windows 7 = Vista R2/SE. Ask the second question in the XP forums.
Posted Image

#63
tookie

tookie
  • Member
  • 4 posts
  • OS:Windows 7 x64
  • Country: Country Flag

The cause of the slow login is COMODO (cmdagent.exe) which scans all commands + MSE + you highly fragmented HDD which is used by 100%.

same suggestion like aboto. use Aivra AntiVir + Windows included Firewall and run the optimization again.


ok! thanks. glad to know those 2 are the only causes. i'll try other softwware, (and defragment my drives :P) thank you very much ^^

#64
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

(and defragment my drives :P) thank you very much ^^


but only with this guide and the internal defrag tool! No O&O and other crapware!
Posted Image

#65
peacemaker

peacemaker
  • Member
  • 4 posts
  • OS:Windows 7 x64
Sorry I have a question here, my boot time did lessen but it's quite inconsistent for some reason... Like for example after I changed some minor settings and stuffs, the startup becomes very slow again...
So do I need to run the optimization everytime i change some startup program and install/uninstall stuffs?

#66
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Which changes do you make that causes the slowdown?
Posted Image

#67
peacemaker

peacemaker
  • Member
  • 4 posts
  • OS:Windows 7 x64
Hmm, changing some bootup settings for avast for example.. or after install/uninstalling stuffs?

#68
peacemaker

peacemaker
  • Member
  • 4 posts
  • OS:Windows 7 x64
I just did a simple restart... It was slower again... Very inconsistent, sometimes it's faster.. I wonder what's the problem? So i was wondering whether I need to do this thing regularly?

Btw, I have tune-up utilities installed, would that be the factor that is affecting my inconsistent boot time?

#69
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

remove all useless tweaking and defrag tools and make the optimization again.
Posted Image

#70
peacemaker

peacemaker
  • Member
  • 4 posts
  • OS:Windows 7 x64
I just uninstalled Tune-Up utilities... still have the same problem... I did optimisation, improved to 30+ seconds boot time... But after that I had some windows update and some programs updated plus uninstalled some programs.. It became 10 seconds slower again...

#71
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

after running WindowsUpdates (Patchday) run it again.
Posted Image

#72
Kingdutch

Kingdutch
  • Member
  • 4 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi,

I registered on this forum just for this topic, hopefully you can help me. I've did what your post said (Install WPT and run the xbootmgr command) with a little trouble (Had to change some registry values in order to get the defragmenter to work).
I've created an xml file using the xperf command and looked through it. My boot takes about 10-20 min. and it's doing a lot of DiskIO during the boot-up. Can you tell me why this is taking so long? (Malfunctioning HDD? Bad drivers? Fragmented?)

I used to run Defraggler but I'm running the built in defragmenter as we speak (Although analysis told me it was 0% defragmented). Hopefully you can tell me what I can do to reduce my boot-time.

Oh and I am running Comodo network security which seeing other posts here I suspect of slowing my computer down since I tried upgrading right when the slowness began, but I haven't heard a lot of good things about microsoft's security programs and comodo has worked fine for me so far.

http://rapidshare.co...68908/traces.7z
I couldn't find any personal info in there so I haven't passworded it. If you see anything personal, let me know and I'll take it down once you got it.

Thanks in advance :D
Alexander

#73
irvs

irvs
  • Member
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
This doesn't work for me?

Followed the instructions and get everything installed and verified all settings are on.

Ran it and the first time I let it countdown and didn't press FINISH. On next boot it said my copy of W7 was not genuine? OK, clicked authenticate and it did so immediately and continued. However, it couldn't find the PREFETCH and quit?

So I looked in the log, true it was logged as such, but on the first boot it was able too? Odd?

I'll just delete the files and try again, but press FINISH this time.

Same result?

Log : This time it is GONE? Found it, it is now not in the root of C: but Windows\System32?

------------------
[2010/12/04-09:23:39.837] Detected Win7RTM physical (ReadyBoot) prefetcher; the SysMain service is auto-started.
[2010/12/04-09:23:39.872] Could not delete ReadyBoot boot plan.
[2010/12/04-09:23:39.880] Registering for auto-run with a 120000 msec delay...
[2010/12/04-09:23:39.881] Completed auto-run change.
[2010/12/04-09:23:39.896] Starting trace...
[2010/12/04-09:23:40.159] Enabled boot logging to 'C:\Windows\system32\bootPrep_BASE+CSWITCH_1_km_premerge.etl'
[2010/12/04-09:26:31.085] Detected Win7RTM physical (ReadyBoot) prefetcher; the SysMain service is auto-started.
[2010/12/04-09:26:31.116] Stopping trace...
[2010/12/04-09:27:23.958] Stopped kernel logger.
[2010/12/04-09:27:24.290] Stopped user-mode logger.
[2010/12/04-09:27:24.295] The trace you are capturing "C:\Windows\system32\bootPrep_BASE+CSWITCH_1.etl" may contain personally identifiable information, including but not necessarily limited to paths to files accessed, paths to registry accessed and process names. Exact information depends on the events that were logged. Please be aware of this when sharing out this trace with other people.
[2010/12/04-09:28:50.141] Merged ETL file to 'C:\Windows\system32\bootPrep_BASE+CSWITCH_1.etl'
[2010/12/04-09:28:50.159] Waiting for prefetcher...
[2010/12/04-09:29:20.161] Waiting for Win7RTM prefetcher done.
[2010/12/04-09:29:20.162] Saving prefetcher data...
[2010/12/04-09:29:20.182] Failed to save prefetcher data (C:\Windows\prefetch\layout.ini) in cab archive (stage 1, error 0)
[2010/12/04-09:29:27.965] Saved prefetcher data from C:\Windows\prefetch\ReadyBoot\*.* in cab archive.
[2010/12/04-09:29:27.965] Saved prefetcher data from C:\Windows\prefetch\AgCx*.db in cab archive.
[2010/12/04-09:29:28.312] Saved prefetcher data from C:\Windows\system32\bootPrep_BASE+CSWITCH_1.ppf.newPlan in cab archive
[2010/12/04-09:29:28.333] Starting trace...
[2010/12/04-09:29:28.365] Enabled boot logging to 'C:\Windows\system32\bootPrep_BASE+CSWITCH_2_km_premerge.etl'
[2010/12/04-09:31:26.720] Detected Win7RTM physical (ReadyBoot) prefetcher; the SysMain service is auto-started.
[2010/12/04-09:31:26.729] Stopping trace...
[2010/12/04-09:33:20.613] Stopped kernel logger.
[2010/12/04-09:33:20.614] Couldn't stop user-mode logger (0x00001069).
[2010/12/04-09:33:20.614] Couldn't find user-mode logger in active logger list.
[2010/12/04-09:33:20.617] Waiting for prefetcher...
[2010/12/04-09:38:10.643] Gave up waiting for Win7RTM physical prefetcher after 300 seconds.
[2010/12/04-09:38:10.643] Could not wait for prefetcher.
[2010/12/04-09:38:10.643] Stopping trace...
[2010/12/04-09:38:10.699] Couldn't find kernel logger in active logger list.
[2010/12/04-09:38:10.699] Couldn't find user-mode logger in active logger list.
[2010/12/04-09:38:10.700] Unregistering auto-run...
[2010/12/04-09:38:10.700] Completed auto-run change.
----------------

Not sure what happened here? Any reason why it couldn't find Prefetch on the 2nd boot? Folder shows updates at the timestamps shown in the last part of the log?

Are there access/permissions problems possibly, can't tell for sure?

Irv S.

#74
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,946 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Windows Error 0x00001069 - 4201
The instance name passed was not recognized as valid by a WMI data provider.
ERROR_WMI_INSTANCE_NOT_FOUND

Have you modified the WMI settings?
Posted Image

#75
irvs

irvs
  • Member
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Windows Error 0x00001069 - 4201
The instance name passed was not recognized as valid by a WMI data provider.
ERROR_WMI_INSTANCE_NOT_FOUND

Have you modified the WMI settings?


Not that I know of?

I can run WBEMTEST, anything I should do with it?

Attached File  Capture.JPG   50.42KB   5 downloads

EDIT: I worked the first time though, didn't it? On the second boot it didn't?

Edited by irvs, 04 December 2010 - 11:55 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN