Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Win7 Pro Long Shutdown Can't find issue

11 Jan 2012   #1
Scott W

Windows 7 Professional 64Bit With SP1
 
 
Win7 Pro Long Shutdown Can't find issue

Hey,

For the last 2 days i have been trying to diagnose why my PC is taking anything between 1min 30sec and 3min to shutdown.

I found that if i booted into my desktop (fully loaded) then shut down, my shutdown time is between 9 and 12 seconds! However if i boot into desktop then use any program or game, then i had the long shutdown time.

Event log showed the ShutdownKernelTime to be between 120000 and 150000 when i had the long shutdowns.

For your info, for testing purposes the programs i used are firefox 10.0 (opening 3 websites) and Windows Live Mail. IF for any reason i got a successful quick shutdown after running these i then ran GTA IV for 5min then tried a shutdown.

So far i have tried:
  • Disabling all services and startup entries in msconfig. Got same results as above
  • Various combinations of service and startup entries in msconfig. Same result as above
  • Booting into safe mode running same test. I get a successful quick shutdown.
  • Checked the registry for any page file clearing at shutdown.
  • Complete disk defrag
  • Advanced System Care 5 Scan and repair
  • Updating any drivers if update available
  • Running a shutdown trace using Windows SDK. This however works by restarting the PC then running the trace so imitates me booting in to desktop and shutdown again which works fine so as expected the trace shows everything working as it should. I tried adding firefox and Windows live mail to startup folder hoping just the simple opening of these programs would cause whatever happens to give me a long shutdown time. It seems though like i need to open the 3 websites to create the issue however the only time to do this would be the delayed shutdown stage which im advised you shouldn't touch anything at this stage? could anyone advise on this?
Hopefully one of you's out there with a bit more knowledge can point me in a new direction that puts me closer to solving this.


Notes:
I used to have Ntune (Nvidia) for GPU Fan control and MSI Afterburner for GPU Overlocking, however after trying one after the other enabled/disabled etc i found i got successful quick shutdowns but long shutdown then returned after playing GTA IV. I uninstalled MSI Afterburner and now only use Ntune for both GPU Overcloking and Fan Control.



Current Services enabled:
All Microsoft services
Apple Mobile Device, Ipod Service
Avast Antivirus
Bonjour Service
ntune service, NVIDIA Display Driver service, NVIDIA Update service daemon, NVIDIA Steroscopic 3D Driver Service


Current Startup's enabled:
Realtek HD Audio Manager
RocketDock
NVIDIA Ntune
Avast Antivirus


Any help greatly appreciated

Updates:
Quote   Quote: Originally Posted by whs View Post
In regedit, navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

Double click on WaitToKillServiceTimeout and set it to 2000 - that is milliseconds. Then OK.
Initially solved the long shutdown if i used my programs as detailed above but has since returned after using the programs for a longer time and watching a HD game review.


My System SpecsSystem Spec
11 Jan 2012   #2
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

In regedit, navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

Double click on WaitToKillServiceTimeout and set it to 2000 - that is milliseconds. Then OK.
My System SpecsSystem Spec
11 Jan 2012   #3
Scott W

Windows 7 Professional 64Bit With SP1
 
 

Many thanks for the reply. Your suggestion has solved my long shutdown issue after using my programs as detailed above but i still have a long shutdown after running my game test (5min of GTA IV)
My System SpecsSystem Spec
11 Jan 2012   #4
Scott W

Windows 7 Professional 64Bit With SP1
 
 

Ok scrap the last post. After using the same programs (Firefox and WL Mail) for a longer period of time (watched a HD game review video, received some e-mail, checked a few websites) i got a long shutdown again so original post still fully vaild.
My System SpecsSystem Spec
11 Jan 2012   #5
JimLewandowski

 
 

Does the system log (event 200 for Longer-than-normal shutdown??) show components of the shutdown process to give you a hint where to look?

Ultra slow 'logging off' during shut down

Data Name="ShutdownUserSessionTime">56522</Data>
<Data Name="ShutdownUserPolicyTime">0</Data>
<Data Name="ShutdownUserProfilesTime">8</Data>
<Data Name="ShutdownSystemSessionsTime">5001</Data>
<Data Name="ShutdownPreShutdownNotificationsTime">200</Data>
<Data Name="ShutdownServicesTime">4281</Data>
<Data Name="ShutdownKernelTime">10676</Data>
My System SpecsSystem Spec
11 Jan 2012   #6
Scott W

Windows 7 Professional 64Bit With SP1
 
 

<EventData>
<Data Name="ShutdownTsVersion">1</Data>
<Data Name="ShutdownStartTime">2012-01-10T20:51:48.064842700Z</Data>
<Data Name="ShutdownEndTime">2012-01-10T20:54:10.752835200Z</Data>
<Data Name="ShutdownTime">142687</Data>
<Data Name="ShutdownUserSessionTime">7519</Data>
<Data Name="ShutdownUserPolicyTime">0</Data>
<Data Name="ShutdownUserProfilesTime">121</Data>
<Data Name="ShutdownSystemSessionsTime">5245</Data>
<Data Name="ShutdownPreShutdownNotificationsTime">1413</Data>
<Data Name="ShutdownServicesTime">3674</Data>
<Data Name="ShutdownKernelTime">129923</Data>
<Data Name="ShutdownRootCauseStepImprovementBits">0</Data>
<Data Name="ShutdownRootCauseGradualImprovementBits">0</Data>
<Data Name="ShutdownRootCauseStepDegradationBits">0</Data>
<Data Name="ShutdownRootCauseGradualDegradationBits">64</Data>
<Data Name="ShutdownIsDegradation">true</Data>
<Data Name="ShutdownTimeChange">0</Data>
</EventData>

Original post i said it was the kernel time and is generally between 100000 and 150000 Quick shutdown for me is between 9 and 15 seconds. Anything else i refer to as a long shutdown.
My System SpecsSystem Spec
Reply

 Win7 Pro Long Shutdown Can't find issue




Thread Tools





Similar help and support threads
Thread Forum
WIN 7 long shutdown time
Hi, I have spent much time looking for the answer to the long shutdown time on win7. I have read much info' on regedit alterations,ref;changing 20,000 to 2,000 but that only effected the desktop closing down to Shutdown screen. Desktop to shutdown screen now only 2 seconds GREAT ! But shutdown...
Performance & Maintenance
Extra long shutdown
On my desktop with an i7 and a M4 SSD, the time to shutdown is almost longer than the boot time. I have already set the registry to 2000ms, but the system seems to ignore that. In contrast, my laptop with an i5 and a Vertex2 shuts down almost instantly. It has a quasi identical Win7 setup. ...
Performance & Maintenance
BSOD during very long shutdown, driver_power_state_failure
The screen comes up after maybe 20 minutes of the system trying to shutdown. I have a Windows 7 Home Premium 64bit, OEM, about a year old. I had just fixed this about 2 weeks ago, but it's doing it again.
BSOD Help and Support
Long shutdown times Win7 64-bit enterprise
Like some other posts I have read, my new windows install has suddenly started to take several minutes to shutdown. I only had a few programs installed when this started. I un-installed each program and did a registry clean to see if any of them was causing the issue, but nothing helped. All...
Performance & Maintenance
Long Shutdown then BSOD after Win7 update
On 4.15.11, possibly right after windows update downloaded SP1 along with a ton of other updates, my Dell Studio One 19 (E7500 and 4GB of RAM) running Windows Home Premium would not shut down. After 1-2 hours, I pulled the plug and subsequent shutdowns gave me the BSOD. Minidump files are...
BSOD Help and Support
BSOD after long pause at shutdown
starting about a week ago my laptop stopped going into sleep mode or shutting down when I told it too, it now sits at "shutting down" (or 1/2 to sleep mode) and after 10 minutes I get a power_state_failure BSOD and it restarts. Attached is the requested items for helping figure out what is...
BSOD Help and Support

Our Sites

Site Links

About Us

Find 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 17:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App