trying to debug slow shutdown

Page 1 of 2 12 LastLast

  1. nyg
    Posts : 19
    Windows 7 Enterprise 64-bit
       #1

    trying to debug slow shutdown


    I'm trying to debug a slow shutdown on my laptop with an SSD.

    I've done the msconfig to so non-microsoft services and other startups do not start at boot but this doesn't make a big difference.

    One thing is that although the shutdown takes 2 minutes, and the disk activity light is pinned solid in those 2 minutes, so something is going on, I can't seem to figure out how to get information about what is going on. The big problem is that 7 seconds after the shutdown command, the event log service shuts down. After that point there are no log entries.

    Is there a way to configure the event log service so that it doesn't stop right after the shutdown command? If there were log entries this would probably be quick debugging.

    Also while I am at it, here are my theories for what is going on (1) the disk is busy in those 2 minutes doing some sort of registry backup, or (2) also running through a journaling file system log to update disk blocks to a consistent state, or (3) or running the search indexer.

    What does Windows 7 do to the disks when it is shutting down?
      My Computer


  2. Posts : 6,668
    Windows 7 x64
       #2

    Are there any major software packages at work here?
    Antivirus/firewall?
    Anything made by autodesk?
      My Computer


  3. nyg
    Posts : 19
    Windows 7 Enterprise 64-bit
    Thread Starter
       #3

    There's boatloads of stuff on my machine (Dynamics, Adobe Creative Suite, ...)
    Now that you've got me thinking about it, Dynamics runs a local version of SQL server.
    That would be just the ticket for something that wants to do a lot of IO before it closes down.
    That would show up in the Event Log if I could get the Event Logger to stay alive longer.
    But I could try disabling that service.
      My Computer


  4. nyg
    Posts : 19
    Windows 7 Enterprise 64-bit
    Thread Starter
       #4

    Thinking about it I suspect this might be due to VSS, the shadow copy. In fact SQL server has some sort of service that does a VSS backup of the database. Hard to confirm though without event log staying alive.
      My Computer


  5. Posts : 6,668
    Windows 7 x64
       #5

    Yeah, sorry I don't know of a way to set a shutdown order, since the event logger requires several services running to work right, it shutting down early kind of makes sense actually.

    Your line of thought regarding the local sql seems logical. I would give that a look over.
      My Computer


  6. Posts : 687
    Microsoft Windows 10 Professional / Windows 7 Professional
       #6

    Look at the registry for a key called ClearPageFileAtShutdown which value should be 0 (zero) you can find it here: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management, it the value is 1, then it may cause the long shut down.
      My Computer


  7. Posts : 6,668
    Windows 7 x64
       #7

    As a footnote to that, I would put the pagefile on a mechanical drive just to prevent the massive read/writes to the ssd.
      My Computer


  8. nyg
    Posts : 19
    Windows 7 Enterprise 64-bit
    Thread Starter
       #8

    Putting the pagefile on the SSD is exactly what the SSD ought to be good at, especially for Windows, where bloated applications like Outlook spend most of their time crushing the IO system with page faults. That is why SSDs make such a big difference in the performance of running Outlook. So it makes no sense to move it off. Clearing the page file on a mechanical disk will be even that much slower.

    A question on the ClearPageFileAtShutdown flag. I'd imagine that a danger of this would be that the disk would be that much more vulnerable to cracking with latent passwords, etc. sitting in the clear on the disk from poorly written applications. But is there any other downside? I was experimenting with this flag yesterday -- it did seem to make the shut down faster but then I had trouble rebooting - to the extent that for a moment it looked like I was going to have to do a full system restore from backup disks in order to get my computer back. Luckily it did come back and I quickly changed the flag back, but maybe this was coincidental.
      My Computer


  9. nyg
    Posts : 19
    Windows 7 Enterprise 64-bit
    Thread Starter
       #9

    Also if one is running full disk encryption such as bitlocker or PGP whole disk encryption, the clearing of the page file would be relatively pointless, right?
      My Computer


  10. Posts : 6,668
    Windows 7 x64
       #10

    My pagefile resides on my slowest and oldest disk.
    My shutdown time is approximately 9 seconds. (assuming rocketdock doesn't hang which it does now and then.)
    I've never done anything to try and speed it up I've not altered the shutdown process or even bothered to remove a few superfluous startup items I have running. I simply put the page file on the least used drive because it made logical sense.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:29.
Find Us