Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

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

- - - - -

  • Please log in to reply
1384 replies to this topic

#926
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi Andre,

No I don't have a RAID setup - using 3 separate drives - an internal IDE HDD, an SSD and an external drive connected via SATA.

I checked in the BIOS and the SATA ports are all set to AHCI, and I couldn't find any other options to enable or disable RAID. Are there settings in the device manager or switches in the registry I need to change?

All the best,
David

Edited by davros303, 29 August 2012 - 06:15 AM.



How to remove advertisement from MSFN

#927
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

please gibe me the ETL file, I'll try to find a solution.
Posted Image

#928
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi Andre,

Much appreciated.

http://www.mediafire...y1ij18z912af58d

Asus got back to me and simply said, "talk to Microsoft". Thanks Asus.

Cheers,
David

#929
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

DPC Info

Total = 3993 for module storport.sys
Elapsed Time, > 1024 usecs AND <= 2048 usecs, 76, or 1.90%
Elapsed Time, > 2048 usecs AND <= 4096 usecs, 0, or 0.00%
Elapsed Time, > 4096 usecs AND <= 8192 usecs, 0, or 0.00%
Elapsed Time, > 8192 usecs AND <= 16384 usecs, 0, or 0.00%
Elapsed Time, > 16384 usecs AND <= 32768 usecs, 0, or 0.00%
Elapsed Time, > 32768 usecs AND <= 65536 usecs, 38, or 0.95%
Total, 3993


storport.sys!RaidpAdapterTimerDpcRoutine calls amd_sata.sys. This is the AMD SATA driver. You use a older version from 2011:

Attached File  DPC_usage_CallStack.png   66.57KB   8 downloads

"amd_xata.sys", "1.2.001.0292 built by: WinDDK"
"amd_sata.sys", "1.2.001.0292 built by: WinDDK"


Install the 12.8 Southbridge driver:

http://support.amd.c...id_windows.aspx

Edited by MagicAndre1981, 30 August 2012 - 11:39 AM.

Posted Image

#930
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Wow, they were the only drivers I hadn't installed. Big thanks!

The DPC is much better, but still spiking into the red on DPC latency checker every few seconds. The new culprits seem to be Wdf01000.sys (FxDpc:FxDpcThunk) and nvlddmkm.sys (0xfffff88011186128).

What's misbehaving now?

http://www.mediafire...qob0e3k3h0ihgnq

Cheers,
Davros

#931
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

your issue is now the Saffire.sys which belongs to your MIDI device:

Attached File  DPC.png   159.13KB   12 downloads

Is 4.0.0.13485 the latest driver version?
Posted Image

#932
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts
Hi MagicAndre

I'm having some issues with one of my PCs again. I was having problems with stuttering in DCS BS2 and Arma2, so I switched to a spare Win7 x64 install on my HDD with less stuff installed.

The latency hovers around the 100us mark with occasional spikes of 150-200 and sometimes I seem to be able to get it to stay more in the 20-50us range but I can't find a consistent method of doing this. One time killing nusb3mon.exe seemed to do it but another time didn't seem to have any effect.

My main concern is that I keep getting USBPORT.sys showing up as the highest DPC routine execution time (sometimes the ISR as well) with very high spikes, like 1500us. I've just killed TVService.exe which is the service for Mediaportal and that seems to have stopped that but obviously I need that running to record and watch TV (and clearly when watching TV, or any video, I don't want latency problems). My TV Tuner (Hauppauge Nova-T 500) does work on the USB bus, despite being a PCI card, so that sort of makes sense but I didn't see this problem on my other Win7 x64 install.

I haven't installed the AMD SB drivers yet, mainly because when I did on my other PC it would no longer boot, just BSOD, so I'm a bit nervous but can make a True Image before doing so if you think that might help. So it's just using the Microsoft AHCI drivers at the moment.

EDIT: Just realised I was using an old version of LatencyMon. Updated now and the latency's showing below 25us most of the time with highest 41ms, so I guess it must be measured differently. I'll try restarting TVservice.exe and see if it's OK now.

Nope, after restarting LatencyMon it soon had a DPC spike on USBPORT.sys of 1263us. There's higher spikes on the latency as well, highest 108us, some 50, 70, 90.

Edited by doveman, 01 September 2012 - 09:11 AM.


#933
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

make a new xperf trace.
Posted Image

#934
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts

make a new xperf trace.


EDIT: Never mind, just needed to stop LatencyMon. Thanks, will do.

Edited by doveman, 01 September 2012 - 10:13 AM.


#935
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts
OK, so I started the trace with

D:\>xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode
 Circular && timeout -1 && xperf -d interrupt.etl

let it run for about 30s, then started TVservice.exe, which takes about 30s to start. I'm not sure how much time gets captured in 256MB but I left it running for about 5 minutes which should hopefully have caught the USBPORT.sys spikes.

It created a kernel.etl and DPC_Interrupt.etl. I think from memory you only need the latter but please let me know if you want me to upload the kernel.etl as well.

http://www.mediafire...7xoaddbpg99un0f

#936
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

the mouse causes the USBport.sys issues:

Attached File  DPC_doveman.png   94.13KB   17 downloads

try to to connect the mouse to a different port.
Posted Image

#937
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts

the mouse causes the USBport.sys issues:

Attached File  DPC_doveman.png   94.13KB   17 downloads

try to to connect the mouse to a different port.


Thanks, that seems to have fixed it. With TV playing (obviously with TVservice.exe running) I haven't had any USBPORT.sys DPC spikes since disconnecting the mouse from my USB hub and connecting it directly to a port on the motherboard (via an extension cable as my PC is about 5m from my desk). I'll test later without TV playing just to be sure, as that was how I was testing before but I doubt it will be worse when idle.

I can't pretend to understand the image you posted, nor why the mouse connected to the hub would only cause DPC spikes when TVservice.exe is running. Could you explain a bit so I can hopefully learn how to avoid similar issues in future?

#938
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

I have no idea why the USB issue occurs on the hub. Be happy that it is fixed.
Posted Image

#939
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts

I have no idea why the USB issue occurs on the hub. Be happy that it is fixed.


Oh I am thanks. Just seems wierd the mouse on the hub only causes problems when TVservice.exe is running. I guess as the tuner card is on the USB bus some sort of wierd conflict must be happening with the mouse on the hub when the tuner is being accessed by TVservice.exe.

#940
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi again Andre,

I just disconnected and uninstalled the driver software for the Focusrite Saffire and the same intermittent DPC spikes are occuring, USBPORT.SYS seems to be doing the dirty work here.

http://www.mediafire...q2mrrs9bwztsc7y

Going to try swapping usb ports for the various peripherals. By the way, how do you configure settings to get that particular view from the performance toolkit that you've been posting screenshots of? eg: where you idenfied the Saffire.sys reference.

All the best,
Davros

#941
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

this time I see spikes of the AI Charger software of ASUS

Attached File  DPC_AIcharger.png   177.48KB   21 downloads

You can get the view, by looking at the "summary table" of the "CPU sampling per process" and arrange the columns like I did.
Posted Image

#942
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts
Hmm, I've had Latencymon running for 1hr21mins and it's just had a latency spike of 2825us! It must have happened in the last 10 minutes or so, as I don't think it had gone above 200us last time I looked and it was mostly staying in the 19-30us range.

Maybe I don't need to worry about such occasional glitches?

#943
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

do you have any issues (audio or video drops)?
Posted Image

#944
doveman

doveman

    Advanced Member

  • Member
  • PipPipPip
  • 354 posts
I wasn't doing anything with it at the time (Mediaportal was loaded but just sitting on the Home menu and I was on the other PC) so I can't really say whether it would have caused any drops or not.

#945
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi Andre,

I'm running the latest Asus drivers for that mobo. The AI utility is an "optional" add-on to optimise settings etc which loads automatically at startup. I'll try uninstalling it and see what happens.

All the best,
David

this time I see spikes of the AI Charger software of ASUS

You can get the view, by looking at the "summary table" of the "CPU sampling per process" and arrange the columns like I did.



#946
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi Andre,

Well I seem to have finally fixed my endless DPC problems. I performed a fresh install of Windows 7 and carefully installed all drivers and updates for everything in the following order:

- Asus motherboard drivers
- Flashed the BIOS and reinstalled latest vers.
- AMD CPU drivers
- All Windows 7 important updates incl SP1
- GPU drivers
- and lastly, the drivers for the external firewire audio device.

Hardware wise, I changed the slot that the GPU was installed on. I had it in PCI slot 3, and on reading the manual, they recommended slot 1 for the GPU. I also removed an Astrotek PCI firewire adapter card which was not being used.

Something in that mix of changes was the secret sauce to fixing the DPC problems. Now I can run video, audio, flick between screens rapidly at any resolution and DPC never peaks above about 153. I've even still got aero running. I've got fingers and toes crossed that this remains stable, but this is the first time I've ever had Win 7 so calm since first installing it 18 months ago. I was never able to install and run my audio production software through Windows 7 due to these issues and had a dual boot machine so I could run XP side by side. Now I'm going to give it another go and see if I can run everything inside the one O/S.

Many thanks for all your help Andre. Really appreciate it. :thumbup

#947
davros303

davros303
  • Member
  • 8 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Oh - the other thing I did was install everything "lean".

I did not install the AI utilities for Asus, after you said you spotted the AiCharger.sys misbehaving.

I also only installed the graphics drivers for the GPU - not PhysX, or 3D etc etc.

#948
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

nice to hear that everything is fine now :)
Posted Image

#949
war59312

war59312

    Will's Blog

  • Member
  • PipPipPipPipPip
  • 932 posts
What do you think?

dpc.txt: http://www.datafileh...d-246f837d.html

DPC_Interrupt.etl: http://www.datafileh...d-4c56bb18.html
Ad Muncher Usage Statistics for v4.73 Beta Build 30552/2275
Adverts removed by Ad Muncher: 2,200,586
Approximate bandwidth saved: 17,192 MB
Counter started: April 2, 2003

#950
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,926 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

The values are fine. Highest spikes (only 2) are between 128 and 256┬Ás:

Total = 4905
Elapsed Time, > 0 usecs AND <= 1 usecs, 1858, or 37.88%
Elapsed Time, > 1 usecs AND <= 2 usecs, 895, or 18.25%
Elapsed Time, > 2 usecs AND <= 4 usecs, 1337, or 27.26%
Elapsed Time, > 4 usecs AND <= 8 usecs, 644, or 13.13%
Elapsed Time, > 8 usecs AND <= 16 usecs, 96, or 1.96%
Elapsed Time, > 16 usecs AND <= 32 usecs, 55, or 1.12%
Elapsed Time, > 32 usecs AND <= 64 usecs, 13, or 0.27%
Elapsed Time, > 64 usecs AND <= 128 usecs, 5, or 0.10%
Elapsed Time, > 128 usecs AND <= 256 usecs, 2, or 0.04%
Total, 4905


Do you have any kinds of issues?
Posted Image




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users



How to remove advertisement from MSFN