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

Trace why Windows 8 boots, shutsdown or hibernates slowly

bootvis Performance Boot slow

  • Please log in to reply
342 replies to this topic

#326
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

your TOSHIBA MK3265GSXN is a slow 5400rpm drive. You can't expect miracles from such a slow drive. Get an SSD. You can find good ones with 200GB for 100€.


Posted Image


How to remove advertisement from MSFN

#327
mikegb

mikegb
  • Member
  • 2 posts
  • OS:Server 2012R2
  • Country: Country Flag

I have a Server 2012 R2 system booting from an Intel SSD.  Since installing Chrome, I noticed a 15 second hang during boot every time.  Uninstalling Chrome doesn't change the behavior and I don't really think Chrome is the issue.

 

I followed the steps in this posting no how to trace the boot times and the results do NOT show this 15 second hang.  However, I isolated it down to the OSLoader.  The problem does NOT show up in the ETL file.  For example, osLoaderDuration only shows 877 as the time:

 

    <timing bootDoneViaExplorer="15107" bootDoneViaPostBoot="-1" osLoaderDuration="877"
            postBootRequiredIdleTime="10000" postBootDisturbance="9223372011747"
            pnpBootStartStartTime="37" pnpBootStartEndTime="854" pnpBootStartDuration="817"
            pnpSystemStartStartTime="1013" pnpSystemStartEndTime="1381" pnpSystemStartDuration="368">

 

So what I did during boot is press <F8> to get to the boot options.  I think put the cursor over the enable boot logging option and at exactly 14:19:00, I pressed <Enter>.  When I did that, there was very brief disk activity and then no disk activity for ~15 seconds.  Then the boot continued as normal.  What's interesting is looking at ntblog.txt as you see here:

 

 5 18 2014 14:19:16.499
BOOTLOG_LOADED \SystemRoot\system32\ntoskrnl.exe

 

So there was an ~15-16 second delay from when I told Windows to boot to when the boot log started logging activity.  Any idea what is causing this ~15 second hang?  Since ETL doesn't show the problem, how can I figure out what Windows is doing during this time?  THANKS!!!
 



#328
mikegb

mikegb
  • Member
  • 2 posts
  • OS:Server 2012R2
  • Country: Country Flag

Regarding my Post #327, I think I stumbled onto something.  I use Hyper-V on this system and I have XDC and Virtualization Technology both enabled in the BIOS.  If I disable either one, this 15 second pre osloader hang goes away.  I only get this 15 second "freeze" if both XDC and Virtualization Technology are enabled.  I checked with HP and my system has the last BIOS available for the system.

 

Any ideas?  Thanks.



#329
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

I don't use Hyper-V so I've never seen this.


Posted Image

#330
entactogen

entactogen
  • Member
  • 2 posts
  • OS:none specified
  • Country: Country Flag

Hi Andre, thanks for the Tutorial.

 

A couple of days ago my Zenbook UX32VD (Win 8) started to take 4 - 6 Minutes to boot up for no reason I'm aware of.

 

The full boot summary is here: http://www42.zippysh...47187/file.html .

 

From what I can tell the culprit is the SATA AHCI Controller which takes over 4 Minutes to load (the Driver is up-to-date). I wasn't sure if it's a good idea to disable it for testing so I didn't.

 

<phase name="bootStart" startTime="29" endTime="246530" duration="246501">
        <pnpObject name="PCI\VEN_8086+DEV_1E03+SUBSYS_15071043+REV_04\3+11583659+2+FA" type="Device" activity="Start"
                   startTime="2515" endTime="242870" duration="240356" prePendTime="240356" description="Intel® 7 Series Chipset Family SATA AHCI Controller" friendlyName=""/>
 
Any help to understand or even solve the problem would be greatly appreciated.
 
Gruß aus Dortmund :)


#331
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

 prePendTime is a driver issue. Try the Microsoft AHCI driver and not the Intel one.


Posted Image

#332
entactogen

entactogen
  • Member
  • 2 posts
  • OS:none specified
  • Country: Country Flag

Thanks for the quick reply. Where can I get the Driver when the Ultrabook came with the Intel Driver per Default and without Win 8 installation disc? Can only find AMD and Intel drivers via Google and I could not find it on Microsoft.com.



#333
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

go to device manager and select update driver for the SATA controller and select the Microsoft driver here.


Posted Image

#334
zamarac

zamarac

    Newbie

  • Member
  • 26 posts

MagicAndre1981

 

A few questions...

 

The shutdown test you suggest is NOT really a Shutdown test, but rather a Restart test. There is a notable difference, real shutdown with power off is often significantly longer than system restart, and boot process is handled differently as well after that. Can you suggest a clean test to analyse full system shutdown, and also a boot after full shutdown?

 

Another thing is some activities at shutdown or boot hiding behind generic processes. For example, I can see that svchost.exe is taking quite some time to close at shutdown. But such generic process usually runs multiple system activities, and its not detailed in the trace, what activity within the process actually took that long to complete. For what I know, any malware can hide in svchost.exe process among other activities run by it. Are their tools that offer a greater level of detail of what actually goes on with such generic process during shutdown?

 

Yet another thing is, suppose a process like svchost.exe is identified that slows the system down. But what can I do about it? For example, dataserv.exe process extends shutdown and boot times almost twice in my system. The process maintains a USB link btw PC and APC Power Supply. So what can I do about it - switch it off, basically get reed of APC - its impossible... I can probably set a delayed start for it, but... how to set to close it ahead of actual shutdown, and would it even make sense given its nature?  :angel


Edited by zamarac, 31 May 2014 - 09:11 AM.


#335
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

what do you mean with reboot? Have you run the commands like I posted them?


Posted Image

#336
zamarac

zamarac

    Newbie

  • Member
  • 26 posts

I did run your commands, they don't work for full shutdown with power off & cold boot, and that process is very different from hot PC Restart. Please read my above post again, and try to directly answer its simple questions. It looks like you're avoiding answering basic methodology question.

 

Why you didn't mention Windows Performance Analyzer (WPA) - a GUI-based component installed with Windows Performance Toolkit (WPT), more comprehensive and convenient for an ordinary user than an xml file for figuring out boot & shutdown & standby & any app performance issues? Older Xperfview is also installed with same WPT and can directly open .etl files, no conversion to .xml required. You neither mentioned more flexible Windows Performance Recorder also installed with WPT allowing to record broader choice of traces compare to commands you posted. Also another Perfview tool can help visualize and analyse performance issues.

 

If you still use Windows Vista, and don't have any experience with Windows 8, not sure why you mislead users offering help in several threads related to modern OS performance?


Edited by zamarac, 31 May 2014 - 09:13 AM.


#337
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

I also run Win8 on my laptop, but I hate the WPA.exe. I still use the old xperfivew. But for an overview the XML is fantastic. Share the ETL, so that I can take a look at it


Posted Image

#338
zamarac

zamarac

    Newbie

  • Member
  • 26 posts

Sorry. Since you refuse to answer methodology questions, I don't feel comfortable sharing files, as I want to learn optimizing the system myself.   :no:


Edited by zamarac, 31 May 2014 - 12:45 PM.


#339
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

*facepalm*

 

I don't waste time with trolls liek you any longer. I'll add you to the ignore list.


Posted Image

#340
NoelC

NoelC

    Software Engineer

  • Member
  • PipPipPipPipPip
  • 872 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag

I did ... cold boot, and that process is very different from hot PC Restart.

 

A full shutdown then startup usually use a Hybrid Shutdown/Bootup methodology unless you've disabled it (which you should).

 

A restart by default is actually more thorough, and represents a true shutdown and restart.

 

The intent was for a shutdown to be more like an old Hibernate, and (assuming every driver manages power transitions properly) your system would emerge from hibernation faster than it would do a full bootup.  Obviously with a hibernate you continue with whatever problems your system has accumulated since the last real bootup.  That Microsoft now hides this distinction from folks just leads to confusion.

 

Do yourself a favor and disable "fast startup" (aka hybrid boot) if your system can do it and is set for it.  A real bootup takes only a little longer and will leave your system in a clean state, ready to work.  See also the many Google results for "windows 8 hybrid boot", e.g. this one (one of the first search results just now):

 

http://www.maketeche...n-in-windows-8/

 

-Noel


Edited by NoelC, 05 June 2014 - 08:19 PM.


#341
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 365 posts

Hey MagicAndre1981

 

Boot times seem a bit slow (45s) on this Crucial-SSD based system I've just built my Dad, so I'd be grateful if you could take a look at the ETL. With drivers, it was 900MB (compressed to 100MB) vs 133MB without!

 

https://drive.google...dit?usp=sharing

 

Also, do you have any idea why Win8.1 would ignore an item in the Startup menu and not launch it at startup? It works fine if I click on the link manually and Starter and SlimCleaner both show it as one of the enabled items to be run at startup.



#342
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

Boot to UI is fast with 8s, but to be fully booted it takes 36s:

- <timing bootDoneViaExplorer="8365" bootDoneViaPostBoot="46065" 

I see that the Defender is still running even if you have Avast and Comodo installed. It causes a large CPU usage during boot. Take ownership of this key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender), give your account full permissions and set the value DisableAntiSpyware/DisableAntiVirus to 1.

 

You also start a ton of tools at startup. Look what can be removed.

 

And next time, buy a license for your Dads PC and don't use a KMS crack ("C:\Program Files\KMSpico\Service_KMS.exe") activated Win 8.1 Enterprise ;)


Edited by MagicAndre1981, Today, 09:48 AM.

  • doveman likes this
Posted Image

#343
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 365 posts

Boot to UI is fast with 8s, but to be fully booted it takes 36s:


Thanks, I thought Defender might still be useful in conjunction with Avast (Comodo has HIPS but no AV/anti-malware) but I'll disable it and see what difference it makes. I think I've already pared down the startup items to the minimum my Dad needs but I'll have another look.

I only wanted to try Enterprise to see if the extra RemoteFX features actually benefit him in his situation but they don't seem to. Maybe it only works if you're using a virtualised Hyper-V system, although that would seem to be adding an extra layer of complexity compared to RDP'ing directly to the real machine. Considering that Steam can stream full HD games to another PC on the LAN, you'd think Microsoft could find a way to make RDP work at least as well. Anyway, I'll probably repurpose his old PC as a Win7 PC so that my Dad doesn't need to use RDP anymore, so I'll likely just tell him to buy Windows 8.1 Core or even use Windows 7 instead, as he still has some spare licences for that. :)





Also tagged with one or more of these keywords: bootvis, Performance, Boot, slow

1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


    doveman


How to remove advertisement from MSFN