How to get the cause of high CPU usage by DPC / Interrupt
#661
Posted 20 January 2012 - 11:22 AM
#662
Posted 20 January 2012 - 11:25 AM
xperf -on latency -stackwalk profile
and after seeing problems in LatencyMon
xperf -d DPC_Interrupt.etl
how can I know when "the high DPC and Interrupt usage occurs" if I don't run LatencyMon?
#663
Posted 20 January 2012 - 11:27 AM
#664
Posted 20 January 2012 - 02:19 PM
MagicAndre1981, on 20 January 2012 - 11:27 AM, said:
OK, but how do I identify high ISR or DPC execution time or high kernel latency with ProcExpl? This is what I'm seeing:

And what commands do you want me to run to make the trace if the ones I posted from your original post are no good?
#665
Posted 20 January 2012 - 04:25 PM
#666
Posted 20 January 2012 - 05:42 PM
MagicAndre1981, on 20 January 2012 - 04:25 PM, said:
OK, thanks.
EDIT: Actually that doesn't seem practical, as firstly ProcExp doesn't report high usage, so I'd have to sit staring at it for ages trying to catch a spike and also even if the CPU usage doesn't go high, I'm still seeing excessively high kernel latency and/or DPC and latency execution times in LatencyMon.
This post has been edited by doveman: 21 January 2012 - 06:16 AM
#667
Posted 21 January 2012 - 09:09 AM
#668
Posted 21 January 2012 - 09:55 AM
MagicAndre1981, on 21 January 2012 - 09:09 AM, said:
Oh well, looks like I'll have to try and work this out on my own. The ataport.sys does seem much better now, but I uninstalled some software as well so I'm not sure what fixed that. Really only ndis.sys and netbt.sys are too high (0.43ms) for my liking now. The next highest are USBPORT.sys 0.25ms, CLASSPNP.SYS 0.22ms, ntoskrnl.exe 0.18ms with everything else under 0.09ms
This post has been edited by doveman: 21 January 2012 - 10:38 AM
#669
Posted 21 January 2012 - 12:11 PM
#670
Posted 23 January 2012 - 06:18 AM
MagicAndre1981, on 21 January 2012 - 12:11 PM, said:
I think things are OK at the moment. I get brief breaks in sound with TV (which aren't replicated if I rewind and play that section again) but I don't think it's a latency issue as it doesn't happen when watching movie files. Cutscenes in games are OK now, but I still get quite a bit of brief freezing / stuttering when actually playing the game, but I guess it could just be the game loading data and something I have to put up with.
I was just a bit bothered by ndis.sys and netbt.sys as they used to be much lower, and I'd like to use VMware workstation but last time I tried it, these two (and tcpip.sys) went much higher and I had bad video / audio problems again.
#671
Posted 23 January 2012 - 09:54 AM
#672
Posted 23 January 2012 - 08:47 PM
#673
Posted 24 January 2012 - 04:57 AM
#674
Posted 24 January 2012 - 05:25 AM
#675
Posted 24 January 2012 - 05:51 AM
MagicAndre1981, on 24 January 2012 - 05:25 AM, said:
No, there's no way for me to tell when the latency or ISR or DPC execution time goes too high without running LatencyMon, so it's impossible for me to know when to make a trace.
The ataport.sys spike seems to have been linked to Truecrypt and hasn't reoccured since I closed that. ndis.sys is higher than ever though now at 0.69ms (netbt.sys is at 0.1ms and tcpip.sys is at 0.26ms) and the highest kernel latency is on the edge at 906us.
#676
Posted 24 January 2012 - 07:11 AM
xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl
and do your normal work (DON'T RUN LATENCYMON!!!!!!!!!!!) If you have issues (drops), go to the CMD prompt and press a key to dump the data into the file. The file is limited to 256MB, so it should capture the last few minutes so that it includes the required data.
#677
Posted 24 January 2012 - 01:07 PM
MagicAndre1981, on 24 January 2012 - 07:11 AM, said:
xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl
and do your normal work (DON'T RUN LATENCYMON!!!!!!!!!!!) If you have issues (drops), go to the CMD prompt and press a key to dump the data into the file. The file is limited to 256MB, so it should capture the last few minutes so that it includes the required data.
Thanks, but I get the following error trying to run that command, even though DPC_Interrupt.etl doesn't already exist!
"xperf: error: NT Kernel Logger: Cannot create a file when that file already exists. (0xb7)."
#678
Posted 25 January 2012 - 12:26 PM
#679
Posted 25 January 2012 - 02:37 PM
MagicAndre1981, on 25 January 2012 - 12:26 PM, said:
No you're wrong. I'm wasn't running any of those tools.
#680
Posted 25 January 2012 - 02:41 PM



Help


Back to top









