Video: Using XPERF to root cause CPU consumption

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!






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



Share this post :

Comments (4)
  1. suchismita says:

    the article is good but you made it quit tough to understand

    [We always welcome the feedback. Can you give me specifics? Thanks!!! Ronsto]
  2. Emma says:

    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.

  3. aasd says:

    C:Program FilesMicrosoft 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!

  4. @aasd

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

Comments are closed.

Skip to main content