How To Control Disk Thrash From ccmexec.exe (SMS Agent).
Today started like any other day at work. I sat down, logged into my PC and was greeted by the thrashing sound of my hard drive. I’ve come to realize that the bottleneck in my work PC is by far the hard drive. I don’t need any bench marking software, I simple try to access a file or two. Sometimes, I simply open windows explorer and wait.
I finally got so disgusted I fired up procman and dug through the activity to find the culprit.
I had to scroll down to the bottom of a couple thousand lines of activity before I saw a clear pattern, but lo and behold what I saw was incredible!
There were literally thousands of disk writes to my pagefile - and all I had done was log in!
The bizarre part was that the files being read and written to the swap file were files I was not touching.
I saw that the process performing all this thrashing was something called “ccmexec.exe”. I’d actually never heard of this process, but after some quick googling I discovered its the exe for the SMS Agent service.
This service (the Systems Management Server service) performs an indexing or cataloging of all the files on the disk so that windows update will have the latest info on versions of OS files that may need patching. Sounds great, but I’m not sure it’s worth the cost considering the downtime and aggravation I experience waiting for this thing to chew through my 150GB drive.
My first instinct was to disable the service in the services control panel applet, but I figured that the corporate IT staff would eventually get a tad upset when they realized my system didn’t have the latest patches installed because I disabled the service.
So, I was faced with my own kobayashi maru scenario : I was ineffective while this thing chewed threw my file system, but I couldn’t disable the service without sending up corporate red flags that I was a bad citizen.
Then I hit on a solution - a scheduled task to ensure the service did run, just not when I was busy working. I actually used two batch files, one for each task of starting and stopping the service.
Open up notepad (or your text editor of choice), and type the following:
net start CcmExec
save the file as “SMS Agent start.bat”
Now, start a new text file and enter:
net stop CcmExec
save the file as “SMS Agent stop.bat”
Note: you can also replace “net” with “sc”, to use the newer Service Control manager command line tool.
Then, set the startup type of the SMS Agent Host service to “Manual” in the services control panel applet.
Next, create a scheduled task to run after hours that runs the “SMS Agent start.bat” file, and another task that runs the “SMS Agent stop.bat” before you get into the office.
The best of both worlds - you remain productive and a good corporate citizen (after hours)!
Related Posts - The 3 Most Important Questions You Should Ask About Each Bug You Find. I stumbled upon (quite literally) an article by Tom Van Vleck titled Three Questions About Each Bug You Find today, and thought I would share it: "The key idea behind...
- Arraylist and generics don't mix with IEnumerable(Of T).GetEnumerator. The other day I was writing an in-house tool to assist in some upgrades we were performing on client installations. This tool was supposed to perform its operations on a...
- Free Firewall Recommendations (Protect Yourself Online With These Free Firewalls) If your home computer is connected to the internet, or to other computers that are connected to the internet - you need a firewall. It's as simple as that. Hackers...
- IE7 WebControl TreeView line gap in quirks mode. I've been writing a subclass of the MS Webcontrol.TreeView control for one of our Web Applications at work. I figured this would be a fairly easy task, since I only...
- Dude, Where's my Folder treeview?! After a wee bit O' overzealous registry cleaning last week, I had a minor panic. Well, a picture being worth a 1000 words, here's what I saw when I opened...
Related Websites - More Tips for Serving Here are some more useful tennis tips for improving your serving game. If you want to make improvements in your ability to serve, these tips will prove useful. Tip #1: Be a little off center after your serve. When you are serving wide to your opponent in order to......
- How to Catch Ling Cod If you have never heard of the Ling Cod before, this is a fun fish to try to catch that can be found anywhere along the California coast, as far south as Baja. This is a popular fish that gives a lot of sport and the size is well worth......
- The Apple Tablet: Will It Be Called iSlate, iGuide, Or Something Else? After discovering that Apple had registered iSlate.com in late 2006 (we dug a little deeper and found trademarks had been filed for ‘ISLATE’ in both the United States and Europe by a company that was most likely a dummy corporation set up by Apple), MacRumors has now discovered another......
- How to Soundproof a Room Whether you live by a busy road, you just had a new baby or your children have discovered the wonders of musical instruments, soundproofing a room has many benefits. Commonly, bedrooms are the rooms where soundproofing brings the most benefit, but literally any room can be soundproofed. It’s easier than......
- 20 Photoshop Tips & Tricks That You Should Know About Image via Wikipedia Photoshop is a heck of an amazing software. You can do all kinds of things with images and go as far as your imagination can take you. Once you are past the beginner level and understand what the various options are for and how they work,......


