Monday, January 11, 2010

Speeding Up AVG Anti-Virus 9

Update 1/12/2010: I have just uploaded an updated version of AvgFixer, which now supports 64-bit Windows, and also automatically asks if you want to disable the cache server if the server module is detected. If you already installed the original version, just go to the Add/Remove Programs (XP) or Programs and Features (Vista, Windows 7) control panel and uninstall AvgFixer. You will then be able to install the new version as instructed below.

If you regularly connect to the Internet with a Windows-based computer that isn't protected by some form of anti-virus you are a tool. For one thing, you are probably already infected, and your Windows user experience is worse than it should be. Now that wouldn't be so terrible (since you are bad, and you should feel bad) but the bigger issue is that your computer is probably busy infecting other systems, sending torrents of spam to people you will never meet, or engaging in denial of service attacks against online businesses who crossed the organized criminals of the Internet.

Unfortunately, most anti-virus software on the market is bloated crapware. The "Internet Security" packages that ship on most new PCs are often over-invasive, limiting what you can do with your computer, consuming system resources, and slowing you down when they aren't trying to sell you anti-virus definition subscriptions or other products. For years I have used and recommended AVG Free Anti-Virus. Traditionally, it's been fast, reliable, free, and relatively unobtrusive. In the last year or so, the upsell notifications have increased, but the product was generally solid. Sadly, AVG really fumbled with their latest release, AVG Anti-Virus 9.

Version 9 includes a new "optimization scan" feature which is supposed to decrease the duration of scheduled "Whole Computer" scans. The idea is that AVG keeps a database of files on your system that don't need to be scanned, so it doesn't waste time on them during system scans. The problem is that for this new feature to work, AVG frequently searches your computer for files to ignore (no, that wasn't a typo... it ties up your computer looking for stuff to ignore), and these scans cause a LOT of hard drive activity, which can significantly slow your computer down, affecting everything from launching programs to switching between windows to browsing the Internet.

Complicating matters, AVG never indicates in any of its user interfaces when it is doing these background optimization scans. It doesn't let you schedule them, and doesn't let you abort them if you happen to realize that your computer has suddenly slowed to a crawl. I don't care about this optimization feature; I run whole computer scans overnight, when they won't interfere with my day-to-day activities. AVG keeps saying that the optimization scan is a "low priority process," as if that means anything when your hard drive is spinning non-stop, causing every program that needs drive access to wait in line, making the system generally unusable. (Anti-virus engineers really live in this continual state of denial regarding how severely their software affects users. They schedule whole-system scans in the middle of the day, when people are at work, and they don't write their programs to defer resource-intensive tasks until nobody's using the PC.)

If you have experienced random slowdowns as a result of installing or upgrading to AVG Anti-Virus 9 (either the free or pay versions), there is yet hope. I have developed a little program that disables the new "Cache Server" module that runs the unnecessary optimization scans, putting control back into your hands.

How it works

AvgFixer
locates the cache server module on your computer- a file called avgchsvx.exe- and renames it so that AVG Anti-Virus doesn't load it the next time your system starts up. After renaming the file, AvgFixer asks whether you would like to restart your computer. That's it. You can use AvgFixer to restore the cache server later on, if you ever decide you want to do that.

You can perform all these steps manually, but I wrote this program for people who are not Windows experts. With AvgFixer, even your mom can fix her AVG 9 problems.

Where to get it

You can download the AvgFixer installer right here.

AvgFixer runs on the 32-bit and 64-bit versions of Windows XP, Vista, and Windows 7.

How to use it
  1. Locate the AvgFixerSetup file you downloaded from my web site and launch it. If you're running Vista or Windows 7, you might see a dialog box like the one below. This happens whenever you run a downloaded program if you have the (terrible, annoying) User Account Control feature enabled on Windows. Click Yes or Allow to continue with the installation.


  2. Follow the setup instructions until AvgFixer is installed.
  3. When setup is complete, locate the AvgFixer icon on your desktop and launch it. The icon looks like this:


    Again, on Vista and Windows 7, you might see a dialog box like the following one. Just click Yes or Allow to continue.

  4. The first thing AvgFixer does is determine whether you have version 9 of AVG Anti-Virus (either the free or pay versions) installed. If you do not, it will tell you that it couldn't find AVG 9, and you won't be able to do anything with the program. This is good, though, because it means you haven't been suffering like the rest of us. (Beginning with the 1.01 version on 1/12/2010, AvgFixer will ask you whether you wish to disable the cache server right away if it detects the module. If you answer No, you will see the following screen.) If AvgFixer does detect AVG 9, the screen will look something like this:


    The screen indicates whether it located the offending cache server module, and whether it found a backup of the cache server (which would only be there if you ran the program before). The Disable Cache Server button is the one you click in order to fix the performance problems related to AVG Anti-Virus 9. If the button is grayed out, it means the cache server was not found, and therefore isn't causing a problem. If you have successfully used AvgFixer previously, you can use the Restore Cache Server button to re-enable the cache server (why you would want to, I don't know). The button will only be clickable if a backup is found, and no cache server is currently active (it is possible that automatic program updates might install new versions of the cache server, and you might have to disable it more than once, over time). The Open AVG Folder button just opens an explorer window to the hard drive location where AVG 9 is installed. (It's there in case you wish to look at the AVG files yourself.)
  5. If the Disable Cache Server button is not grayed-out, click it. If the operation fails, it might be due to the privileges of your current user account. You might want to make sure you're logged in as an administrator and that you have logged out of any additional user accounts if there are multiple accounts that you switch between on your PC. If the operation succeeds, you'll be asked whether you'd like to restart your system. Click Yes.

  6. You're done, for now. After you restart your computer, you should not encounter any more AVG-related slow-downs (other than your regularly-scheduled system scans), unless AVG installs an updated version of the cache server on subsequent updates. After a successful run of AvgFixer, subsequent runs of the program should look like the following (unless AVG installs a new cache server, in which case it will look like it did the first time you ran it):

Here's hoping AVG gets on the ball and gives users more control over features like this in the future. It is difficult to find the right balance between security and ease-of-use, but the gross impact that the cache server feature had on many systems was just absurd.

3 comments:

yuvi said...

on top of this being a helpful post and a great blog, i'm most impressed with your effective use of tags. for instance, if i wanted to search for all posts related to "suck my nuts", i could easily find all five related articles...

Unknown said...

6 months after the post, the option to disable the cache server is in Tools > Advanced Settings > Cache Server > Caching Enabled. Might want to mention that in the post.

rockdad said...

Thank you, O Mighty Lord Quackstar! lol
I was able to follow your instructions and easily disable the intrusive and uncontrolled (by me anyway) AVG cache agenda. I now have my computer back under my control, as it should be.