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

Jump to content


  • 62 Pages +
  • « First
  • 45
  • 46
  • 47
  • 48
  • 49
  • 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: -----

#921 User is offline   MagicAndre1981 

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

Posted 16 August 2012 - 11:50 AM

5s google:

http://www.ehow.com/...os-macbook.html


#922 User is offline   Lynxbro 

  • Group: Members
  • Posts: 1
  • Joined: 17-August 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 17 August 2012 - 06:38 PM

when u say --> go to C:\temp (cd\temp) and run the following commands:

what do u mean because it wont work with me

This post has been edited by Lynxbro: 17 August 2012 - 09:29 PM


#923 User is offline   MagicAndre1981 

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

Posted 18 August 2012 - 12:21 PM

this is an example. Create a folder and name it what ever you want. You can also install this Tool:

ContextConsole Shell Extension
http://code.kliu.org/cmdopen/

Posted Image

to open a CMD with admin rights in every folder you want.

#924 User is offline   davros303 

  • Group: Members
  • Posts: 8
  • Joined: 28-August 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2012 - 07:15 AM

Hi Andre & all,

I've been searching for weeks to get a solution to bad latency issues causing static audio pops, dropouts and freezes in Win7 I even bought a brand new motherboard hoping to fix my latency issues, only to find them much worse with the new board!

storport.sys is now the main culprit which I isolated in LatencyMon.

Finally discovered this forum & thread. Andre - followed your instructions and discovered storport.sys "RaidAdapterTimerDpcRoutine" is the culprit, with a max actual duration of over 51ms per spike.

However now that I've located the problem - what can I do about it? I've searched for a long time for any kind of update or fix or revision or driver rollback for storport.sys.

System is:
Windows 7 64bit SP1
Asus Sabertooth 990FX mobo
AMD Phenom II X6 1090T black
8gig ram

Have installed all latest drivers from Asus including latest BIOS, latest drivers for the GFX card etc and all the Win7 updates including SP1.

Cheers from Australia,
David

#925 User is offline   MagicAndre1981 

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

Posted 28 August 2012 - 03:42 PM

Do you use a RAID adapter/functions of your SATA controller? If not, disable the RAID functions.

#926 User is offline   davros303 

  • Group: Members
  • Posts: 8
  • Joined: 28-August 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2012 - 10:12 PM

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

This post has been edited by davros303: 29 August 2012 - 06:15 AM


#927 User is offline   MagicAndre1981 

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

Posted 29 August 2012 - 01:51 PM

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

#928 User is offline   davros303 

  • Group: Members
  • Posts: 8
  • Joined: 28-August 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 August 2012 - 04:17 AM

Hi Andre,

Much appreciated.

http://www.mediafire...y1ij18z912af58d

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

Cheers,
David

#929 User is offline   MagicAndre1981 

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

Posted 30 August 2012 - 11:16 AM

Quote

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.57K)
Number of downloads: 5

Quote

"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

This post has been edited by MagicAndre1981: 30 August 2012 - 11:39 AM


#930 User is offline   davros303 

  • Group: Members
  • Posts: 8
  • Joined: 28-August 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 August 2012 - 05:19 PM

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 User is offline   MagicAndre1981 

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

Posted 31 August 2012 - 09:02 AM

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

Attached File  DPC.png (159.13K)
Number of downloads: 11

Is 4.0.0.13485 the latest driver version?

#932 User is offline   doveman 

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

Posted 01 September 2012 - 09:06 AM

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.

This post has been edited by doveman: 01 September 2012 - 09:11 AM


#933 User is offline   MagicAndre1981 

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

Posted 01 September 2012 - 09:58 AM

make a new xperf trace.

#934 User is offline   doveman 

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

Posted 01 September 2012 - 10:12 AM

View PostMagicAndre1981, on 01 September 2012 - 09:58 AM, said:

make a new xperf trace.


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

This post has been edited by doveman: 01 September 2012 - 10:13 AM


#935 User is offline   doveman 

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

Posted 01 September 2012 - 11:14 AM

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 User is offline   MagicAndre1981 

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

Posted 01 September 2012 - 02:38 PM

the mouse causes the USBport.sys issues:

Attached File  DPC_doveman.png (94.13K)
Number of downloads: 15

try to to connect the mouse to a different port.

#937 User is offline   doveman 

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

Posted 01 September 2012 - 05:16 PM

View PostMagicAndre1981, on 01 September 2012 - 02:38 PM, said:

the mouse causes the USBport.sys issues:

Attachment DPC_doveman.png

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 User is offline   MagicAndre1981 

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

Posted 02 September 2012 - 01:15 AM

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

#939 User is offline   doveman 

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

Posted 02 September 2012 - 06:46 AM

View PostMagicAndre1981, on 02 September 2012 - 01:15 AM, said:

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 User is offline   davros303 

  • Group: Members
  • Posts: 8
  • Joined: 28-August 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 September 2012 - 07:13 AM

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

Share this topic:


  • 62 Pages +
  • « First
  • 45
  • 46
  • 47
  • 48
  • 49
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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