February 5, 2008 11:00 AM PST

Stop svchost.exe from stealing CPU cycles

Svchost.exe processes in Windows Task Manager

Svchost.exe processes in Windows Task Manager.

(Credit: CNET Networks)

The situation is familiar to countless Windows users: They're in a groove at work, firing off e-mails, crafting documentation, and even blogging on their personal site during breaktime, when suddenly, something takes over 99 percent of the CPU, slowing it to a virtual standstill. A quick look at the invaluable Process Explorer (or the standard Windows Task Manager) indicates that a process called svchost.exe is using all that CPU. What's more, there's one main CPU offender. Multiple versions of svchost.exe are running in the background and hogging CPU cycles. What is it? Is it spyware? Hackers? Terrorists?

Although there are historical cases of malware using svchost.exe, because of its common presence, it's most likely just Windows being Windows. Svchost.exe is a generic process name for Windows services that run from Microsoft DLLs (dynamically linked libraries). Each of those instances of svchost.exe in the process lists actually represents a group of services that each process is managing. With Process Explorer, it's easy to see which services each process manages, and stop them one by one to see which is the CPU culprit.

In the spring of 2007, a major problem arose with a Windows update that caused svchost.exe to use 100 percent of CPU because of an issue with Automatic Updates. To correct that bug, be sure that Windows is fully patched with the most recent updates.

The first thing to do is to determine which of the active svchost.exe processes is causing the slowdown. Fire up Process Explorer, and click on the CPU column header to sort the list of processes by processor usage. A list of processes, sorted from most processor intensive to least intensive, is displayed. When the computer stalls, switch over to Process Explorer and see which running process is causing the crunch.

Once the offending version of svchost.exe is found, re-sort the processes to keep it from moving up and down the list (because CPU usage changes constantly). Usually, my busiest svchost.exe process will also use a very large chunk of memory, so I usually sort by Private Bytes.

Svchost.exe services in Process Manager

Hovering over an svchost.exe process in Process Explorer will display all of the related Windows services.

(Credit: CNET Networks)

Now that the specific svchost.exe process that's using up all of the CPU has been identified, hover the cursor over its name in Process Explorer. A tooltip window, that provides a list of all the Windows services associated with that process, will pop up.

Users can then use that list to determine which, if any, of the Windows services is killing their productivity. Launch the Services manager in XP by launching the Control Panel, selecting Administrative Tools, and then double-clicking the Services shortcut, or by typing "services.msc" into the "Run" dialog in the Windows Start menu. From this Services manager application,users can pause, stop, restart, or run any of their Windows services.

Often users will see about 20 different services represented by one process (see svchost.exe example in Process Manager above.) How are they supposed to know which of those is causing my computer to slow down? Well, luckily I've played around a bit with nearly all of the services in the list and found my biggest problem: Task Scheduler.

Task Scheduler is a Windows service in the NT family of operating systems that lets users schedule programs or automated jobs that can be performed at specific times or regular intervals. Since I'm working on a CNET company PC, there are a lot of corporate controls that I haven't manually configured. For example, security scans are managed on a networkwide IT level.

While my IT team might not like to hear it, if I'm in a deadline crunch and svchost.exe keeps slowing me down, I generally launch the Services manager and temporarily stop the Task Scheduler and Automatic Updates. Both of these services are critical to the health of my PC, of course, so I can't turn them off indefinitely, but I can stop them for the hour that I need to get my time-sensitive work done. I know that antivirus and antispyware protection is critical, especially for a computer tied to a huge network. However, in my hour of need, the applications that edit text files and images are much more critical than my regularly scheduled virus scan.

Have you suffered performance problems because of an svchost.exe process hogging your CPU? Have you found a solution for the problem? If you've got a great fix for the issue, or a specific question about your computer let us know in the comments.

Recent posts from The Daily Download
Fun flying with Power Downloader
Featured Freeware: FormatFactory
Open your jukebox: Open-source alternatives for music management
First Look video: Facebook for iPhone and iPod Touch 2.0
Kallout adds context-sensitive search to any Windows app
Add a Comment (Log in or register) 88 comments (Page 1 of 6)
by CharlieAddressGuard February 5, 2008 12:52 PM PST
I use Task Manager to change the process priority. A virus scan interfering with my tasks at hand will be set to BelowNormal. This way I can check email, check RSS feeds, cruise the net... and not have the virus scan slow me down so much.

If you don't know what the process is, then right click on the application and select 'Go To Process'. Then right click on the process and select 'Set Priority', then select BelowNormal'.
Reply to this comment View reply
by jwvanzandt February 5, 2008 3:51 PM PST
I suffered for this problem for 3 months, killing SVCHOST every chance i got. Finally after disabling windows update, the problem vanished. My final permanent solution last summer was to get a MacBook Pro. I have never regretted that decision. The performance is much faster, startup is very quick, and the user interface is much easier. And surprisingly, i have not missed any of my windows applications. none. Not even outlook. And I don't even have to decide between XP and Vista.
Reply to this comment View all 5 replies
by Kenneth Nolan February 5, 2008 4:04 PM PST
I tried your recommendations but my computer won't let it operate, it is a new unit duo core and runs vista home.
Ken
Reply to this comment View all 2 replies
by promytius February 5, 2008 4:05 PM PST
I just tried it - ACCESS DENIED - what's that all about?
Reply to this comment View all 2 replies
by Bob Newman February 5, 2008 4:11 PM PST
Throwing the baby out with the bath water is not a viable solution for me, adding yet another PC or MAC. I fought with a locked up computer for a day before finding Svchost.exe as the cause. My PC with XP home edition had been taken over. Turning the flashing lines off, one by one, using the Task Manager, took care of the problem. I began to take un-needed programs off the start up list one by one also. Result, much faster operation. Daily defrag of my 4 Tbyte system keeps it that way. Good luck and may the force be with you.
Reply to this comment View reply
by analatana February 5, 2008 4:21 PM PST
I am having this problem with a program named "agent.exe". I searched Internet to see if it was malware, a virus, or whatever and I found that it is also some kind of updating tool. The fact is that when my PC slows down to an exasperating point, I look into the Task Manager and there it is, agent.exe using as much as 98% of the resources. What do you suggest to do with it? Keep it? svchost.exe is there in the background also, but it doesn't seem to be causing any problem, as much as I can see. Thanks a lot! Ana
Reply to this comment View all 5 replies
by Redney February 5, 2008 4:52 PM PST
Yes I resemble that problem, now if I just had the nerve to implement it.
Reply to this comment
by mrspeedo February 5, 2008 5:08 PM PST
What the f@#$ are you talking about. What in all that's good and holy are you saying? Are you speaking english, what foreign crap language is this? People are actually suppose to understand this??? Try using terms I would understand, ok??? Too much I.Q. means no common sense. This not an attack just some good ole' advice. Smart enough to use it?
Reply to this comment View all 5 replies
by mrspeedo February 5, 2008 5:13 PM PST
If someone wants clarification about this computer science the explanation would be just as difficult if not impossible to grasp. It takes a great person with patience of a god to be willing to teach someone else what in the world your talking about. Go through every single solitary step in easy easy easy easy easy to understand terms so that folks can use this worthless information!
Reply to this comment View all 4 replies
by mikehattan February 5, 2008 5:18 PM PST
I think your last statement to be a little Cavalier....Why would you even think of compromising your whole systems security just for more speed......?
I think you are searching for perfection and when you reach my age, hopefully you will know by then that that is an impossible task. Chill.

Mike.
Reply to this comment View all 2 replies
1 | 2 | 3 | 4 | 5 | 6 | Next 10 Comments >>
Powered by Jive Software
advertisement
Add this to your feed reader
RSS feed
Add to Google
Add to Yahoo
Add to MSN
Add to Bloglines
Add to Newsgator
Recent posts
Fun flying with Power Downloader
Featured Freeware: FormatFactory
Open your jukebox: Open-source alternatives for music management
First Look video: Facebook for iPhone and iPod Touch 2.0
Kallout adds context-sensitive search to any Windows app
Download bloggers
Peter Butler
Jessica Dolcourt
Jason Parker
Seth Rosenblatt
Mark Sikes
About the Download Blog

Download.com editors cover the world of downloadable software and beyond.

On GameSpot: Wii Fit tells 10-year-old she's fat
Visit other CBS Interactive sites