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 Windows 7 boot/shutdown/hibernate/standby/resume issues

slow Boot bootvis performance

  • Please log in to reply
1228 replies to this topic

#951
amorshc

amorshc
  • Member
  • 5 posts
  • Joined 07-May 13
  • OS:Windows 7 x64
  • Country: Country Flag
MagicAndre1981,

I've been having a problem with a super slow shutdown, and I've checked through the logs and cannot find any issues except for the
<interval name="NtShutdownSystem" startTime="42212" endTime="163596" duration="121383"/>
and
<interval name="IoShutdownSystem" startTime="42850" endTime="162971" duration="120121"/>

slows.

Attached is the file for the xbootmgr trace. Any help would be appreciated. Thanks!

https://skydrive.liv...1ABD6CBE820!216

The new shutdown summary is named "summary_Shutdown"
the old shutdown trace is just named "shutdown_info" if you'd like to compare.

Thanks again.

Attached Files




How to remove advertisement from MSFN

#952
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

please upload the .ETL file
Posted Image

#953
amorshc

amorshc
  • Member
  • 5 posts
  • Joined 07-May 13
  • OS:Windows 7 x64
  • Country: Country Flag
Attached is the ETL file.

#954
amorshc

amorshc
  • Member
  • 5 posts
  • Joined 07-May 13
  • OS:Windows 7 x64
  • Country: Country Flag
not quite sure why it didn't attach. However here is the link for the ELT file

https://skydrive.liv...1ABD6CBE820!152

#955
amorshc

amorshc
  • Member
  • 5 posts
  • Joined 07-May 13
  • OS:Windows 7 x64
  • Country: Country Flag
not quite sure why it didn't attach. However here is the link for the ELT file

https://skydrive.liv...1ABD6CBE820!152

It is labeled base+cswitch+drivers+power_1

#956
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

Windows is busy writing the data to your RAMDIsk (C:\RAMDisk.img). This causes the long delay.
Posted Image

#957
amorshc

amorshc
  • Member
  • 5 posts
  • Joined 07-May 13
  • OS:Windows 7 x64
  • Country: Country Flag
Is there any possibly way to speed this up?

#958
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

disable writing the content of the RAMdisk to the HDD.
Posted Image

#959
Chuakid

Chuakid
  • Member
  • 6 posts
  • Joined 18-May 13
  • OS:Windows 8.1 x64
  • Country: Country Flag
Hello,

Due to my laptop taking up to 6 minutes to boot, I decided to debug it. I came across this thread and just made a boot trace and took a look at it, and I found that the "WSearch Start" service is taking an extremely long time to load. Is there any fix to this issue? I believe that disabling the service would effectively cripple my system's searching speed.

Here is the boot trace if you require it: http://sdrv.ms/13DupGB

Edited by Chuakid, 18 May 2013 - 09:31 PM.


#960
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

your Samsung Spinpoint M8 750GB is busy all the time. This causes the slow boot. remove avast, try a different AV tool and see if this improves boot.
Posted Image

#961
Chuakid

Chuakid
  • Member
  • 6 posts
  • Joined 18-May 13
  • OS:Windows 8.1 x64
  • Country: Country Flag
That helped. Thank you.

#962
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

you should also install the Enterprise Update rollup and run the linked optimization.
Posted Image

#963
Chuakid

Chuakid
  • Member
  • 6 posts
  • Joined 18-May 13
  • OS:Windows 8.1 x64
  • Country: Country Flag
From http://support.micro....com/kb/2775511 I understand that the Enterprise Rollup contains every update available through Windows Update since SP1. If I regularly update using Windows Update, would the rollup still be necessary?

#964
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

no, the update DOESN'T contain all Updates. It is a collection of 90 HOTFIXES which fix performance and Network issues.
Posted Image

#965
Chuakid

Chuakid
  • Member
  • 6 posts
  • Joined 18-May 13
  • OS:Windows 8.1 x64
  • Country: Country Flag
Oh I misunderstood the article. I will report back with results.

#966
keyboardcowboy

keyboardcowboy
  • Member
  • 2 posts
  • Joined 08-June 13
  • OS:Windows 7 x64
  • Country: Country Flag
my windows7 installation hibernates pretty fast but takes forever to resume. It used to take 7 minutes, i turned off hibernation, de-fragmented and enabled it again but now it takes 9 minutes :( ..
I have uploaded both the trace files i.e before and after de-fragmentation can anyone help me out


Before defrag
After Defrag


#967
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

reading the hibernation file is the cause of the slowdown:

hiberread="440503000"

440s is too long. You use an old 40GB HDD (SEAGATE ST340014A 40.0GB), maybe the drive is now at is end of lifetime. Install Windows to a different HDD.
Posted Image

#968
keyboardcowboy

keyboardcowboy
  • Member
  • 2 posts
  • Joined 08-June 13
  • OS:Windows 7 x64
  • Country: Country Flag
could there be any other problem? writing the hibernation file is fast, it also boots in decent time

#969
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

the data show me that the reading is slow.l
Posted Image

#970
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 391 posts
  • Joined 22-August 05
xbootmgr -trace boot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP

did cause my PC to BSOD on boot and rebooting it gave me the options of Startup Repair or Boot Normally and the latter caused it to show the Windows boot animation and then reboot again. The next time, I pressed F8 and selected Last Known Good Configuration and it booted OK. I understand Windows creates this backup on each successful boot, so it would be identical to the previous working boot and won't result in any loss of settings, so this is probably a better, quicker option than using System Restore.

When using the xbootmgr command, where does it set it and is it wiped on the next successful boot, so that it will no longer be in effect if I reboot now? Otherwise I'd better remove it manually. Using the Last Known Good boot, xbootmgr did still run once Windows had loaded but then gave an error once the countdown had finished, no doubt because whatever it had set was not included in the Last Known Good configuration.

Edited by doveman, 08 July 2013 - 12:42 PM.


#971
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

as I wrote in the first post the DRIVERS flag can cause a BSOD, but MS refuses to fix it.

To cancel logging run xbootmgr -remove.
Posted Image

#972
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 391 posts
  • Joined 22-August 05

as I wrote in the first post the DRIVERS flag can cause a BSOD, but MS refuses to fix it.

To cancel logging run xbootmgr -remove.


Thanks.

Yeah I saw your warning but thought I'd try it anyway to see if it worked on my system ;)

One thing that was lost by using Last Known Good is that the path to xbootmgr isn't included in the Path variable but that's easy enough to fix and would be lost (along with more, most likely) by using System Restore anyway.

#973
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 391 posts
  • Joined 22-August 05
OK, I've done the procedure described here http://www.msfn.org/...a-or-windows-7/ but I don't think it's helped, as my boot time before was 104s and after 107s (although that's close enough to say it's not changed).

I've done a boot trace and uploaded it here if you could take a look for me https://docs.google....dit?usp=sharing

I also made a summary_end.xml as described in that other post and have attached it in case it's easy to analyse than the .etl. From that, I can see that bootDoneViaExplorer="22711" and bootDoneViaPostBoot="108311" so the problem seems to be somewhere after Windows has booted to the desktop but the rest of the xml is rather confusing to me.

Attached Files


Edited by doveman, 08 July 2013 - 08:30 PM.


#974
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

the first delays happen at the first boot stage. Windows hangs several seconds while the attached drives are enumerated:


- <phase name="bootStart" startTime="42" endTime="7951" duration="7909">
  <pnpObject name="PCIIDE\IDEChannel\5+1270fc08+0+0" type="Device" activity="Enum" startTime="2893" endTime="6407" duration="3514" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 0" /> 
  <pnpObject name="PCIIDE\IDEChannel\5+1270fc08+0+1" type="Device" activity="Enum" startTime="2894" endTime="6407" duration="3513" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 1" /> 
  <pnpObject name="PCIIDE\IDEChannel\4+223a9b9c+0+0" type="Device" activity="Enum" startTime="258" endTime="2766" duration="2508" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 0" /> 
  <pnpObject name="PCIIDE\IDEChannel\4+223a9b9c+0+1" type="Device" activity="Enum" startTime="259" endTime="2766" duration="2507" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 1" /> 

look at the duration of 2.5 - 2.5s.


The next delay happens while starting this service:

  <serviceTransition name="MPExtended Service" group="" transition="start" totalTransitionTimeDelta="40516" firstCheckpointTimeDelta="20927" processingTimeDelta="19589" container="MPExtended.ServiceHosts.CoreService.exe (480)" startedAt="24492" firstCheckpointedAt="45419" endedAt="65008" /> 

What is this MPExtended Service? Also MySQL and TVService are slow to start.


Yes, the largest delay happens when Windows loads all startup tools.

But I can see that the HDD is the bootleneck. Look at the disk graph and you see that the disk is busy. The Queue Depth is 149!!!!!!!!!! at the Init of some disk operations. Try a different AV tool, Avast seams to hit the disk very hard.

You should buy a SSD to fix the HDD bottleneck if you see the disk activity with other AV tools, too.
Posted Image

#975
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 391 posts
  • Joined 22-August 05

the first delays happen at the first boot stage. Windows hangs several seconds while the attached drives are enumerated:


- <phase name="bootStart" startTime="42" endTime="7951" duration="7909">
  <pnpObject name="PCIIDE\IDEChannel\5+1270fc08+0+0" type="Device" activity="Enum" startTime="2893" endTime="6407" duration="3514" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 0" /> 
  <pnpObject name="PCIIDE\IDEChannel\5+1270fc08+0+1" type="Device" activity="Enum" startTime="2894" endTime="6407" duration="3513" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 1" /> 
  <pnpObject name="PCIIDE\IDEChannel\4+223a9b9c+0+0" type="Device" activity="Enum" startTime="258" endTime="2766" duration="2508" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 0" /> 
  <pnpObject name="PCIIDE\IDEChannel\4+223a9b9c+0+1" type="Device" activity="Enum" startTime="259" endTime="2766" duration="2507" prePendTime="0" description="IDE Channel" friendlyName="ATA Channel 1" /> 

look at the duration of 2.5 - 2.5s.


Thanks for that.

The drives is weird as I only have a single SATA HDD attached to the AHCI controller, so I'm not sure why it's enumerating the empty IDE channels. I think there should only be two of those anyway as there's only a single IDE port, so Master and Slave.

TVService and MySQL are used for MediaPortal (and MySQL also for my XBMC database) and are essential unfortunately and MPExtended Service is used to provide Browser/Internet access to the MediaPortal media files catalog/TV Guide so I need that as well but will ask if any of these can possibly be made faster to load.

I'll try uninstalling Avast and redo the trace and then try with Avira AntiVir, which is the only other decent free antivirus I'm aware of (Avast is probably better in terms of fewer false positives but not worth it if it's going to cause other problems).





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

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users