DPC Horror

Did you ever wonder what Deferred Procedure Calls where?

Me neither. But the horror full thing was that in PerfMon I saw that DPCsQueued/Sec where rocketing causing mouse and keyboard events to get lost. I ran every spyware tool I could find and McAfee has seen al my files by now. I've reinstalled every patch from WindowsUpdate and downloaded all tools from Sysinternals. ProcExplorer just showed DPC's but I had no idea which part of my system was generating them. I just want to understand what is going on.

This article on MSDN directed me to the solution. As I understand now DPCs are called by device driver (C++) hackers which enables them to quickly handle an interrupt but postpone the more heavy duty processing to a later moment. I think this makes that our PC's keep on working while we type, mouse move, network, print etc.

Ok, so some Hardware is probably sending interrupts and its driver is putting a lot of DPCs in the queue to get handled. But which part of my system is doing that. Nothing is broken....except for my battery. Can a battery generate interrupts? I find it hard to believe. Until I remove the battery from my laptop. The DPCs disappear! I must have overlooked something: put back the faulty battery, there are my DPCs again and my sticky mouse and my erratic keyboard. Those guys from HP must be kidding me. Remove the battery et voila laptop works just fine.

Is there an DPC debugger around somewhere?

Published 07-04-2004 7:40 PM by Rene Schrieken

Comments

# re: DPC Horror

A DPC debugger, just basically looks at your device list. ( Deffered, usually means that its a device driver interupt that is being deffered ).

The DPC is being used by the Battery monitor which *ABSOLUTLY* *MUST* check the freaking battery every second. ( On my Sony Laptop, the battery monitor is OFF unless I am using the battery, then I turn it ON by a mouse click on the desktop ).

A battery cannot generate intrupts, but a APCI moniter device can. Turn off you battery monitor, and if possible TURN OFF APCI ( Heh, your going to really like this acronym: Advanced Power Control Interface... Have Fun!

Yours,

ArthurT

Monday, January 21, 2008 1:51 PM by ArthurT

# re: DPC Horror

I don't know about any DPC debugger, but thank you for putting this in your blog all the way back in 2004. I have had the same problem and you have given me the non-obvious solution. I was just about to give up and  buy a new laptop (a Mac this time though).

We have an Acer Aspire 1640 laptop (1642WLMi). The problem was that the keyboard and trackpad were not working properly. Key strokes would be missed and the trackpad worked intermittently. It had become unusable over the last week or so. Plugging in a USB keyboard / mouse did work just fine - but hardly a practical solution.

Task manager showed a process with the image name "system" using 20 to 50% of the CPU. After some Google searching I downloaded Process Explorer, which showed the CPU was spending its time doing DPCs. So I eventually found your post searching Google for dcps keyboard.

I took out the battery (while powered by the mains adapter) and DPCs activity disappears on Process Explorer and the keyboard and trackpad work perfectly!

After plugging the battery in again the keyboard still works - maybe it was a bad connection? maybe the battery has to be warm? Time will tell.

It turns out the battery life has been lousy over the last year so the laptop has been used plugged in most of the time.

The laptop has been shutting down intermittently too so we'll try with the battery out for a while. If it is OK then maybe the battery is somehow causing the shutdowns and I'll just buy a replacement battery.

Thanks again!

Wednesday, March 12, 2008 8:46 PM by Jim

# re: DPC Horror

Ran into the very same problem on my MacBook (running windows xp at the time via bootcamp)  My CPU usage started capping out so I went crazy looking for malware/spyware/virus and such and couldn't find anything.  Eventually ended up using processexplorer and seeing the DPCs then googling again.  Dropped the battery out and bam everything is back to 0% usage.  My battery still had some use out of it and I don't have the money to replace it so I'm looking for a way to still use it.

Saturday, July 05, 2008 10:21 PM by Michael

Leave a Comment

(required) 
(required) 
(optional)
(required)