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
1399 replies to this topic

#151
VDev

VDev
  • Member
  • 2 posts
  • OS:Windows 7 x86
  • Country: Country Flag

you have to run the command prompt with admin rights (http://windows.micro...or-access-token)


Thank you. I have produced two tables (DPC CPU Usage Summary Table and Interrupt CPU Usage Summary Tables), saved as Excel CSV files. But then I read that you mentioned: "now wait a time while the high DPC and Interreupt usage occurs." Do you mean I should wait until the next time my CPU starts working furiously, causing delays, to run the second command to produce the summary tables? I have already run the first one: xperf -on latency and hopefully this is running now! (Pardon me - as mentioned before, I have no knowledge on these kind of issues...).


How to remove advertisement from MSFN

#152
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

open a command prompt all the time. And when you get the issue run the commands immediately, wait 1 minute to capture some data, next save them into the etl file.
Posted Image

#153
Mornel

Mornel
  • Member
  • 5 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Hello!

MagicAndre1981, it's really cool that you are helping people here :-)

I've started getting problems with high DPC Latencies lately - when I listen to music my sound gets interrupted about every 30 seconds and that sucks really hard. I've followed all the instructions here and I've also googled a bit and tried some other things. So here are my findings:

I've got Alcohol 120 % installed and when the sptd.sys driver (which is installed with Alcohol 120 % and also with Daemon Tools) is loaded, the Windows Performance Tools kit shows an "Unknown" module which makes lots of DPCs. But when I disable the sptd.sys driver via these instructions I get other results - and it seems that the issue is related to my network adapters. If you look at the screenshots, you'll see that tcpip.sys makes a peak DPC of 90ms.

I've got LAN, WLAN, two virtual adapters installed by OpenVPN and one virtual adapter installed by VirtualBox. I've updated both the WLAN and the LAN drivers to the latest version. When I disable sptd and all of the network adapters, the problem is solved. Even with sptd enabled and all of the network adapters disabled there seem to be no problems.

However, I'd like to be able to surf the net and listen to music simultaneously...

It would be great if you could look into this. I'll only attach the screenshots at first but I can also upload the .etl files if you need them.

Here is the version with sptd disabled and all network adapters enabled:
Attached File  sptd_disabled_with_network.png   202.44KB   32 downloads

And here is the version with sptd disabled and all network adapters disabled:
Attached File  sptd_disabled_without_network.png   203.74KB   28 downloads

PS. I've also made logs with sptd enabled but these seem to be more helpful.

Edited by Mornel, 05 August 2010 - 05:16 PM.


#154
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

could please upload the trace file and send me the link?
Posted Image

#155
Mornel

Mornel
  • Member
  • 5 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Hello André,

I've uploaded all the trace files, both with sptd enabled and disabled and with network enabled and disabled (4 files altogether).

Here is the link:
[edit: link removed]

Thanks a lot for your time!

Edited by Mornel, 07 August 2010 - 08:46 PM.


#156
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

The issue is the IppTimeout function from the TCPIP.sys. This causes in both cases some spikes. But without the network/sptd driver the CPU usage is ok. So you should update Alcohol and the VPN software. Also Winamp causes a high regular CPU usage.
Posted Image

#157
Mornel

Mornel
  • Member
  • 5 posts
  • OS:Windows 7 x86
  • Country: Country Flag

The issue is the IppTimeout function from the TCPIP.sys. This causes in both cases some spikes. But without the network/sptd driver the CPU usage is ok. So you should update Alcohol and the VPN software. Also Winamp causes a high regular CPU usage.


Thanks for your advice! I've tried upgrading Alcohol but it did not really help... so now I've uninstalled it and the sptd driver completely. Didn't use it that often anyway. OpenVPN and VirtualBox already are the newest versions. I've also upgraded the nvidia driver just to be sure. However, my problem is still not solved. Looking at DPC Latency Checker I still get spikes up to 19ms and an overall bad performance in the area of 2ms (it was mostly below 0.4ms last time with sptd and all network adapters disabled). And now the trace seems to show that usbport.sys is the new villain and enabling/disabling the network adapters does not seem to make any difference anymore... well, I've uploaded the new trace here: [edit: link removed]

Edited by Mornel, 08 August 2010 - 07:42 AM.


#158
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

does it also happen without the USB web cam? Have you installed the latest Intel mainboard drivers?
Posted Image

#159
Mornel

Mornel
  • Member
  • 5 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Yeah, it also happens without the USB web cam (it's integrated in the notebook but I tried disabling it in the device manager). The Intel Chipset drivers are up-to-date (but they don't seem to include USB drivers anyway). Maybe I should try disabling all the USB Host Controllers in the Device Manager and see if that helps?

Also, what's more important when looking at the DPC CPU Usage Summary Table? The "Max Actual Duration" or the the "Actual Duration"?

Without the 90ms dpc calls I don't seem to get noticeable sound interruptions anymore but I'd still like to fix this problem completely...

#160
Mornel

Mornel
  • Member
  • 5 posts
  • OS:Windows 7 x86
  • Country: Country Flag
No more ideas? :-(

#161
ChristSavesU2

ChristSavesU2

    Newbie

  • Member
  • 11 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi,

I have a Gateway SX2800-07 desktop with Windows 7 64bit operating system. I have had the similar issue of occasional high system interrupts that slow my system down. I have updated all the drivers that I can find and still haven't solved the problem.

You can view my traces at www.willowproperties.net/1temp.pdf and I have attached that file here as well.

Any advice would be appreciated.

Attached Files



#162
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

I need the etl file. The usbport.sys is the cause. So update the mainboard drivers and all drivers for your USB devices.
Posted Image

#163
shadetree

shadetree
  • Member
  • 3 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Thank you very much for this tutorial Andre :hello:

I have a HP Pavilion a1267c MS-7184 Mainboard with now unsupported ATISB400 chipset, no BIOS update past 3.47. The USBPORT.SYS was maxing one of my AthlonX2 4800+ cores after installing Windows 7 Pro. It didn't slow things down much but the CPU fan was at mid rpm all the time. I had to disable the USB's before things went bask to normal.

I am triple booting XP, Vista and 7 with no issues with the other OS's and thinking I will use a add in USB card and continue to test 7.

Posting this....I just realized that I will not be using any of the MOBO onboard devices now. My HD GPU, HD Audio, GB Net and now USB are all add in cards.

Again Thanks :D

#164
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

and using the other USB card solves it?
Posted Image

#165
shadetree

shadetree
  • Member
  • 3 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Booting Win7 the USB disabled in device manager CPU 0&1 0-3% at idle. USB enabled CPU 0 is 15ish % and 1 is always 100% at idle.

To test this theory, I will try a Win7 supported chipset PCI 4 ? port USB adapter with 4 ? pin headers, to replace the MOBO's.

If this is a solution it would help others too.

I will post back the results.

#166
shadetree

shadetree
  • Member
  • 3 posts
  • OS:Windows 7 x86
  • Country: Country Flag
OK, My theory was correct with Win 7 and the USB drivers for the ATI SB400 chipset. I left them disabled in device manager.

Then successfully installed a StarTeck PCIUSB7 card with VIA 2.2 controllers, it has 4 exterior USB-A ports and a interior USB-A port and USB double pin header totaling 7 ports. I wanted this card because of the controller and the double pin header.

Then I added a NZXT IUO1 internal USB expansion board feeding it from the StarTeck’s USB double pin header and a 5v power insert from the PSU with the included cables. It adds three double pin headers and two USB-A ports.

Now I was able to add my card reader and the other 3 front USB ports with 1 header pair left over. The two remaining USB-A ports I added my Bluetooth dongle on one of them.
At idle the CPU is 0/3 % and a very noticeable increase in performance now that I didn’t ever know I had after installing Win7.

I included some screen shots after the install.

Thanks again for this post and I hope some will benefit.
:)

Attached Files



#167
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

thanks or the feedback. So some chipsets (ATI, nVIDIA) have some USB issues under Windows 7.
Posted Image

#168
Neurox

Neurox
  • Member
  • 2 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi everyone!

I have similar problems like couple people here. My culprit process is ndis.sys 16.71 percent of actual duration. I have an intel 5100 agn wifi in my vaio laptop. When I turn off the wireless and plug the cable into my NIC ndis.sys is the problem still but not as much as by wireless connection.

But, I only have problem when I am downloading with uTorrent or anything, but mostly with utorrent when I am above 1 megabyte/sec. When my computer is idle no problem. I know that this may be because of the bad network drivers but I have the latest ones so I dont know what to do. I inserted an image when I am downloading with utorrent. This time the cpu usually eats 20-25% when Im downloading with 2-2.5 megabyte/sec.

my specs: Intel Core2Duo T6600, 4GB ram, ati hd 4650

Thanks for your help!

xperf results: Posted Image (http://www.speedysha...360/Capture.PNG)

Edited by Neurox, 26 August 2010 - 04:21 PM.


#169
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

this happens when you use cheap onboard network chips. On my old Pentium M laptop the NDIS usage is also very high when I download with 2MB/s.
Posted Image

#170
year2525

year2525
  • Member
  • 8 posts
  • OS:none specified
  • Country: Country Flag
Hi, first off, I've read through the thread and want to say thanks for all the great help you offer!

The reason I wanted to check were the red peaks in the DPC Latency Checker below.
This occurs on an i7 920 12GB with no application running.

I've followed the steps and the summary table gives me the attached result.

Not sure what to make of it. There was someone before who had a problem with hal.dll
but the solution was not posted in this thread.

I went through my drivers manually and tried to update but Windows says they're all up to date.

...sorry, I'm an audio not a PC guy...

Any help much appreciated!

Attached Files



#171
year2525

year2525
  • Member
  • 8 posts
  • OS:none specified
  • Country: Country Flag
So, I thought I had sorted the problem out but after a restart it got just as bad again.

Sorry, but I've got no idea what I should make out of this...

Attached Files



#172
Neurox

Neurox
  • Member
  • 2 posts
  • OS:Windows 7 x64
  • Country: Country Flag

this happens when you use cheap onboard network chips. On my old Pentium M laptop the NDIS usage is also very high when I download with 2MB/s.


So the intel 5100 agn a load of sh*t :S? Actually Im sure that the driver is because there were some BSOD issues with the previous drivers, the next one solved but...as u see. So what I sent you the image about the processes in xperf shows that the problem is with the network drivers nothing else ?

#173
goran181

goran181
  • Member
  • 2 posts
  • OS:none specified
  • Country: Country Flag
Hi all!

Recently DPC's start to happen on my dedicated server, I followed the tutorial and found out that :

tcpip.sys - function : TcpPeriodicTimeoutHandler is causing the high cpu usage.
I updated the server with the broadcom latest drivers from DELL Support center.

Could anyone give me a hint which driver should be updated?

ETL Download link

thanks!

Edited by goran181, 27 August 2010 - 02:16 AM.


#174
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

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

Donator

@year2525 provide the trace please.

So what I sent you the image about the processes in xperf shows that the problem is with the network drivers nothing else ?


mostly. I may also be a networking related software like Firewall

@goran181

you have an issue with the TCPIP.sys, so please update the Broadcom BCM5708C driver please.
Posted Image

#175
goran181

goran181
  • Member
  • 2 posts
  • OS:none specified
  • Country: Country Flag

@year2525 provide the trace please.


So what I sent you the image about the processes in xperf shows that the problem is with the network drivers nothing else ?


mostly. I may also be a networking related software like Firewall

@goran181

you have an issue with the TCPIP.sys, so please update the Broadcom BCM5708C driver please.


Thanks! Solved :P




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users



How to remove advertisement from MSFN