Jump to content

How to get the cause of high CPU usage by DPC / Interrupt


Recommended Posts

I just tried running Mediaportal in a window with LatencyMon running and experienced one audio glitch but LatencyMon didn't show any problems at that time. Later I did see an issue in LatencyMon but there wasn't any audio/video glitches that I noticed. This makes it rather hard for me to create the .etl log file at the appropriate time as I won't necessarily have any indication that there has been a latency problem.

run this command and do you normal work:


xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl

after you got an glitch, go back to the command prompt and stop it. The -MaxFile 256 -FileMode Circular options limit the size to 256MB. So you can run it longer without generating a large file.

Link to comment
Share on other sites


now i think my fan is broke it just intermitly runs its like its runing but not really not sure if its related do u think it the acpi could be the fan being broke or is it just the windows ?

The powerplan settings allow you to set a cpu cooler policy. Make sure it is set to "active" and NOT "passive".

Link to comment
Share on other sites

I just tried running Mediaportal in a window with LatencyMon running and experienced one audio glitch but LatencyMon didn't show any problems at that time. Later I did see an issue in LatencyMon but there wasn't any audio/video glitches that I noticed. This makes it rather hard for me to create the .etl log file at the appropriate time as I won't necessarily have any indication that there has been a latency problem.

run this command and do you normal work:


xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl

after you got an glitch, go back to the command prompt and stop it. The -MaxFile 256 -FileMode Circular options limit the size to 256MB. So you can run it longer without generating a large file.

OK thanks, I'll try that but as I say it's tricky because I saw problems in LatencyMon when there were no audio/video glitches and then audio/video glitches when there was no problem shown in LatencyMon, so I can only hope that the glitches coincide with a latency problem (I'll have no way to see as I can't run LatencyMon whilst runnign xperf, as you taught me before) and that there's something useful in the .etl for you to see.

Link to comment
Share on other sites

Hi Andre. In reviewing this thread I see this problem has been going on for a long time. You would think there would be a permanent fix by now. I have been dealing with this issue on and off for almost 2 years. Lately, it is an everyday occurrence. The longer I run the computer the worse it gets. If I let it go on too long I get the BSOD. I have a Gateway SX2800-07 with a core2quad 8300 Intel processor. I have the latest drivers from Gateway, Intel, Realtek, etc... You can download the report.etl from here http://www.willowproperties.net/temp.html. I appreciate all the help you have provided to so many. Any insight you can give me would be great. Thanks, Ron

Link to comment
Share on other sites

now i think my fan is broke it just intermitly runs its like its runing but not really not sure if its related do u think it the acpi could be the fan being broke or is it just the windows ?

The powerplan settings allow you to set a cpu cooler policy. Make sure it is set to "active" and NOT "passive".

ahhh ok i have set it to active and still no change

Link to comment
Share on other sites

Lately, it is an everyday occurrence. The longer I run the computer the worse it gets. If I let it go on too long I get the BSOD. I have a Gateway SX2800-07 with a core2quad 8300 Intel processor. I have the latest drivers from Gateway, Intel, Realtek, etc... You can download the report.etl from here http://www.willowproperties.net/temp.html. I appreciate all the help you have provided to so many. Any insight you can give me would be great.

DPC Info

--------------------------

Total = 40 for module HDAudBus.sys

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 1, or 2.50%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 5, or 12.50%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 2, or 5.00%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 2, or 5.00%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 1, or 2.50%

Elapsed Time, > 32768 usecs AND <= 65536 usecs, 1, or 2.50%

Total, 40

Total = 2180 for module USBPORT.SYS

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 23, or 1.06%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 29, or 1.33%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 38, or 1.74%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 30, or 1.38%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 8, or 0.37%

Elapsed Time, > 32768 usecs AND <= 65536 usecs, 3, or 0.14%

Total, 2180

So you have Audio and uSB issues. Which USB devices do you use? Does the USB controller share the IRQ with the soundchip?

Link to comment
Share on other sites

Lately, it is an everyday occurrence. The longer I run the computer the worse it gets. If I let it go on too long I get the BSOD. I have a Gateway SX2800-07 with a core2quad 8300 Intel processor. I have the latest drivers from Gateway, Intel, Realtek, etc... You can download the report.etl from here http://www.willowproperties.net/temp.html. I appreciate all the help you have provided to so many. Any insight you can give me would be great.

DPC Info

--------------------------

Total = 40 for module HDAudBus.sys

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 1, or 2.50%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 5, or 12.50%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 2, or 5.00%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 2, or 5.00%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 1, or 2.50%

Elapsed Time, > 32768 usecs AND <= 65536 usecs, 1, or 2.50%

Total, 40

Total = 2180 for module USBPORT.SYS

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 23, or 1.06%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 29, or 1.33%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 38, or 1.74%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 30, or 1.38%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 8, or 0.37%

Elapsed Time, > 32768 usecs AND <= 65536 usecs, 3, or 0.14%

Total, 2180

So you have Audio and uSB issues. Which USB devices do you use? Does the USB controller share the IRQ with the soundchip?

I have a mouse, keyboard, and a printer connected via USB.

I have attached the IRQ list. It doesn't appear there are any commonalities between the two.

Thanks.

1temp.txt

Link to comment
Share on other sites

try to connect the mouse and keyboard to a different USB port. Does this make a difference?

In my previous post, I said I had a USB printer. I forgot that I replaced that with a WiFi printer. So the only two USB devices are the mouse and keyboard. I moved both of them to different USB ports and rebooted the computer. After running all day today the DPC latency is perfect. So far so good. Not sure why moving them to a different port helps but it has so far. I will let you know if it stays that way. Thanks for your help.

Link to comment
Share on other sites

the new trace is more worse:

Total = 48 for module HDAudBus.sys

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 1, or 2.08%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 3, or 6.25%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 4, or 8.33%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 6, or 12.50%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 5, or 10.42%

Total, 48

Total = 2621 for module USBPORT.SYS

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 29, or 1.11%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 41, or 1.56%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 52, or 1.98%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 26, or 0.99%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 20, or 0.76%

Elapsed Time, > 32768 usecs AND <= 65536 usecs, 3, or 0.11%

Elapsed Time, > 65536 usecs AND <= 131072 usecs, 3, or 0.11%

Total, 2621

Total = 186 for module iaStor.sys

Elapsed Time, > 512 usecs AND <= 1024 usecs, 3, or 1.61%

Elapsed Time, > 1024 usecs AND <= 2048 usecs, 7, or 3.76%

Elapsed Time, > 2048 usecs AND <= 4096 usecs, 11, or 5.91%

Elapsed Time, > 4096 usecs AND <= 8192 usecs, 23, or 12.37%

Elapsed Time, > 8192 usecs AND <= 16384 usecs, 11, or 5.91%

Elapsed Time, > 16384 usecs AND <= 32768 usecs, 9, or 4.84%

Elapsed Time, > 32768 usecs AND <= 65536 usecs, 4, or 2.15%

Total,

And I can see HAL issues caused by HalpHpetClockInterrupt Hpet = High Precision Event Timer (http://en.wikipedia.org/wiki/High_Precision_Event_Timer). Try to disable this in the BIOS.

Link to comment
Share on other sites

Hi MagicAndre

I caught a glitch tonight with xperf running and have uploaded the zipped .etl to http://www.mediafire.com/?i0joanlus1y4z2i if you'd be good enough to take a look for me.

The Mediaportal logs show continuity errors at 21:03:50, so if the .etl contains timestamps hopefully that will help you locate the problem.

the etl only contains relative time information not absolute.

I can see the high CPU usage spikes by mediaPortal and the ISR/DPC.

I can see that the amdppm.sys driver with the function C1Halt causes it. This is the power management driver for your AMD Athlon II X4 630 Processor. This call causes halmacpi.dll!HalpClockInterruptPn CPU usage. This repeats very 100s. The MediaPortal changes the CPU affinity (kernel32.dll!SetThreadAffinityMask) and this seems to cause the spikes. Which powerplan do you use? Do you use the latets BIOS?

I've not told you to capture the CPU frequency data :(


xperf -on latency+POWER -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d DPC_Interrupt.etl

this (POWER) captures CPU power stats data.

Link to comment
Share on other sites

Thanks for that. I'll try and note what time I start xperf in future then, although perhaps that won't help if it resets the timer when looping the buffer.

I use the Balanced profile, normally set to standby after 30 minutes, with the additional "Allow Sleep with Remote Opens" tweak (I'm sure I've probably adjusted some of the other options from default as well though). I'm pretty sure I'm on the latest BIOS but I'll double-check that.

I'll do another capture with the latency+POWER command you've posted, thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...