MSFN Forum: Very slow Windows 7 RC startup - MSFN Forum

Jump to content



Windows 7 forum rules

If you have questions about customizing Windows 7 that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows 7, please post them in the Unattended Windows 7/Server 2008 R2 section.
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Very slow Windows 7 RC startup Takes about 30 minutes just to get into desktop ><

#1 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 05 October 2009 - 02:17 AM

Hello.

This problem really makes me irritated. My Windows 7 takes like ages. Simply ages to get to the desktop.
Starting the computer is fine. Starting Windows takes about 5 seconds. But after I type my password, the Aero Busy cursor with Welcome just keeps on spinning for ages.
The computer is responding as Num Lock, Caps Lock, Scroll Lock lights an be turned on and off.
After the Welcome screen however, everything is fast and zippy :thumbup

Computer Specs:
Gigabyte ga-ep45-ds3 Motherboard
Intel Core 2 Quad 2.33GHz
4GB RAM DDR2 667MHz
nVidia GeForce 9800GT 512MB Graphics Card
640GB Seagate 7200RPM SATA2 HDD
Windows 7 RC x64 Ultimate (Build 7100)

So, it is very unlikely that it is the hardware.
Also, I scan my system with ESET and MBAM everyday, so it is also unlikely that it is a virus infection.

MSConfig Startup items:
ESET Smart Security, HD Audio Control Panel, Realtek Voice Manager, 2x Mediafour MacDrive, AnyDVD, Microsoft (R) Windows (R) Operating System (sidebar.exe), Lightscribe, NetWorx, Adobe CS4 Service Manager, Adobe Acrobat, AcroTray - Adobe Acrobat Distiller helper application, Adobe Version Cue CS4, GrooveMonitor Utility, Java (TM) Platform SE U15, VMWare Workstation, QuickTime, iTunes, PowerMenu, FileBox eXtender


Event Viewer Errors:
5/10/2009 8:05:49 p.m.
Service Control Manager:
The ScRegSetValueExW call failed for Type with the following error: 
Access is denied.

5/10/2009 8:05:51 p.m.
Service Control Manager:
The ScRegSetValueExW call failed for Type with the following error: 
Access is denied.

5/10/2009 8:05:54 p.m.
Service Control Manager:
The ScRegSetValueExW call failed for Type with the following error: 
Access is denied.

6X 5/10/2009 8:06:14 p.m.
atapi:
The driver detected a controller error on \Device\Ide\IdePort4.

5/10/2009 8:09:24 p.m.
Service Control Manager:
A timeout was reached (30000 milliseconds) while waiting for the Windows Defender service to connect.

The Windows Defender service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.

5/10/2009 8:14:45 p.m.
Service Control Manager:
A timeout was reached (30000 milliseconds) while waiting for the Windows Media Player Network Sharing Service service to connect.

The Windows Media Player Network Sharing Service service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.

5/10/2009 8:16:50 p.m.
Service Control Manager:
The Windows Update service hung on starting.

5/10/2009 8:20:10 p.m.
PNRPSvc:
The Peer Name Resolution Protocol cloud did not start because the creation of the default identity failed with error code: 0x80630801.

Service Control Manager:
The Peer Name Resolution Protocol service terminated with the following error: 
%%-2140993535

The Peer Networking Grouping service depends on the Peer Name Resolution Protocol service which failed to start because of the following error: 
%%-2140993535


Thanks :rolleyes:

This post has been edited by ijwcomp: 05 October 2009 - 02:21 AM



#2 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 05 October 2009 - 03:00 AM

just format..

this may be bad though..

6X 5/10/2009 8:06:14 p.m.
atapi:
The driver detected a controller error on \Device\Ide\IdePort4.

#3 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 3,389
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 05 October 2009 - 03:12 AM

look at this guide and use the Windows Performance Toolkit (WPT) to analyze the boot process:

http://www.msfn.org/board/trace-vista-boot...es-t117154.html

But you have to use the Version 4.6 from WPT, which is now part of the Windows 7 SDK! use the Web installer and select the Win32 Tools to install.

When you finished the trace run the following command:

xperf -i [i]trace.etl[/i] -o summary.xml -a boot


to get an xml with a summary of the boot. Replace trace.etl with the name of your etl File.

Now open the xml file and look for duration. So you can find which part of the boot process takes too much time.

If you're unsure upload it and we will take a look at it.

This post has been edited by MagicAndre1981: 05 October 2009 - 03:14 AM


#4 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 05 October 2009 - 09:46 PM

I got the Windows 7 SDK and installed "Install Windows Performance Tool Kit (x64)"
After that, I have tried:

xbootmgr -trace boot -noPrepReboot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
from the link you gave me.

When I used it however it said:

Microsoft(R) Windows(R) Performance Analyzer Version 4.6.7231
(C) Microsoft Corporation. All rights reserved.
'-noPrepReboot': This option can only be used with shutdown and rebootCycle traces.
See 'xbootmgr.exe -help' for more information.


So I typed the command without the -noPrepReboot option.

And then it rebooted my system and saved three files in C:\TEMP
boot_BASE+CSWITCH+DRIVERS+POWER_1.cab
boot_BASE+CSWITCH+DRIVERS+POWER_1.etl
xbootmgr.log


After that, I typed this in Command Prompt (Run as Administrator)
xperf -i "C:\TEMP\boot_BASE+CSWITCH+DRIVERS+POWER_1.etl" -o "C:\TEMP\summary.xml" -a boot


It said:
Warning: Applying restriction of access for trace processing 31987 Events were lost in trace. Data may be unreliable. This is usually caused by insufficient disk bandwidth for ETW logging. Please try increasing the minimm and maximum number of buffers and/or the buffer size. Doubling these values would be a good first attempt. Please note, though, that this action increases the amount of memory reserved for ETW buffers, increasing memory pressure on your scenario. See "xperf -help start" for the associated command line options.


Not sure what that meant.

Also, a summary.xml did come up in C:\TEMP but it is 0kb meaning that there's probably nothing inside.

This post has been edited by ijwcomp: 05 October 2009 - 09:56 PM


#5 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 3,389
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 06 October 2009 - 03:10 AM

Which size does your pagefile have? Please increase the size and run the trace of the boot again.

#6 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 06 October 2009 - 01:58 PM

Right now, my paging file size is 4094MB which was automatically set by Windows.
I've now set the initial size to 6141MB and the maximum size to 12282MB

EDIT: Ok, that didn't work. Crashed my system. Fortunately I made a system restore before attempting it.

This post has been edited by ijwcomp: 06 October 2009 - 02:57 PM


#7 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 October 2009 - 02:13 PM

Can you put those files somewhere for us to download? Perhaps we'd have better luck with the data...

#8 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 06 October 2009 - 04:00 PM

The system now seems to be starting faster since increasing the pagefile size.
Usually, I start the computer and after eating breakfast it still hasn't loaded but now... it does.
Still done the trace though.

Used: xbootmgr -trace boot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
After the reboot:
xperf -i "C:\TEMP\boot_BASE+CSWITCH+DRIVERS+POWER_1.etl" -o "C:\TEMP\summary.xml" -a
It gave me: summary.xml (121KB)

Attached is the summary.xml file.
MD5: 4D8F7CDB25951B3F4009A8F7E6DDC1F0

Attached File(s)


This post has been edited by ijwcomp: 06 October 2009 - 04:03 PM


#9 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 October 2009 - 10:58 AM

We're going to need all of the files if you want any real analysis - the xml is nice, but it's hard to use it to say what's actually happening.

#10 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 07 October 2009 - 05:07 PM

This morning when I started my computer, it took a total of 12 minutes starting from the 'Starting Windows'.
However, when I ran the boot trace which restarts my computer, it only took about 4 minutes.
I've uploaded the file to Mediafire - boottrace.rar - MD5: DB33E75DA8A1E6E9C7DD330E883033FB - 71.1MB
Link: http://www.mediafire...php?flwjnnnhjge

It contains:
boot_BASE+CSWITCH+DRIVERS+POWER_1.cab
boot_BASE+CSWITCH+DRIVERS+POWER_1.etl
summary.xml
xbootmgr.log

#11 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 3,389
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 08 October 2009 - 05:42 AM

@cluberti

I like the xml. It give you a short overview about all the booting stages and how long it takes.


The MainPathBoot is based on 4 stages

1. PreSMSS Subphase

This take 8 sec for you. 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.

2. SMSSInit Subphase

this takes 10sek for you. 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.

3. WinLogonInit Subphase

this takes 19 sek for you. 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.

4. ExplorerInit Subphase

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 phase is CPU intensive. The initialization of DWM and desktop occurs in the foreground, while in the background the service control manager (SCM) starts services and the memory manager prefetches code and data. On most systems ExplorerInit is CPU bound, and timing issues are likely the result of a simple resource bottleneck.

This phase takes 14 sec for you.

5. PostExplorerPeriod.

The PostBoot phase includes all background activity that occurs after the desktop is ready. The user can interact with the desktop, but the system might still be starting services, tray icons, and application code in the background. this phase takes 1m27sec.

So here is the first real issue. You are starting too many programs automatically at startup. Run AutoRuns and uncheck all programs that are not needed when you startup your PC.

The key bootDoneViaPostBoot="134792" shown me that you PC needs 2min 11 sec to start.

So, I don't understand why it takes 12 or 30 min if you don't use xperf.

The preSMSS phase is ok, but not very fast.
The SMSSInit has delays maybe because of loading the nvlddmkm.sys (nVidia graphics driver) and RTKVHD64.sys (Realtek HD Audio?).
The WinLogonInit is also a bit long. So some services which depend on each other need a bit time to start.
The ExplorerInit is also a bit too long. Maybe NOD32 causes this delay. Which version do you use?
The PostExplorerPeriod is terrible slow and takes too long. Use the Autoruns tool to disable the programs from startup, that you don't need.

After disabling, try to train your Windows too startup faster.

Open the console and run

xbootmgr -trace boot -prepSystem -verboseReadyBoot


This will optimize the boot process. Windows will be restarted several times and ReadyBoot (NOT Readyboost) will learn in which order it should load all drivers and files and prefetches them while doing other things, so that are loaded when they are needed during later phases. Also the defrag program will be launched to optimize the location of the files on your HDD.

#12 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 October 2009 - 08:36 AM

View PostMagicAndre1981, on Oct 8 2009, 07:42 AM, said:

@cluberti

I like the xml. It give you a short overview about all the booting stages and how long it takes.
I'm well aware of that, but it only shows you what parts are slow, and not any info as to why, hence the guessing. Hopefully the files will give a little more info as to why all phases are slow.

#13 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 08 October 2009 - 01:11 PM

Is it possible to run xbootmgr -trace boot -noPrepReboot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP but when it restarts turn the computer off and then try again the following morning?
It is usually with a cold boot that the slow startup happens. The boot process is much faster somehow when I restart instead of shutting down and pressing the power button again.

Also, what paging size should I use, in case the error message in post #4 appears again? (When I made another one that message appeared. Don't know why the the one posted worked but now it won't work)

#14 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 October 2009 - 01:14 PM

View Postijwcomp, on Oct 8 2009, 03:11 PM, said:

Is it possible to run xbootmgr -trace boot -noPrepReboot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP but when it restarts turn the computer off and then try again the following morning?
No, unfortunately. Either you prep or you log, but you can't do both.

#15 User is offline   epic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 316
  • Joined: 13-January 05

Posted 11 October 2009 - 11:07 PM

Hmmm, question is have you ever tried to boot into safe mode... how does it perform there? Have you ran msconfig and ran the diagnostic startup then selective startup? Funny no one has mentioned this. Though a lot of these guys have a lot of experience with these OSs' thought I'd shoot that out there since it be my first attempt in troubleshooting ;)

Point in fact... W7 loads everything (process', icons, network connections, gadgets, etc...) in the background during the 'Welcome' screen, unlike previous versions of Windows. It's another one of those flaky features Microsoft claims as an "enhancement" when all they're doing is hiding whats going on in the background, to make it seem .... zippy. However, bigger improvement over Vista. :)

This post has been edited by epic: 11 October 2009 - 11:15 PM


#16 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 12 October 2009 - 12:13 PM

In the Startup tab in msconfig there are:
ESET Smart Security, HD Audio Control Panel, Realtek Voice Manager, Mediafour MacDrive, AnyDVD, DeskSpace, NetWorx, Adobe CS4 Service Manager, Adobe Version Cue CS4, Java ™ Platform SE U15, VMWare Workstation, QuickTime, iTunes, PowerMenu, FileBox eXtender, Virtual CloneDrive

#17 User is offline   usasma 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 26-November 06

Posted 12 October 2009 - 12:29 PM

Boot into Safe Mode.
If it takes as long (or nearly so) to get into Windows then it's most likely a hardware issue.

If that's the case, run a hard drive diagnostic (more info on that here: http://www.carrona.org/hddiag.html )

#18 User is offline   UberGeek 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 04-October 09

Posted 12 October 2009 - 01:03 PM

View Postusasma, on Oct 12 2009, 01:29 PM, said:

Boot into Safe Mode.
If it takes as long (or nearly so) to get into Windows then it's most likely a hardware issue.

He's got a point.

If Win7 still nosy - do one thing... install Windows 7 on another partition again if you can afford (without removing this one - we'll perhaps need it for experiment, such a peculiar problem needs serious lookup). Then compare the performance difference & post it here.

#19 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 3,389
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 12 October 2009 - 02:55 PM

@ijwcomp

do you really need all programs to be loaded at startup? Did you try to optimize the startup with the prepSystem option?

#20 User is offline   ijwcomp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-February 08

Posted 13 October 2009 - 02:38 AM

Right now, I'm not sure what I really need and which I don't. I've already disabled some that I know I do not need.
ESET Smart Security, HD Audio Control Panel, Realtek Voice Manager, Mediafour MacDrive, AnyDVD, DeskSpace, NetWorx, Adobe CS4 Service Manager, Adobe Version Cue CS4, Java ™ Platform SE U15, VMWare Workstation, QuickTime, iTunes, FileBox eXtender, Virtual CloneDrive

Drivers I think: ESET Smart Security, HD Audio Control Panel, Realtek Voice Manager, Mediafour MacDrive, AnyDVD, Virtual CloneDrive
Desktop functionality: DeskSpace (different desktop spaces), NetWorx (monitors how much internet I have used), FileBox eXtender (pin to top functionality)
No idea: Adobe CS4 Service Manager, Adobe Version Cue CS4, Java ™ Platform SE U15, VMWare Workstation, QuickTime, iTunes

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy