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 Sun, Jul 4 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

# re: DPC Horror

Thanks guys, for me it was the battery as well.

I took the battery out ehile powered by mains power and the system process (DPC's) dropped to basically 0.

and as such the cpu fan etc dropped down in noise etc. and I can use the pc again.

-strangest problem ive seen in my computing / support career, of 5-7 years.

Tuesday, December 23, 2008 4:58 AM by Lee

# re: DPC Horror

Exact same problem as Jim above but with an Acer TravelMate 4060. Process Explorer told me that DPCs were hogging about 80% of my CPU. Removing the battery solved it. Keyboard and trackpad work perfectly now.

My battery is very old and barely holds a charge (always plugged in), so perhaps that's the cause. I successfully reinserted the battery without the CPU hogging. But the battery monitor showed it had 0% power left.

Wednesday, January 20, 2010 10:51 PM by Alex

# re: DPC Horror

I had the same issue today with an Acer Travelmate 2312LMi_L. I solved the problem by disabling one of the two items under device manager / batteries: Battery that complies to the Microsoft ACPI standard (or something like that, it is a localized version of XP).

Monday, February 15, 2010 10:18 PM by Erik

# re: DPC Horror

Had same issue with Acer Aspire 5672 Wmi.

Keyboard and Touchpad were disabled before login screen appeared. Only external mouse worked (on screen keyboard can be very useful).

Was able to boot a live Fedora Linux CD and all hardware worked fine so knew there was nothing hardware wise wrong.

The machine in question has very little battery life as it has almost always been connected to the mains.

Using dpclat.exe saw over 1000micro second latency. This dropped to sub 100 when I removed the battery and I got a driver error message. There after replacing the battery left me with low DPC rate but it slowly rose.

Not sure if a new battery would fix the issue but disabling ACPI works.

Tuesday, March 16, 2010 3:23 PM by UnderMine

# re: DPC Horror

Thank you for this solution.

I had the same problem with my MacBook Pro. Removing the battery solved the problem, but after a reboot the problem came back. After removing the battery AND power adapter the problem disappeared.

Monday, April 12, 2010 11:47 AM by Eddy

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 3 and 4 and type the answer here: