Video: Using XPERF to root cause CPU consumption

Video: Using XPERF to root cause CPU consumption

  • Comments 4

Hi Debuggers,

 

Here is a short video showing how to root cause CPU consumption issues on Vista/Server 2008 and higher operating systems with Xperf.

 

For this scenario, Xperf is an easy to implement and powerful replacement for previous actions like gathering a series of dumps during the CPU, kernrate data, perfmon, other profilers, etc.

 

Xperf allows one to quickly turn on profiling and see where the CPU time is being spent by using tracing already in the box!

 

 

-Tate

 

 

Note - Feel free to post questions here, or jump into a discussion about the video on our Twitter page ( @ntdebugging ).

 

 

Share this post :
Leave a Comment
  • Please add 2 and 1 and type the answer here:
  • Post
  • the article is good but you made it quit tough to understand

    [We always welcome the feedback. Can you give me specifics? Thanks!!! Ronsto]
  • Thanks for the video. You made it easy to understand creating and analyzing an xperf trace.  I was able to find the High CPU causing process following your steps.

  • C:\Program Files\Microsoft Windows Performance Toolkit>xperf.exe -on DiagEasy

    xperf: error: NT Kernel Logger: Cannot create a file when that file already exis

    ts. (0xb7).

    The problem is you cannot stop the NT Kernel Logger trace when the Trace Session->Stream mode is set to Real Time in the NT Kernel Logger Event Trace Sessions’ properties. Switch it to File and then you will be able to stop it. You can then utilize xperf to run kernel traces. Be sure to switch it back to the way it was when you are done!

  • @aasd

    stop other Tools like ProcExplorer, ResMon, LatencyMon before running xperf

Page 1 of 1 (4 items)