Solved SLOW SHUTDOWN - TAKES 3mins approx

thenoo

New member
Member
VIP
Local time
4:44 AM
Messages
140
I have WIN 7 64-bit and recently shutdowns are taking over 3 mins - no other problems are showing so far .

What sort of things should be done to investigate this problem ?
 

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Home Premium x64
CPU
AMD 3000+ 2.00gHZ
Motherboard
ASUSTeK k8vsedx
Memory
2048 Mbs
Graphics Card(s)
RAEDON 9800 PRO
Monitor(s) Displays
Sony SDM-HS95P 19.1"vis
Hard Drives
2x500 Gbts

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VPCEB47GM Laptop
OS
Win 7 Pro 64-bit
CPU
Intel i5 2.4 Ghz
Memory
8GB DDR3
Graphics Card(s)
Intel HD 3000
Sound Card
IDT High Definition
Monitor(s) Displays
15.6 WGXA Anti-Glare LED
Screen Resolution
1280x800
Hard Drives
640Gb 7200rpm
Antivirus
MSE
Browser
Opera (primary) with IE9 backup

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro x64
CPU
Intel Core i5 4440 @Stock
Motherboard
Gigabyte Z97 D3H
Memory
4 x 4GB HyperX Fury DDR3
Graphics Card(s)
Gigabyte GTX 1050Ti O4G
Sound Card
Integrated
Monitor(s) Displays
Dell P2417H
Screen Resolution
1920 x 1080
Hard Drives
Samsung EVO 850 120GB / Toshiba DT01ACA050 1TB 7200prm 32MB
PSU
Riotoro Onyx 750W
Case
NZXT H500 Black-Red
Cooling
Stock CPU + NZXT 120mm + 2x120mm red fans
Keyboard
Modecom Volcano Lanparty
Mouse
Asus ROG Gladius / DeepCool E-Pad Plus
Internet Speed
DOCSIS 50/3 Mbit
Browser
Google Chrome
Other Info
Asus K55VJ(i5 3210M, GT635M / 2GB, 8GB DDR3, 500GB HDD)

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built Desktop By DataTech
OS
Windows 7 Ultimate X64 SP1
CPU
Intel i5-2550K, Differing ~4.4-4.8GHz No built in GPU
Motherboard
ASUS P8Z68-V PRO/GEN3
Memory
16GB G.Skill Sniper 1866MHz @ 2133MHz 2x8GB
Graphics Card(s)
ASUS GTX650TIB-DC2OC-2GD5, (650TI Boost)
Sound Card
Onboard Realtek 5-1
Monitor(s) Displays
Samsung P2570HD
Screen Resolution
1920x1080
Hard Drives
Samsung 840 Pro 256GB SSD for OS, 500GB Seagate Constellation (Enterprise drive) for Data
PSU
Corsair HX650W
Case
Inwin Dragon Rider
Cooling
Hyper 212 EVO w/two Noctua fans, push-pull, @1300 RPM
Keyboard
E-Z Eyes, bright yellow keys with large characters
Mouse
steelseries SENSEI Laser Pro Gaming
Internet Speed
48-51Mbs Mbs down, 11 Mbs up Xfinity Cable
Antivirus
Norton Internet Security 2013
Browser
IE 10, Opera, Pale Moon if needed
Other Info
4 case fans, LG BluRay-RE, ASUS DVD-RW, Mr. Fusion power supply, 1.21 gigawatts.
Let's create a clean boot to see if that helps:

In msconfig>Startup uncheck everything except AV and gadgets - all others are freeloaders on startup, shutdown, CPU/RAM and can spy on you. Startup Programs - Change

After restarts, check msconfig>Services, choose "Hide all MS Services" then see what's running without your knowledge and uncheck them.

After several restarts, check back in both places to see if anything writes itself back in, turn it off in it's Program Preferences or Uninstall it.

If this doesn't help, turn off your AV to restart to see if that is the problem, replace it with MSE or Avast6.

Finally use the tool the Pro's use to trace these issues: Trace Windows 7 boot-shutdown-hibernate-standby-resume issues - MSFN Forums
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Yes, get a shutdown trace with xperf. If you are willing to do so, I can give you a command to run that will get everything needed - however, it'll generate a decent size (a few hundred MB) file, and as such you'll need a place to put it (which I can also provide). Let me know if you're interested.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Thanks for the reply and I am certainly interested .
 

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Home Premium x64
CPU
AMD 3000+ 2.00gHZ
Motherboard
ASUSTeK k8vsedx
Memory
2048 Mbs
Graphics Card(s)
RAEDON 9800 PRO
Monitor(s) Displays
Sony SDM-HS95P 19.1"vis
Hard Drives
2x500 Gbts

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Home Premium x64
CPU
AMD 3000+ 2.00gHZ
Motherboard
ASUSTeK k8vsedx
Memory
2048 Mbs
Graphics Card(s)
RAEDON 9800 PRO
Monitor(s) Displays
Sony SDM-HS95P 19.1"vis
Hard Drives
2x500 Gbts
I'll have a command to run and tool install steps in a bit to gather a trace. Stay tuned.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Last edited by a moderator:

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Home Premium x64
CPU
AMD 3000+ 2.00gHZ
Motherboard
ASUSTeK k8vsedx
Memory
2048 Mbs
Graphics Card(s)
RAEDON 9800 PRO
Monitor(s) Displays
Sony SDM-HS95P 19.1"vis
Hard Drives
2x500 Gbts
OK, here goes. First, you need to download the Windows 7 SDK, and then run the SDK installer to download the Windows Performance Toolkit (WPT) redistributable files. Ignoring the fact that my system has the Debugging tools installed and thus "checked" in the "Common Utilities" node, you only need to check the "Windows Performance Tookit" box under the "Redistributable Packages" section, as shown below:
SDK_PerfToolkit.png


After you click next, it will download (only) the installation .MSI packages needed to actually install the WPT. Once the download of the files is complete and you exit the SDK installer, you will need to actually install the version of the WPT that matches the architecture of your OS (the x86 MSI on a 32bit Win7 machine, the x64 MSI on a 64bit Win7 machine). The downloaded .MSI files will be located (by default) in C:\Program Files\Microsoft SDKs\Windows\v7.1\Redist\Windows Performance Toolkit:
SDK_PerfToolkit_Redist.png


Install the correct .MSI that matches the architecture (32bit or 64bit) of your Windows 7 install, taking all the default options and performing a "Complete" installation.

Last, you need to execute this command in an ELEVATED (Start > type "cmd", right-click the "cmd" icon from the list and select "Run as Administrator") cmd prompt to create a shutdown trace:
SDK_PerfToolkit_Redist_cmd.png


Note that this command is *all one line*, so watch out for any sort of word wrap if you are copying/pasting from your browser:
Code:
xbootmgr -trace shutdown -traceFlags BASE+LATENCY+DISK_IO_INIT+DISPATCHER+DRIVERS+FILE_IO+FILE_IO_INIT+NETWORKTRACE+PERF_COUNTER+POWER+PRIORITY+REGISTRY -stackWalk CSwitch+DiskFlushInit+DiskReadInit+DiskWriteInit+Mark+ProcessCreate+ProcessDelete+Profile+ReadyThread+RegCloseKey+RegDeleteKey+RegDeleteValue+RegSetValue+SyscallEnter+SyscallExit -resultPath "C:\Shutdown_Trace"
SDK_PerfToolkit_Redist_cmd_xbootmgrcmd.png


That command will cause your machine to reboot. Once you log back in, you'll see a short (2 minute) delay, and then your machine will reboot *again*:
SDK_PerfToolkit_Delay.png


Once the machine has rebooted this time, you will be able to log on and the tool will then merge the kernel mode and user mode portions of the trace into one (very) large .etl file in C:\Shutdown_Trace (or if you changed the location folder, the location you specified):
SDK_PerfToolkit_Finishing.png


SDK_PerfToolkit_Files.png


This .etl file needs to be compressed (7zip, WinRar, WinZip, etc) before you will be uploading it. Let me know if/when you are able to get to this point, and I will PM you a location that it can be uploaded securely.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
SLOW SHUTDOWN - taking 3 mins approx- SOLVED !

This problem has now been solved thanks to a suggestion by Dwarf. I had the "ClearPageFileatShutdown" set to "1" in the Registry and have now changed that to "0" . Shutdown now takes about 12 secs.

I would like to thank all who have replied so promptly to my OP.
 

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Home Premium x64
CPU
AMD 3000+ 2.00gHZ
Motherboard
ASUSTeK k8vsedx
Memory
2048 Mbs
Graphics Card(s)
RAEDON 9800 PRO
Monitor(s) Displays
Sony SDM-HS95P 19.1"vis
Hard Drives
2x500 Gbts

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Home Premium x64
CPU
AMD 3000+ 2.00gHZ
Motherboard
ASUSTeK k8vsedx
Memory
2048 Mbs
Graphics Card(s)
RAEDON 9800 PRO
Monitor(s) Displays
Sony SDM-HS95P 19.1"vis
Hard Drives
2x500 Gbts
You're welcome, thenoo.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Setting Page File Clear to Disable Fixed It

I had the same issue on slow shutdowns - 3 minutes on average. Went through every forum suggestion re msconfig etc. Nothing worked, and with a 3 minutes cycle for every fix attempt was beginning to look for a hammer.

Read Dwarf's advice re Page File

Shutdown time went to a few seconds immediately.

I am guessing that the delay is a function of RAM size, I have 8Gb.

Not sure if this is universal fix but worked for me - hammer back in toolbox.

Thanks Dwarf
 

My Computer

Computer Manufacturer/Model Number
N/A
OS
WIndows 7 Professional x64
CPU
Intel Core I7 3.4Ghz 2600K Unlocked8MB Cache
Motherboard
Gigabyte GA-Z68XP-UD3-iSSD
Memory
2x4Gb Corsair Vengeance DDR3
Graphics Card(s)
Nvidia 8800 512mb
Sound Card
MB integrated
Monitor(s) Displays
Phillips
Hard Drives
Samsung X3
PSU
OCZ 700w
Case
Armor
Cooling
Zalman CNPS11X
very related question

This is for cluberti

I have the etl file generated by sdk and would very much appreciate you looking at it and enlightening me as to what is slowing the shutdown process.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Asus
OS
Win 7 64 bit
CPU
Intel i7
Motherboard
Asus P8Z77-V
Memory
32GB
Graphics Card(s)
none
Hard Drives
1 sdd, 2, 7200 rpm sata 6 drives
Antivirus
Bitdefender and MalwareBytes
Browser
Chrome
Post it somewhere I can download it (zip the .etl first) and I'll take a look at my next opportunity.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Back
Top