• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
MagicAndre1981

Trace Windows 7 boot/shutdown/hibernate/standby/resume issues

1,275 posts in this topic

Yeah, I saw that the big spike wasn't there now, weird. Makes me wonder if my system is unstable is some way? :blink:

What can I do about the registry issues? (ntkrnlmp.exe)

I'll check through startup tools in Autoruns, you've got any idea which ones is worth keeping except Avast AV?

But now I'm more concerned if there's anything wrong with my system.

Is it enough just to unplug the webcam to make Windows Image Acquisition service work ok? Or should I put the service on delayed start?

Edited by robe
0

Share this post


Link to post
Share on other sites

the WIA service should be started on demand. so removing the Webcam should prevent the service from starting.

Look at all those Asus tool. Do you need all of them?

0

Share this post


Link to post
Share on other sites

My computer is taking over 2 minutes to shutdown.

Sadly every time I try and trace I get this:

[2012/09/15-21:05:15.810] Registering for auto-run with a 120000 msec delay...
[2012/09/15-21:05:15.814] Completed auto-run change.
[2012/09/15-21:05:15.814] Registering for auto-run with a 1 msec delay...
[2012/09/15-21:05:15.814] Completed auto-run change.
[2012/09/15-21:05:15.826] Starting trace...
[2012/09/15-21:05:15.875] Couldn't start tracing session to 'C:\TEMP\shutdown_BASE+CSWITCH+DRIVERS+POWER_1_km_premerge.etl' (0x000000b7).
[2012/09/15-21:05:15.876] Unable to start trace.
[2012/09/15-21:05:15.876] Stopping trace...
[2012/09/15-21:05:16.240] Stopped kernel logger.
[2012/09/15-21:05:16.240] Couldn't find user-mode logger in active logger list.
[2012/09/15-21:05:16.240] Unregistering auto-run...
[2012/09/15-21:05:16.240] Completed auto-run change.

OK, this 1 worked: http://www.sevenforums.com/tutorials/177443-gathering-startup-shutdown-sleep-hibernate-reboot-trace.html after I did:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"DisablePagingExecutive"=dword:00000001

My shutdown trace: http://www.datafilehost.com/download-4fc37a1d.html

Edited by war59312
0

Share this post


Link to post
Share on other sites

According to the trace, your Windows shuts down in 14s and not 2 minutes:


- <timing shutdownTime="14329" servicesShutdownDuration="5000">

0

Share this post


Link to post
Share on other sites

Then it lies! Figures!

I just timed it with a stop watch, 3 times in a row, average of 2 minutes 6 seconds just for my computer to turn off.

Enter time it's stuck on "Shutting Down".

0

Share this post


Link to post
Share on other sites

Did it also happen when you ran the trace?

0

Share this post


Link to post
Share on other sites

Yes indeed, happens every single time.

Will get another trace later in the week to be sure.

0

Share this post


Link to post
Share on other sites

Do this and give me the new trace file.

0

Share this post


Link to post
Share on other sites

OK, I figured out my issue.

The issue is http://memory.dataram.com/products-and-services/software/ramdisk which seems to have a bug.

My small 1GB RAM drive should be saving to my super fast SSD in a few seconds which it seems to be doing but the driver is taking too long to exit which causes shutdown to hang for 2+ minutes. :(

Going to see if there new version 4 makes any difference.

0

Share this post


Link to post
Share on other sites

Well afraid version 4 makes no difference what so ever.

Guess I will be switching to a different product. Too bad.

OK I have started using this for my RAMDisk and no more shutdown issue and works perfectly for my needs: http://thessdreview.com/Forums/software/1834.htm

Edited by war59312
0

Share this post


Link to post
Share on other sites

the trace still doesn't show any delays:


<timing bootDoneViaExplorer="30360" bootDoneViaPostBoot="68360" osLoaderDuration="2363" postBootRequiredIdleTime="10000" postBootDisturbance="28000"

so booting to the desktop takes 30s and your Windows is fully booted in 58s. The osLoader takes 2.3s to load and not 1minute. So I can see where you have the delay. The only thing which is a larger delay is that AntiVir service takes 14s to start.

0

Share this post


Link to post
Share on other sites

the trace still doesn't show any delays:


<timing bootDoneViaExplorer="30360" bootDoneViaPostBoot="68360" osLoaderDuration="2363" postBootRequiredIdleTime="10000" postBootDisturbance="28000"

so booting to the desktop takes 30s and your Windows is fully booted in 58s. The osLoader takes 2.3s to load and not 1minute. So I can see where you have the delay. The only thing which is a larger delay is that AntiVir service takes 14s to start.

OK, thanks for checking it anyway. Obviously whatever's causing the delay isn't caught by the trace.

0

Share this post


Link to post
Share on other sites

Hi magicandre1981,

Im wondering if your still willing to have a look at start-up times etc. I have gone through your tutorial and the HDD optimisation you linked to and have made it a little faster but it is still very long time. I have narrowed the longest time down to the WinlogonInit and PostExplorerPeriod sections of the log generated but in the services are im unable to find much after the initial changes i made.

Before doing your tutorial i also went through my usual speed up routine which i have attached which hopefully didn't cause this problem but basically it uninstalls unneeded/unused software, checks for virus/trojan/etc and removes old drivers.

I have attached the before and after XML summaries but the etl's before is 480KB and after is 603KB.

What is it that you would need if you were going to look?

Best regards,

JohnC.

summary_boot_before.xml

summary_boot_after.xml

speedUpRoutine.txt

0

Share this post


Link to post
Share on other sites

I need the ETL file to see why WinLogonInit is slow. Compress it as 7z or RAR and upload it to your SkyDrive or Dropbox.

0

Share this post


Link to post
Share on other sites

Restoring the network connections takes 125s and causes the long delay:

post-70718-0-83629000-1349680747_thumb.p

So don't restore network connections all the time. Map them later via a CMD script with

NET USE /PERSISTENT: NO

0

Share this post


Link to post
Share on other sites

Ill make the change ad re-trace, thanks for your help so far.

0

Share this post


Link to post
Share on other sites

ok, tell me the result.

0

Share this post


Link to post
Share on other sites

Now your Windows boots in 66s to the desktop. It doesn't show the time when all startup apps are loaded:


<timing bootDoneViaExplorer="66092" bootDoneViaPostBoot="-1"

What I can see is that your HDD is busy all the time.

Disk_usage.png

When I checked what causes the issue I can see that Defender/MSE causes a lot of disk activity. I always had this issue with MSE, so I don't use it any longer.

I can also see that the DNS client service causes some high cpu usage. Add -stackwalk profile after -trace flags to the command and give me the new file.

0

Share this post


Link to post
Share on other sites

Do you know why it shows -1? I thought the number might be to high but that didn't make sense :P What does the -stackwalk profile command do and what would you recommend instead of MSE in that case if you don't mind me asking.

Also I'll post it up within the hour. Have to get access to laptop.

Edited by jeked
0

Share this post


Link to post
Share on other sites

-stackwalk profile captures the callstack. this is helpful to see which function of the DNS service causes the CPU usage.

The -1 is shown when Windows was still busy with running all startup applications when the trace was finished.

Try AVG or AntiVir as alternative.

0

Share this post


Link to post
Share on other sites

Hi,

I just realised that i didnt send the post to you, so sorry to make you wait:

https://www.dropbox.com/s/i3xlw4q4bor9ly0/fix2-boot-etl.7z

That is the latest etl file. I installed Avast for its low boot impact compared to a couple other before i got you second message about Avir and AVG. Ill check them as well after we sought out some more issues...

Any help you can give is awesome.

Regards

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.