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

Jump to content



  • 39 Pages +
  • « First
  • 37
  • 38
  • 39
  • 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: -----

#761 User is offline   MagicAndre1981 

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

Posted 08 May 2012 - 11:29 AM

you have USB issues:

Quote

--------------------------
DPC Info

--------------------------
CPU Usage Summing By Module For the Whole Trace

CPU Usage from 0 us to 151962691 us:

CPU 0 Usage, CPU 1 Usage, CPU 2 Usage, CPU 3 Usage,
usec %, usec %, usec %, usec %, Module
5728799 3.77, 5425104 3.57, 5791293 3.81, 5521188 3.63, USBPORT.SYS
9046 0.01, 0 0.00, 0 0.00, 0 0.00, Wdf01000.sys
1070 0.00, 0 0.00, 0 0.00, 0 0.00, afd.sys


your iTunes and HPTouchSmartMusic software causes a high CPu usage.

Please also install the latest iTunes version and install the Win7 Sp1 + all missing updates.


#762 User is offline   HSCIII 

  • Group: Members
  • Posts: 4
  • Joined: 02-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 May 2012 - 01:36 PM

Fuirst thank you so much for helping me.

I made all the update as you suggested. I haven't had a chance to push the compute using Sonar Xl1, however, I have yet to expereiance any drops when just playing audio,wheter its itunes of a different file format in a different player.
Prior to the updates the drop outs where coming fairly often as of the last 2 weeks.

However after running for 4-5 minutes the Latency monitor applciation states i have issues will likely cause drop outs,clicks etc. ( see below)

I have stopped using my powered USB port excpr when its explcitily needed but it looks like USB is still a source of issues. In device manager there looked to be way too many instances of generic USB Root Hub, but I'm not sure what action to take

I'll run the test to create another trace file so should you request it,I'll it hready to send


thanks again




CONCLUSION
_________________________________________________________________________________________________________
Your system appears to be having trouble handling real-time audio and other tasks. You are likely to experience buffer underruns appearing as drop outs, clicks or pops. One or more DPC routines belonging to a driver running in your system appear to be executing for too long.
LatencyMon has been analyzing your system for 0:04:37 (h:mm:ss)


_________________________________________________________________________________________________________
System Information
_________________________________________________________________________________________________________
Computer name: HSC-PC
OS version: Windows 7 , 6.1, build: 7600
CPU: GenuineIntel Intel® Core™2 Quad CPU Q8300 @ 2.50GHz
Logical processors: 4
RAM: 8553422848 total
VM: 2147352576, free: 1960853504


_________________________________________________________________________________________________________
CPU SPEED
_________________________________________________________________________________________________________
Reported CPU speed: 2493 MHz
Measured CPU speed: 1619 MHz

Note: reported execution times may be calculated based on a fixed reported CPU speed. Disable variable speed settings like Intel Speed Step and AMD Cool N Quiet in the BIOS setup for more accurate results.


_________________________________________________________________________________________________________
MEASURED KERNEL TIMER LATENCIES
_________________________________________________________________________________________________________
Highest measured kernel timer latency (µs): 2365.1805


_________________________________________________________________________________________________________
MEASURED SMIs AND CPU STALLS
_________________________________________________________________________________________________________
Highest measured SMI routine or CPU stall (µs) 16.4248


_________________________________________________________________________________________________________
REPORTED DPCs
_________________________________________________________________________________________________________
Highest DPC routine execution time (µs): 2567.3734
Driver with highest DPC routine execution time: ataport.SYS - ATAPI Driver Extension, Microsoft Corporation

Highest reported total DPC routine time (%): 3.7579
Driver with highest DPC total execution time: USBPORT.SYS - USB 1.1 & 2.0 Port Driver, Microsoft Corporation

Total time spent in DPCs (%) 4.7465

DPC count (execution time <250 µs): 1955890
DPC count (execution time 250-500 µs): 0
DPC count (execution time 500-999 µs): 604
DPC count (execution time 1000-1999 µs): 3
DPC count (execution time 2000-3999 µs): 1
DPC count (execution time >=4000 µs): 0


_________________________________________________________________________________________________________
REPORTED ISRs
_________________________________________________________________________________________________________
Highest ISR routine execution time (µs): 26.7990
Driver with highest ISR routine execution time: ataport.SYS - ATAPI Driver Extension, Microsoft Corporation

Highest reported total ISR routine time (%): 0.8630
Driver with highest ISR total time: USBPORT.SYS - USB 1.1 & 2.0 Port Driver, Microsoft Corporation

Total time spent in ISRs (%) 0.1416

ISR count (execution time <250 µs): 528311
ISR count (execution time 250-500 µs): 0
ISR count (execution time 500-999 µs): 0
ISR count (execution time 1000-1999 µs): 0
ISR count (execution time 2000-3999 µs): 0
ISR count (execution time >=4000 µs): 0


_________________________________________________________________________________________________________
REPORTED HARD PAGEFAULTS
_________________________________________________________________________________________________________
Process with highest pagefault count: none

Total number of hard pagefaults 1184
Hard pagefault count of hardest hit process: 355
Highest hard pagefault resolution time (µs): 232783.1768
Total time spent in hard pagefaults (%): 1.1357
TODO: Number of processes hit: 0


_________________________________________________________________________________________________________
PER CPU DATA
_________________________________________________________________________________________________________
CPU 0 ISR count: 339904
CPU 0 ISR highest execution time: 26.8580
CPU 0 ISR total execution time: 609777.5146
CPU 0 DPC count: 1142361
CPU 0 DPC highest execution time: 2567.3734
CPU 0 DPC total execution time: 18274091.1696
_________________________________________________________________________________________________________
CPU 1 ISR count: 62810
CPU 1 ISR highest execution time: 24.4610
CPU 1 ISR total execution time: 309104.7380
CPU 1 DPC count: 273525
CPU 1 DPC highest execution time: 420.9085
CPU 1 DPC total execution time: 11420937.2394
_________________________________________________________________________________________________________
CPU 2 ISR count: 62572
CPU 2 ISR highest execution time: 26.7990
CPU 2 ISR total execution time: 335129.3072
CPU 2 DPC count: 268384
CPU 2 DPC highest execution time: 1321.9073
CPU 2 DPC total execution time: 11702237.5600
_________________________________________________________________________________________________________
CPU 3 ISR count: 63025
CPU 3 ISR highest execution time: 22.9089
CPU 3 ISR total execution time: 318912.4973
CPU 3 DPC count: 272228
CPU 3 DPC highest execution time: 1227.1873
CPU 3 DPC total execution time: 11299994.1945
_________________________________________________________________________________________________________

#763 User is offline   MagicAndre1981 

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

Posted 11 May 2012 - 08:54 AM

give me the new xperf trace file.

#764 User is offline   kenth 

  • Group: Members
  • Posts: 1
  • Joined: 11-May 12
  • OS:XP Pro x64
  • Country: Country Flag

Posted 11 May 2012 - 10:42 PM

Hello,

I have an 2 units of Acer Veriton S670.

They both have this problem of high CPU usage (60 to 80 percent) while idle.
It is due to hardware interrupts, but the DPC Latency tool doesn't show any spike (high red bars). It just remains in the low green area. (Hope I'm making sense).
How should I proceed from here?

More info:
unit 1 is running on WinXP SP3, I have run windows update and selected all the critical updates. I also have installed all the latest drivers.

unit 2 is running on Win 7. At first this had the same problem, but it went away after I installed all the recent drivers.

Both units have ATI Radeon 4350.

#765 User is offline   MagicAndre1981 

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

Posted 13 May 2012 - 02:28 PM

run xperf traces for both machines and give the 2 traces.

#766 User is offline   HSCIII 

  • Group: Members
  • Posts: 4
  • Joined: 02-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 May 2012 - 10:32 PM

Hi Andre,

I haven't posted a trace yet becuase the original instructions told us to run the trace until we expereianced a problem and I have yet to expereiance one while running the trace.
But not being sure if that was still a condition I realized i should let you know whats going on and see if that changed the strategy at this point.

I did run one trace where I had sonar working plus allot of other activity and the sumary information then listed many processes, with USB at the top, but again, not sure if these are right conditions under which i should generate the trace file.

The Latency monitor app still reports I have issues that could cause audio drop outs,its just I have yet to expereiance them//Also FYI, I will be traveling later this week away from my home studio compouter so should I delay to respond, you know why.

Again, thans for your time and help. I sincerely appreciate it

HSC III

#767 User is offline   TNeumann 

  • Group: Members
  • Posts: 3
  • Joined: 20-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 May 2012 - 11:56 AM

Sorry, I'm totally lost from the beginning. Could someone please explain or show what I'm supposed to type next?

At the moment I see C:\Users\Theo>

#768 User is offline   TNeumann 

  • Group: Members
  • Posts: 3
  • Joined: 20-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 May 2012 - 08:29 AM

Thanks for not helping so far - anyway, I have isolated the problem to Hal.dll and iaStor.sys. Any advice, or more ignoring?

#769 User is offline   bphlpt 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 12-May 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 May 2012 - 10:39 AM

It's hard to help when you have provided so little information. Since this was your first post we have no idea what your experience is or what you know how to do. What is your reason you felt you needed to come to this thread, ie what exactly is your problem?

What have you done? Did you install the Windows Performance Tools Kit.? What did you do to get the prompt "C:\Users\Theo>" Do you know what that is/means? Do you know how to find your Temp directory and open a cmd prompt window there? The first post in this thread is the tutorial. What part of it do you not understand? How did you "isolate the problem to Hal.dll and iaStor.sys"? Is there anything you think might be helpful for us to know about your system, either hardware or software?

If you expect help, you have to do your part. We will HELP you, NOT do it for you.

Cheers and Regards

This post has been edited by bphlpt: 21 May 2012 - 10:41 AM


#770 User is offline   MagicAndre1981 

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

Posted 21 May 2012 - 10:43 AM

iaStor.sys is the Intel storage driver. So update the drivers. If this doesn't help, make a new trace, compress the trace as 7z or RAR and upload the trace.

#771 User is offline   TNeumann 

  • Group: Members
  • Posts: 3
  • Joined: 20-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 May 2012 - 12:13 PM

Apologies. You understand the despair of having a laptop problem and having no idea how to fix it. I've gone solo before, but this is above my head. But don't insult my lack of intelligence too much; I wouldn't stumble across this thread unless I was here for the exact reason everybody else is - Latency. LatencyMON has shown me that hal.dll, iaStor.sys and USBport.sys have either IRS and/or DPC's on a different planet to everything else.

Anyway yes most of what you said is true. I installed the Tools Kit, but now, what, the rest is too vague for me to follow. Do you mean the C:\Temp file that is found in C\Windows\Temp? How do I open the Command Prompt in that?

#772 User is offline   MagicAndre1981 

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

Posted 21 May 2012 - 12:26 PM

I need the generated DPC_Interrupt.etl after running the 2 commands from the command line.

#773 User is offline   MagicAndre1981 

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

Posted 21 May 2012 - 12:51 PM

ok, I see you have issues with the command line. Install this programm:

http://code.kliu.org/cmdopen/

It adds 2 new items to the context menu (right click):

Posted Image

Open the Windows Explorer, go to C:\temp, make a right click and select "Open Elevated Command Prompt" and run the first command. Wait 30s and next run the second command. Now compress the etl with to a RAR or 7z file and upload it to our SkyDrive, dropbox or whatever you use and send me the link.

#774 User is offline   iamselosa 

  • Group: Members
  • Posts: 3
  • Joined: 22-April 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 22 May 2012 - 03:48 AM

Hi Andre! I already pm'ed you the link. Thanks :)

#775 User is offline   MagicAndre1981 

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

Posted 22 May 2012 - 01:51 PM

have you renamed the kernel.etl to DPC_interrupt? You must run the 2nd command and give me this file.

From your current trace I can see that Google Chrome causes high HDD usage and this causes ATAport.sys Interrupts. Install the latest SATA drivers, look if your laptop supports running AHCI instead of IDE and check the HDD with chkdsk.

#776 User is offline   iamselosa 

  • Group: Members
  • Posts: 3
  • Joined: 22-April 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 23 May 2012 - 11:48 PM

View PostMagicAndre1981, on 22 May 2012 - 01:51 PM, said:

have you renamed the kernel.etl to DPC_interrupt? You must run the 2nd command and give me this file.

From your current trace I can see that Google Chrome causes high HDD usage and this causes ATAport.sys Interrupts. Install the latest SATA drivers, look if your laptop supports running AHCI instead of IDE and check the HDD with chkdsk.


Yes, I did. I thought they were the same, apologies :)

I'll do it again and pm you the link. Thanks!

#777 User is offline   iatnuolas 

  • Group: Members
  • Posts: 2
  • Joined: 25-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 May 2012 - 05:04 PM

hi andre, i messaged you the link to my DPC_interrupt without dpclat.exe running, thank you!

#778 User is offline   MagicAndre1981 

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

Posted Yesterday, 01:14 AM

Quote

Total = 12235 for module ndis.sys
Elapsed Time, > 256 usecs AND <= 512 usecs, 43, or 0.35%
Elapsed Time, > 512 usecs AND <= 1024 usecs, 0, or 0.00%
Elapsed Time, > 1024 usecs AND <= 2048 usecs, 0, or 0.00%
Elapsed Time, > 2048 usecs AND <= 4096 usecs, 12, or 0.10%


Looks like your network adapter is the cause. So update the driver for your realtek network adapter. Also make sure you sue the latest Hamachi version. Do you play Diablo with Hamachi?

#779 User is offline   iatnuolas 

  • Group: Members
  • Posts: 2
  • Joined: 25-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted Yesterday, 09:46 AM

View PostMagicAndre1981, on Yesterday, 01:14 AM, said:

Looks like your network adapter is the cause. So update the driver for your realtek network adapter. Also make sure you sue the latest Hamachi version. Do you play Diablo with Hamachi?


just updated the driver from the realtek website from 5/22, and i'm still having the issue, i don't play diablo with hamachi and when i run the xperf test hamachi isnt enabled, i pm'd you the second test too

edit: my network adapter has been having some issues with turning on and off (when i hibernate my computer and turn it on in the morning the adapter disappears, even though it isnt set to turn off to save power) and i have had some problems with my browser showing a lot of "time outs" for a few minutes, but the other computers on my network have no issues loading pages during this time, do you think it could be an issue with the network adapter itself? i also had this issue before i moved my hard drives onto this new motherboard (with my old setup)

This post has been edited by iatnuolas: Yesterday, 10:18 AM


Share this topic:


  • 39 Pages +
  • « First
  • 37
  • 38
  • 39
  • You cannot start a new topic
  • You cannot reply to this topic

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



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