MSFN Forum: How to get the cause of high CPU usage by DPC / Interrupt - MSFN Forum

Jump to content


  • 62 Pages +
  • « First
  • 41
  • 42
  • 43
  • 44
  • 45
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

How to get the cause of high CPU usage by DPC / Interrupt Rate Topic: -----

#841 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 21 June 2012 - 12:28 PM

View Postdoveman, on 19 June 2012 - 11:50 AM, said:

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.


#842 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 21 June 2012 - 12:31 PM

View PostAnonymous101, on 18 June 2012 - 06:56 PM, said:

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".

#843 User is offline   doveman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 22-August 05

Posted 21 June 2012 - 02:34 PM

View PostMagicAndre1981, on 21 June 2012 - 12:28 PM, said:

View Postdoveman, on 19 June 2012 - 11:50 AM, said:

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.

#844 User is offline   ChristSavesU2 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 17-August 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 June 2012 - 06:35 PM

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.willowpro...s.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

#845 User is offline   Anonymous101 

  • Group: Members
  • Posts: 8
  • Joined: 08-June 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 June 2012 - 10:03 PM

View PostMagicAndre1981, on 21 June 2012 - 12:31 PM, said:

View PostAnonymous101, on 18 June 2012 - 06:56 PM, said:

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

#846 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 24 June 2012 - 01:42 AM

View PostChristSavesU2, on 21 June 2012 - 06:35 PM, said:

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.willowpro...s.net/temp.html. I appreciate all the help you have provided to so many. Any insight you can give me would be great.


Quote

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?

#847 User is offline   ChristSavesU2 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 17-August 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 June 2012 - 10:11 AM

View PostMagicAndre1981, on 24 June 2012 - 01:42 AM, said:

View PostChristSavesU2, on 21 June 2012 - 06:35 PM, said:

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.willowpro...s.net/temp.html. I appreciate all the help you have provided to so many. Any insight you can give me would be great.


Quote

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.

Attached File(s)

  • Attached File  1temp.txt (12.17K)
    Number of downloads: 2


#848 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 25 June 2012 - 11:45 AM

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

#849 User is offline   ChristSavesU2 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 17-August 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 June 2012 - 09:09 PM

View PostMagicAndre1981, on 25 June 2012 - 11:45 AM, said:

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.

#850 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 26 June 2012 - 11:48 AM

I think this has something to to how the USB ports are handled by the board. But nice to hear you fixed it :) :thumbup

#851 User is offline   ChristSavesU2 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 17-August 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 June 2012 - 05:09 PM

Unfortunately, the fix didn't last too long. Yesterday it ran all day no problems. Today within 2 hours the DPC latency starting climbing and got to high to use the computer after about 5 hours. I have attached the latest file here http://www.willowpro...s.net/temp.html Thanks.

#852 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 27 June 2012 - 07:46 AM

the new trace is more worse:

Quote

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....ion_Event_Timer). Try to disable this in the BIOS.

#853 User is offline   doveman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 22-August 05

Posted 28 June 2012 - 02:30 PM

Hi MagicAndre

I caught a glitch tonight with xperf running and have uploaded the zipped .etl to http://www.mediafire...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.

#854 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 29 June 2012 - 06:03 AM

View Postdoveman, on 28 June 2012 - 02:30 PM, said:

Hi MagicAndre

I caught a glitch tonight with xperf running and have uploaded the zipped .etl to http://www.mediafire...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.

#855 User is offline   doveman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 22-August 05

Posted 29 June 2012 - 06:20 AM

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.

#856 User is offline   ChristSavesU2 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 17-August 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 June 2012 - 02:01 PM

View PostMagicAndre1981, on 27 June 2012 - 07:46 AM, said:

the new trace is more worse:

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


Hi Andre,

I could not find a setting in the BIOS for Hpet. I did find that there is a windows command to turn it on or off though here I used the command bcdedit /set useplatformclock true and verifiied it was on with WinTimerTester.exe, rebooted and it worked fine the rest of the day. The next day it had the same problem so I used the command bcdedit /set useplatformclock false, rebooted and it ran fine the rest of the day. The third day it had the same problem so I reset the command to true, rebooted and it ran fine the rest of the day. Today it had the same problem and I ran a new report which is here. I also included a Latency report because even though the issue appears to be the same the report was dramatically different than before.

Thanks, Ron

#857 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 01 July 2012 - 12:02 PM

the trace shows USBport issues, the hal is gone (maybe because of the BCD entry).

so again, play with the USb devices and connect them to different ports. Test every combination and hopefully this fixes it.

#858 User is offline   ChristSavesU2 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 17-August 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 July 2012 - 04:04 PM

View PostMagicAndre1981, on 01 July 2012 - 12:02 PM, said:

the trace shows USBport issues, the hal is gone (maybe because of the BCD entry).

so again, play with the USb devices and connect them to different ports. Test every combination and hopefully this fixes it.


I have found an interesting thing. The issue happens from a cold boot only and it doesn't matter what programs I run or don't run. It seems to be related to how long the computer is running. If instead I reboot the machine, even right after I first started it, it runs fine all day long. So there is something different between a cold boot and a restart that fixes things. Not sure what though. I will try the different USB configurations and see if that helps at all.

#859 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 5,017
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 02 July 2012 - 02:49 PM

this is really strange. Can you add a dummy boot entry (clone current one) and add a timeout (1min) to warm up the hardware. Does this also fixes it?

#860 User is offline   doveman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 22-August 05

Posted 02 July 2012 - 02:50 PM

View PostMagicAndre1981, on 29 June 2012 - 06:03 AM, said:


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.


Hi

I made a capture just after seeing a major glitch in Mediaportal earlier, which I've uploaded to http://www.mediafire...cxaguv6ggvcm9du

Considering what you said about the power management driver, I then switched the Power profile to High Performance and made another capture with Mediaportal running. I didn't notice any glitches during this time but they tend to occur randomly anyway. You can download this capture from http://www.mediafire...a28ys3o2rol9m88

Both captures were made whilst I was watching Ch4 News. Strangely, only with this programme and no others on Ch4 or any other channel, I get constant audio popping and crackling throughout (every night. When I first noticed it I thought they must be having some trouble with their equipment but it's clear now that the problem must be at my end). No one on the Mediaportal forum has suggested an explanation for this, but I doubt it's related to DPC latency, as that wouldn't affect only one programme.

Oh, I checked the BIOS and it is the latest. The board is a Biostar TA790GXBE with BIOS 78DGA705 http://www.biostar.c...on.php?S_ID=419

Share this topic:


  • 62 Pages +
  • « First
  • 41
  • 42
  • 43
  • 44
  • 45
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

14 User(s) are reading this topic
0 members, 14 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy