Advertisement
MagicAndre1981

trace Slow WindowsUpdate with xperf

Jul 19th, 2015
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Install the Windows Performance Toolkit (http://social.technet.microsoft.com/wiki/contents/articles/4847.install-the-windows-performance-toolkit-wpt.aspx) (the Windows 8.1 version also works for Windows 7).
  2.  
  3. Now copy those commands in an empty .CMD file and run the CMD (as admin):
  4.  
  5. //////////
  6. xperf -on BASE+LATENCY+DISPATCHER+FILE_IO+FILENAME+FOOTPRINT+VIRT_ALLOC+MEMINFO+VAMAP+REFSET+MEMINFO_WS -stackwalk profile+CSwitch+ReadyThread+ProcessCreate+FileCreate+FileCleanup+FileClose+FileRead+FileWrite+VirtualAlloc+VirtualFree -buffersize 2048 -MaxFile 2048 -FileMode Circular -f C:\Kernel.etl
  7. xperf -start UserLogger -on Microsoft-Windows-WindowsUpdateClient:::'stack'+Microsoft-Windows-Shell-Shwebsvc:::'stack' -BufferSize 2048 -f C:\User.etl
  8.  
  9. timeout -1
  10.  
  11. xperf -stop
  12. xperf -stop UserLogger
  13.  
  14. xperf -merge C:\User.etl C:\kernel.etl C:\SlowWU.etl -compress
  15.  
  16. del C:\user.etl
  17. del C:\kernel.etl
  18. /////////////////
  19.  
  20.  
  21. If you have captured 5 minutes of the Windows Update slowness, press a key to stop tracing.
  22.  
  23. Compress the SlowWU.etl as 7z/RAR (to reduce the size), upload it (Onedrive, Dropbox) and paste a link here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement