Sysinternals Homepage
Forum Home Forum Home > Windows Discussions > Troubleshooting
  New Posts New Posts RSS Feed: New tool to investigate deferred procdure calls
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

New tool to investigate deferred procdure calls

 Post Reply Post Reply
Author
Message Reverse Sort Order
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17492
Post Options Post Options   Quote molotov Quote  Post ReplyReply Direct Link To This Post Topic: New tool to investigate deferred procdure calls
    Posted: 06 April 2008 at 1:53pm
Interesting that the tool reports results in ms (milliseconds).  "How much time is your driver spending in its DPCs and ISRs?" states the following:
A driver should spend no more than 25 microseconds in an ISR and no more than 100 microseconds in a DPC.
 
RATTV3 reports results in microseconds.  Something to be cognizant of, I suppose; microseconds may be too precise for other profiling / performance activities supported by the tool.
 
 


Edited by molotov - 06 April 2008 at 1:57pm
Daily affirmation:
net helpmsg 4006
Back to Top
marstein View Drop Down
Newbie
Newbie


Joined: 23 February 2008
Location: United States
Online Status: Offline
Posts: 7
Post Options Post Options   Quote marstein Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2008 at 1:34pm
cmudaxp is the device driver for my sound card :-( the Razer Barracuda. Looks as if this takes a lot time. Removing the sound card is not really an option for me.

The articles on that page are great, but too generic. I know how to use a profiler. How do you pinpoint the driver responsible for your DPCs?

One thing I found out is that the symbols have to be set up via an environment variable. Go to advanced computer settings and add
_NT_SYMBOL_PATH
SRV*C:\ProgramData\symbols*http://msdl.microsoft.com/download/symbols

before starting the administrator command shell.


to get the symbols for the functions displayed in clear text.  I am downloading the symbols to C:\ProgramData\symbols - you can pick another directory.

Edited by marstein - 06 April 2008 at 1:34pm
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17492
Post Options Post Options   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2008 at 1:06pm
What's cmudaxp.sys?  
 
Did you go though some of the "Pigs Can Fly" articles on XPerf?
Daily affirmation:
net helpmsg 4006
Back to Top
marstein View Drop Down
Newbie
Newbie


Joined: 23 February 2008
Location: United States
Online Status: Offline
Posts: 7
Post Options Post Options   Quote marstein Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2008 at 12:50pm
I hope someone comes up with a howto on finding the DPC offenders.

Here output from my system  taken from the  DPC summary table - does anything look suspicious?

ModuleFunctionCountMax Actual Duration [ms]Avg Actual Duration [ms]Actual Duration [ms]% Actual DurationEnter Time [ms]Exit Time [ms]
cmudaxp.sys0x9142776426741.4289530.149021398.4835153.718734.12654414095.438107
USBPORT.SYS
166610.1385650.009748162.4148511.518742.36732614096.813980

USBPORT_Xdpc_Worker133450.1385650.011046147.4112301.378742.37382114096.813980

USBPORT_IsrDpc32280.0745200.00435714.0660670.138742.36732614096.745326

USBPORT_DM_TimerDpc880.0278660.0106540.9375540.018761.12718213924.506326
portcls.sysCServiceGroup::ServiceDpc26740.2557590.00637917.0577950.168734.33648614095.443415
iaStor.sys
6190.0828320.01931111.9535460.118736.32437914087.798100

0x82a46e2c6140.0828320.01944611.9399260.118736.32437914087.798100

0x82a2bf0450.0029340.0027240.0136200.009374.16703713374.394441

Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17492
Post Options Post Options   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2008 at 9:58am
Thanks for posting this, Martin.
 
It can, of course, be used for more than just investigating DPC issues... Wink
 
Here's more info:
 


Edited by molotov - 06 April 2008 at 9:59am
Daily affirmation:
net helpmsg 4006
Back to Top
marstein View Drop Down
Newbie
Newbie


Joined: 23 February 2008
Location: United States
Online Status: Offline
Posts: 7
Post Options Post Options   Quote marstein Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2008 at 9:51am

Check out the Windows Performance Tools Kit

It looks like it could help with DPC issues. It works on Vista, which is great because of all the new drivers.

From the description:

The tools currently include an xperf trace capture tool, an xperfview visualization tool (also known as Performance Analyzer), and an xbootmgr boot trace capture tool. The tools are designed for the analysis of a wide range of performance problems including application start times, boot issues, deferred procedure calls and interrupt activity (DPCs and ISRs), system responsiveness issues, application resource usage, and interrupt storms.


Edited by marstein - 06 April 2008 at 9:53am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down