It doesn’t matter who you are, you or someone you know has been dramatically impacted by aÂ computer virus. Â It is a painful process to go through and moreover you feel violated, angry, and deflated when it happens to you. Â Once this happens we vow never to let anything like this happen again, only for it to, well, happen again even when we have anti-virus software running on our machines because we unknowingly installed malware through a trojan.
In any case, it can compromise our computers, data, and network security…and potentially our sanity. Â So to combat this, we turn to the anti-virus experts to protect us and our networks. Â This can come with a number of side-effects of it’s own, some of which we will discuss within the scope of this article.
I can’t count the number of times I have beenÂ put in contact with an IT person fighting this very issue. Â From the get-go, they perceive me as a threatÂ because they assume that I am a “software guy” and I am going to try and take away their control of the network. Â The problem is thatÂ is only partially true. Â I am a “software guy” but I am also a network administration, network designer, data center and cloud engineer, and Windows architecture expert among other titles. Â My tenure at MicroFour started in hardware, actually. Â Before you could purchase a touchscreen off the shelf, theyÂ had to be built by hand. Â My first job at MicroFour starting in 1991 was to build the touchscreens that weÂ made available to our users. Â We were pioneers in the software world when it came to interfacing with a touchscreen.
Fast forward to today and our network has grown significantly. Â We have data centers that mustÂ have over a 99% availability 24/7 around the world. Â Our internal network is split across multiple locations with varying levels of employee ability and access. Â All of this requires a safe and secure network while providing the highest levels performance for our users. Â Which leads me to the point of this article. Â Though we need to have anti-virus on the network and run regular scans, real-time anti-virus will kill databases and SQL Server performance.
Understanding the Problem
I don’t want to get overly complex hereÂ so that the problem can be fully understood. Â To begin, SQL Server is a relational database that runs on a server or within a server environment to house business critical information, a.k.a data. Â SQL Server will use as much memory as the server on which is running will give it (and sometimes more if not configured correctly). Â Each timeÂ the data is updated, it is first written to memory and then eventually back to the hard drive for permanent storage. Â There are many ways to configure and optimize this, but for the sake of this discussion, this simplisticÂ explanation is sufficient. Â So if we have a 4 GB size database and allow SQL Server to use this much memory,Â then we will eventually have 4 GB of memory being used by SQL to cache off the entire database for optimization and speed.
And in a perfect environment this is very true.Â Depending on the hardware specs, the memory read/write speed and hard disk read/write speed can differ significantly as can the cost. Â So we will use some average numbers. Â The read/write speed to memory in this average environment is 12,800 MB/second and the read/write speed to the hard disk is 175 MB/second. Â You can already see the difference in the speed. Â The read/write access of the memory is roughly 75 times better.
Now enter the real-time anti-virus. Â When enabled and allowed to scan the SQL Server instances the real-time anti-virus re-scans eachÂ changeÂ to memory as it isÂ cached or written. Â The larger the database, the slower things will get. Â The anti-virus scanning process is extremely invasive and at times, it may perceive some of your data as a threat and throw it out…literally. Â Thus creating levels and layers of corruption in your data. Â At the very least, it will degrade performance greatly. Â When SQL Server memory is scanned with a real-time anti-virus, performance may fall lower than 1 MB/second write times or worse in extreme cases. Â That is overÂ 12,500 times slower!!! Â It won’t start that bad, but as theÂ database grows so will the memory usage, and in turnÂ the performance hits.
In one example of performance degradation, one of ourÂ customers had real-time anti-virus running on their SQL Server machine. Â They started complaining that saves were taking longer and longer. Â In one example, they indicated that they waited 2 hours for a chart encounter to save. Â What!?!?! Â Once we turned off the real-time anti-virus, the save was less than 1 second. Â The performance hindrances are not always this extreme. Â But it is a guarantee that it will get worse over time and all of a sudden the data will become corrupt or performance will be non-existent.
The simple solution is to turn off real-time anti-virus for any SQL Server machine. Â Depending on the version of anti-virus being run there can be many differently configuration options such as memory exclusion, folder exclusions, etc.. Â But when not sure, turn off the real-time anti-virus altogether and ensure that scheduled scans run duringÂ off-business hours.
The best solution really exceeds the scope of this article, but several policiesÂ should be enforced in order to best protect the network.
- Secure the Internet traffic by sending all inbound Internet traffic through aÂ centralized scan on a hardware device such as a firewall before being allowed into the network.
- Secure the network by preventing LAN users from installing applications or accessing anything outside of the scope of their business duties.
- Use a content filter to prevent access to websites that do not pertain to business duties.
- Ensure that all email attachments are scanned prior to downloading. Â Most email services, including Google+ provide this type of support. Â As do many firewalls.
By following these basic 4 steps, even for small networks, over 90% of the threat of viruses being introduced to the network will be eliminated. Â Talk with your IT person if they have questions. Â There are cost effective easy to configure firewalls that can help with steps 1,3, and 4 such as SonicWall (TZ100 and TZ200 series) and Barracuda brands among others.