- SQL Server Reference Guide
- Introduction
- SQL Server Reference Guide Overview
- Table of Contents
- Microsoft SQL Server Defined
- SQL Server Editions
- SQL Server Access
- Informit Articles and Sample Chapters
- Online Resources
- Microsoft SQL Server Features
- SQL Server Books Online
- Clustering Services
- Data Transformation Services (DTS) Overview
- Replication Services
- Database Mirroring
- Natural Language Processing (NLP)
- Analysis Services
- Microsot SQL Server Reporting Services
- XML Overview
- Notification Services for the DBA
- Full-Text Search
- SQL Server 2005 - Service Broker
- Using SQL Server as a Web Service
- SQL Server Encryption Options Overview
- SQL Server 2008 Overview
- SQL Server 2008 R2 Overview
- SQL Azure
- The Utility Control Point and Data Application Component, Part 1
- The Utility Control Point and Data Application Component, Part 2
- Microsoft SQL Server Administration
- The DBA Survival Guide: The 10 Minute SQL Server Overview
- Preparing (or Tuning) a Windows System for SQL Server, Part 1
- Preparing (or Tuning) a Windows System for SQL Server, Part 2
- Installing SQL Server
- Upgrading SQL Server
- SQL Server 2000 Management Tools
- SQL Server 2005 Management Tools
- SQL Server 2008 Management Tools
- SQL Azure Tools
- Automating Tasks with SQL Server Agent
- Run Operating System Commands in SQL Agent using PowerShell
- Automating Tasks Without SQL Server Agent
- Storage – SQL Server I/O
- Service Packs, Hotfixes and Cumulative Upgrades
- Tracking SQL Server Information with Error and Event Logs
- Change Management
- SQL Server Metadata, Part One
- SQL Server Meta-Data, Part Two
- Monitoring - SQL Server 2005 Dynamic Views and Functions
- Monitoring - Performance Monitor
- Unattended Performance Monitoring for SQL Server
- Monitoring - User-Defined Performance Counters
- Monitoring: SQL Server Activity Monitor
- SQL Server Instances
- DBCC Commands
- SQL Server and Mail
- Database Maintenance Checklist
- The Maintenance Wizard: SQL Server 2000 and Earlier
- The Maintenance Wizard: SQL Server 2005 (SP2) and Later
- The Web Assistant Wizard
- Creating Web Pages from SQL Server
- SQL Server Security
- Securing the SQL Server Platform, Part 1
- Securing the SQL Server Platform, Part 2
- SQL Server Security: Users and other Principals
- SQL Server Security – Roles
- SQL Server Security: Objects (Securables)
- Security: Using the Command Line
- SQL Server Security - Encrypting Connections
- SQL Server Security: Encrypting Data
- SQL Server Security Audit
- High Availability - SQL Server Clustering
- SQL Server Configuration, Part 1
- SQL Server Configuration, Part 2
- Database Configuration Options
- 32- vs 64-bit Computing for SQL Server
- SQL Server and Memory
- Performance Tuning: Introduction to Indexes
- Statistical Indexes
- Backup and Recovery
- Backup and Recovery Examples, Part One
- Backup and Recovery Examples, Part Two: Transferring Databases to Another System (Even Without Backups)
- SQL Profiler - Reverse Engineering An Application
- SQL Trace
- SQL Server Alerts
- Files and Filegroups
- Partitioning
- Full-Text Indexes
- Read-Only Data
- SQL Server Locks
- Monitoring Locking and Deadlocking
- Controlling Locks in SQL Server
- SQL Server Policy-Based Management, Part One
- SQL Server Policy-Based Management, Part Two
- SQL Server Policy-Based Management, Part Three
- Microsoft SQL Server Programming
- An Outline for Development
- Database
- Database Services
- Database Objects: Databases
- Database Objects: Tables
- Database Objects: Table Relationships
- Database Objects: Keys
- Database Objects: Constraints
- Database Objects: Data Types
- Database Objects: Views
- Database Objects: Stored Procedures
- Database Objects: Indexes
- Database Objects: User Defined Functions
- Database Objects: Triggers
- Database Design: Requirements, Entities, and Attributes
- Business Process Model Notation (BPMN) and the Data Professional
- Business Questions for Database Design, Part One
- Business Questions for Database Design, Part Two
- Database Design: Finalizing Requirements and Defining Relationships
- Database Design: Creating an Entity Relationship Diagram
- Database Design: The Logical ERD
- Database Design: Adjusting The Model
- Database Design: Normalizing the Model
- Creating The Physical Model
- Database Design: Changing Attributes to Columns
- Database Design: Creating The Physical Database
- Database Design Example: Curriculum Vitae
- NULLs
- The SQL Server Sample Databases
- The SQL Server Sample Databases: pubs
- The SQL Server Sample Databases: NorthWind
- The SQL Server Sample Databases: AdventureWorks
- The SQL Server Sample Databases: Adventureworks Derivatives
- UniversalDB: The Demo and Testing Database, Part 1
- UniversalDB: The Demo and Testing Database, Part 2
- UniversalDB: The Demo and Testing Database, Part 3
- UniversalDB: The Demo and Testing Database, Part 4
- Getting Started with Transact-SQL
- Transact-SQL: Data Definition Language (DDL) Basics
- Transact-SQL: Limiting Results
- Transact-SQL: More Operators
- Transact-SQL: Ordering and Aggregating Data
- Transact-SQL: Subqueries
- Transact-SQL: Joins
- Transact-SQL: Complex Joins - Building a View with Multiple JOINs
- Transact-SQL: Inserts, Updates, and Deletes
- An Introduction to the CLR in SQL Server 2005
- Design Elements Part 1: Programming Flow Overview, Code Format and Commenting your Code
- Design Elements Part 2: Controlling SQL's Scope
- Design Elements Part 3: Error Handling
- Design Elements Part 4: Variables
- Design Elements Part 5: Where Does The Code Live?
- Design Elements Part 6: Math Operators and Functions
- Design Elements Part 7: Statistical Functions
- Design Elements Part 8: Summarization Statistical Algorithms
- Design Elements Part 9:Representing Data with Statistical Algorithms
- Design Elements Part 10: Interpreting the Data—Regression
- Design Elements Part 11: String Manipulation
- Design Elements Part 12: Loops
- Design Elements Part 13: Recursion
- Design Elements Part 14: Arrays
- Design Elements Part 15: Event-Driven Programming Vs. Scheduled Processes
- Design Elements Part 16: Event-Driven Programming
- Design Elements Part 17: Program Flow
- Forming Queries Part 1: Design
- Forming Queries Part 2: Query Basics
- Forming Queries Part 3: Query Optimization
- Forming Queries Part 4: SET Options
- Forming Queries Part 5: Table Optimization Hints
- Using SQL Server Templates
- Transact-SQL Unit Testing
- Index Tuning Wizard
- Unicode and SQL Server
- SQL Server Development Tools
- The SQL Server Transact-SQL Debugger
- The Transact-SQL Debugger, Part 2
- Basic Troubleshooting for Transact-SQL Code
- An Introduction to Spatial Data in SQL Server 2008
- Performance Tuning
- Performance Tuning SQL Server: Tools and Processes
- Performance Tuning SQL Server: Tools Overview
- Creating a Performance Tuning Audit - Defining Components
- Creating a Performance Tuning Audit - Evaluation Part One
- Creating a Performance Tuning Audit - Evaluation Part Two
- Creating a Performance Tuning Audit - Interpretation
- Creating a Performance Tuning Audit - Developing an Action Plan
- Understanding SQL Server Query Plans
- Performance Tuning: Implementing Indexes
- Performance Monitoring Tools: Windows 2008 (and Higher) Server Utilities, Part 1
- Performance Monitoring Tools: Windows 2008 (and Higher) Server Utilities, Part 2
- Performance Monitoring Tools: Windows System Monitor
- Performance Monitoring Tools: Logging with System Monitor
- Performance Monitoring Tools: User Defined Counters
- General Transact-SQL (T-SQL) Performance Tuning, Part 1
- General Transact-SQL (T-SQL) Performance Tuning, Part 2
- General Transact-SQL (T-SQL) Performance Tuning, Part 3
- Performance Monitoring Tools: An Introduction to SQL Profiler
- Performance Tuning: Introduction to Indexes
- Performance Monitoring Tools: SQL Server 2000 Index Tuning Wizard
- Performance Monitoring Tools: SQL Server 2005 Database Tuning Advisor
- Performance Monitoring Tools: SQL Server Management Studio Reports
- Performance Monitoring Tools: SQL Server 2008 Activity Monitor
- The SQL Server 2008 Management Data Warehouse and Data Collector
- Performance Monitoring Tools: Evaluating Wait States with PowerShell and Excel
- Practical Applications
- Choosing the Back End
- The DBA's Toolbox, Part 1
- The DBA's Toolbox, Part 2
- Scripting Solutions for SQL Server
- Building a SQL Server Lab
- Using Graphics Files with SQL Server
- Enterprise Resource Planning
- Customer Relationship Management (CRM)
- Building a Reporting Data Server
- Building a Database Documenter, Part 1
- Building a Database Documenter, Part 2
- Data Management Objects
- Data Management Objects: The Server Object
- Data Management Objects: Server Object Methods
- Data Management Objects: Collections and the Database Object
- Data Management Objects: Database Information
- Data Management Objects: Database Control
- Data Management Objects: Database Maintenance
- Data Management Objects: Logging the Process
- Data Management Objects: Running SQL Statements
- Data Management Objects: Multiple Row Returns
- Data Management Objects: Other Database Objects
- Data Management Objects: Security
- Data Management Objects: Scripting
- Powershell and SQL Server - Overview
- PowerShell and SQL Server - Objects and Providers
- Powershell and SQL Server - A Script Framework
- Powershell and SQL Server - Logging the Process
- Powershell and SQL Server - Reading a Control File
- Powershell and SQL Server - SQL Server Access
- Powershell and SQL Server - Web Pages from a SQL Query
- Powershell and SQL Server - Scrubbing the Event Logs
- SQL Server 2008 PowerShell Provider
- SQL Server I/O: Importing and Exporting Data
- SQL Server I/O: XML in Database Terms
- SQL Server I/O: Creating XML Output
- SQL Server I/O: Reading XML Documents
- SQL Server I/O: Using XML Control Mechanisms
- SQL Server I/O: Creating Hierarchies
- SQL Server I/O: Using HTTP with SQL Server XML
- SQL Server I/O: Using HTTP with SQL Server XML Templates
- SQL Server I/O: Remote Queries
- SQL Server I/O: Working with Text Files
- Using Microsoft SQL Server on Handheld Devices
- Front-Ends 101: Microsoft Access
- Comparing Two SQL Server Databases
- English Query - Part 1
- English Query - Part 2
- English Query - Part 3
- English Query - Part 4
- English Query - Part 5
- RSS Feeds from SQL Server
- Using SQL Server Agent to Monitor Backups
- Reporting Services - Creating a Maintenance Report
- SQL Server Chargeback Strategies, Part 1
- SQL Server Chargeback Strategies, Part 2
- SQL Server Replication Example
- Creating a Master Agent and Alert Server
- The SQL Server Central Management System: Definition
- The SQL Server Central Management System: Base Tables
- The SQL Server Central Management System: Execution of Server Information (Part 1)
- The SQL Server Central Management System: Execution of Server Information (Part 2)
- The SQL Server Central Management System: Collecting Performance Metrics
- The SQL Server Central Management System: Centralizing Agent Jobs, Events and Scripts
- The SQL Server Central Management System: Reporting the Data and Project Summary
- Time Tracking for SQL Server Operations
- Migrating Departmental Data Stores to SQL Server
- Migrating Departmental Data Stores to SQL Server: Model the System
- Migrating Departmental Data Stores to SQL Server: Model the System, Continued
- Migrating Departmental Data Stores to SQL Server: Decide on the Destination
- Migrating Departmental Data Stores to SQL Server: Design the ETL
- Migrating Departmental Data Stores to SQL Server: Design the ETL, Continued
- Migrating Departmental Data Stores to SQL Server: Attach the Front End, Test, and Monitor
- Tracking SQL Server Timed Events, Part 1
- Tracking SQL Server Timed Events, Part 2
- Patterns and Practices for the Data Professional
- Managing Vendor Databases
- Consolidation Options
- Connecting to a SQL Azure Database from Microsoft Access
- SharePoint 2007 and SQL Server, Part One
- SharePoint 2007 and SQL Server, Part Two
- SharePoint 2007 and SQL Server, Part Three
- Querying Multiple Data Sources from a Single Location (Distributed Queries)
- Importing and Exporting Data for SQL Azure
- Working on Distributed Teams
- Professional Development
- Becoming a DBA
- Certification
- DBA Levels
- Becoming a Data Professional
- SQL Server Professional Development Plan, Part 1
- SQL Server Professional Development Plan, Part 2
- SQL Server Professional Development Plan, Part 3
- Evaluating Technical Options
- System Sizing
- Creating a Disaster Recovery Plan
- Anatomy of a Disaster (Response Plan)
- Database Troubleshooting
- Conducting an Effective Code Review
- Developing an Exit Strategy
- Data Retention Strategy
- Keeping Your DBA/Developer Job in Troubled Times
- The SQL Server Runbook
- Creating and Maintaining a SQL Server Configuration History, Part 1
- Creating and Maintaining a SQL Server Configuration History, Part 2
- Creating an Application Profile, Part 1
- Creating an Application Profile, Part 2
- How to Attend a Technical Conference
- Tips for Maximizing Your IT Budget This Year
- The Importance of Blue-Sky Planning
- Application Architecture Assessments
- Transact-SQL Code Reviews, Part One
- Transact-SQL Code Reviews, Part Two
- Cloud Computing (Distributed Computing) Paradigms
- NoSQL for the SQL Server Professional, Part One
- NoSQL for the SQL Server Professional, Part Two
- Object-Role Modeling (ORM) for the Database Professional
- Business Intelligence
- BI Explained
- Developing a Data Dictionary
- BI Security
- Gathering BI Requirements
- Source System Extracts and Transforms
- ETL Mechanisms
- Business Intelligence Landscapes
- Business Intelligence Layouts and the Build or Buy Decision
- A Single Version of the Truth
- The Operational Data Store (ODS)
- Data Marts – Combining and Transforming Data
- Designing Data Elements
- The Enterprise Data Warehouse — Aggregations and the Star Schema
- On-Line Analytical Processing (OLAP)
- Data Mining
- Key Performance Indicators
- BI Presentation - Client Tools
- BI Presentation - Portals
- Implementing ETL - Introduction to SQL Server 2005 Integration Services
- Building a Business Intelligence Solution, Part 1
- Building a Business Intelligence Solution, Part 2
- Building a Business Intelligence Solution, Part 3
- Tips and Troubleshooting
- SQL Server and Microsoft Excel Integration
- Tips for the SQL Server Tools: SQL Server 2000
- Tips for the SQL Server Tools – SQL Server 2005
- Transaction Log Troubles
- SQL Server Connection Problems
- Orphaned Database Users
- Additional Resources
- Tools and Downloads
- Utilities (Free)
- Tool Review (Free): DBDesignerFork
- Aqua Data Studio
- Microsoft SQL Server Best Practices Analyzer
- Utilities (Cost)
- Quest Software's TOAD for SQL Server
- Quest Software's Spotlight on SQL Server
- SQL Server on Microsoft's Virtual PC
- Red Gate SQL Bundle
- Microsoft's Visio for Database Folks
- Quest Capacity Manager
- SQL Server Help
- Visual Studio Team Edition for Database Professionals
- Microsoft Assessment and Planning Solution Accelerator
- Aggregating Server Data from the MAPS Tool
SQL Server runs on Windows. It doesn’t run on anything else (if you don’t count Windows Mobile), so before you even install SQL Server there are some things you should tune in Windows to make the system run fast and stable.
And of course Windows runs on hardware. So even before you tune Windows, you need to have the best hardware you can afford for your system.
If you’re getting ready to install SQL Server on a new Windows system stop. Read this article, open the links I mention, and take time to fully understand what your needs are. If you already have SQL Server installed on a system, that’s OK, you can read along as well. You might find some things you can change to tune your system.
Before I begin, it’s important to understand that this article is VERY specific to three things: the hardware I’m setting up today, the Windows 2008 Enterprise operating system, and SQL Server 2008 Enterprise with Service Pack 1. Does that mean you can’t use this information if you’re not using exactly the same hardware I am, you’re running another version of Windows, or have a different version or edition of SQL Server? Not at all but it does mean you shouldn’t apply what you’ve learned here without understanding it first. Much of this information will be very useful to you even with different hardware, operating systems or SQL Server versions and editions. It’s just that you should balance what you learn here with what I have.
Speaking of that configuration let me briefly explain my system and the goals I have in this exercise.
The Hardware
As I’ve mentioned before, if you’re going to implement mission-critical software (and almost all software is, these days) then you should use server-class equipment. Yes, the same processor, memory and network cards can be found in workstation class machines, and yes, those are a LOT cheaper. But everything from the motherboards to the power supplies on a true server-class system is thicker, stronger, lasts longer, and is designed not to be turned off ever. And I always install 64-bit processors it’s even hard to find a server that isn’t anyway. The speed, memory and other architectures here just make that decision a no-brainer.
But sometimes you have to play the hand you’re dealt. In my case I’m implementing a proof-of-concept system, meaning that we want to go to the next level of testing (we already made sure the application really works) for a single department to run the application so that we can get some load testing and so on. I chose to go with a faster workstation class machine than an older server, since I will have the same kind of processors and memory in the server that I do in this machine. I wasn’t able to specify the machine, but I was able to get more memory and another hard drive in it at least.
I’m have a Dell Precision WorkStation T7400 using a Xeon Dual Processor, with 8 GB of RAM and two 250GB internal hard drives. It has a Broadcom NetXtreme Gigabit Ethernet Adaptor (built in). I use this system in a small department using database On-Line Transaction Processing (OLTP) workloads on a standard Gigabit Ethernet network, and I’m the administrator on the system. I am responsible for configuring everything, but I didn’t get to specify the purchase of this system.
When we do get ready for production, I’ll take the data from the monitoring I do here and design the final hardware. It will have a high speed CPU, and I’ll decide then how many I need. I’ll also set the memory size, speed and type at that time, all based on my monitoring. The most difficult choices in a server are the network interfaces and the I/O subsystem, or storage.
You might think that the network cards choice is easy, because almost all servers have them built right in to the motherboard. But the reason that the choice is difficult choice is that almost all servers have them built right in to the motherboard, and they don’t always do what I want. So I have to argue for another NIC, even thought the company has already paid for one or more of them with the purchase of the server. But I have some specific needs for mine I want a card that has a lot of options, and one that is 64-bit compatible. I like the PCI-E specification (as of this writing) for my bus at a minimum.
For the I/O (or storage) subsystem, there are two considerations. One is the internal storage, the other is the external storage. In the case of external storage, the world of SANs, NAS and iSCSI is another topic entirely, and something the DBA doesn’t always get to specify anyway.
Moving on to the internal (or at least Directly Attached Storage) area, there are more things to control. At the very least, the drives should be very fast the faster the spin rate the better. They should also have a wide access path, so whether it is a SCSI, PCI or even Flash drive, ensure that the throughput is the highest you can afford. And as always, more drives are better it allows the system to work on multiple things at once, and that’s a good thing for one of the slowest parts of your system.
I’ll explain what I’ve done with all of these on my system as I progress through this article.
Preparing for the Operating System Installation
In almost any decision, I try to start with the end in mind. I know that the application will work best with some of the features in SQL Server, so that’s my back-end. Several of those features are specific to SQL Server 2008, so that’s my version. I looked into that version and found that I wanted features like Resource Governor, the Data Collector, Transparent Encryption and Compression, so I chose the Enterprise Edition.
With those choices made (quite logically, I hope!) I researched the Operating System optimizations that would benefit SQL Server the most. I found this article that talked about the performance enhancements in Windows 2008 that SQL Server 2008 leveraged: http://msdn.microsoft.com/en-us/library/dd263442.aspx. I then researched that Operating System, and determined that the Enterprise Edition was what I needed here as well, so that factored into the cost of the solution. I want to be sure I can present a realistic budget to management, so that they can calculate the Return On Investment (ROI) for this solution. Sure, I can make the budget look better by using lower SKUs of both Windows and SQL Server, but this is the best way to go in my estimation of the project. Again, I’ll work with what I have at the end of the day.
Next, I found this fantastic whitepaper on Windows Server 2008 tuning: http://www.microsoft.com/whdc/system/sysperf/Perf_tun_srv.mspx. It actually forms the basis for a lot of the decisions I’ll implement in this article. I read it cover to cover and highlighted the parts that mattered to me.
The point of all this is that even if you’re installing another version of the operating system or SQL Server, this is a process you can follow. Lay out your requirements, and then research the back-end and OS to match up what will work. Lots of reading, lots of searching. But the result is worth it.
The next step was to layout the drives. For the optimal performance, I would need a LOT more drives, since I like to separate the following (at a minimum):
- Operating System Binaries
- OS Page Files (don’t need this to be on a fault-tolerant system)
- SQL Server Binaries
- SQL Server Data Files (usually even multiple drives here)
- SQL Server Log Files
- SQL Server Indexes
- SQL Server Backup Files
- SQL Server Filestream, Replication, ETL, etc. files
But of course I don’t have that many drives, so I’m going to put the Operating System, Page Files, SQL Server Binaries and SQL Server Logs on one drive, and everything else on the other. That will allow me to at least do some representative testing.
Installing and Configuring the Operating System
With everything in place, the installation of the Operating System was pretty much next-next-finish. But I did follow the best practices on the Installation as recommended by the install documentation. The only thing I ensure here (and it really isn’t out of the ordinary anyway) is that I only use the NTFS file system. I think this is pretty obvious, but no server should use anything else.
After the installation, I installed my virus-scan software. I do this even before I connect to the network, because I don’t want anything strange to happen to my system.
And important note here is that I configure my virus scan software to exclude my SQL Server files. They are going to be on a protected directory, and they are owned and controlled by the account that starts SQL Server, so they shouldn’t be held to the overhead of being scanned. Even though it isn’t installed yet, I configure the MDF, LDF extensions and so on so that they are not scanned.
Now I go online and pull down all the updates to the Operating System, the virus software, and then one of the most important steps the proper drivers. You should get the latest, certified, tested, approved drivers from the manufacturer for every hardware device you have, right down to the monitor. It makes a difference I’ve seen a poorly performing driver trash the performance on a SQL Server.
I’m still not ready for that installation yet. Not by a long shot. With all the drivers installed, I go through another round of updates. Every time you install new software (even a driver) there may be updates for it from Windows, so after I update the drivers I hot the web for an update scan again and reboot as required.
Finally everything is installed, and I can start configuring.
Tuning the Network
Now that the drivers are in place, I can set the parameters that will make it faster. Again, don’t do this blindly I am NOT saying that these are blanket changes that will automatically help any system in fact, they could possibly cause your system to slow down. Research each of these options to see how they could help, and then test on a test system of course.
For my system, the following settings will help the throughput for my network card, so I turn them on:
- Checksum offload
- Segmentation offload
- TCP offload engine (TOE
- Receive-side scaling (RSS)
To do that, I opened the Control Panel and then double-clicked the Network Connections applet.
I then right-clicked my network card and selected Properties.
From there I clicked the Configure button.
Then I set all of the options I listed. To use the TOE feature, I had to enable that option in the operating system by running the following in a command prompt:
netsh int tcp set global chimney = enabled
The final setting I made was to ensure that the speed and duplex were fixed to the highest speed I trusted on my network.
Tuning the I/O
Next I moved on to the I/O subsystem. I’m using NTFS, and I have the best layout I can with these drives.
In Windows Server 2008, you can specify an internal priority level on individual I/Os. The storage code that manages these priorities has some overhead, so for the SQL Server drives, I disabled the I/O priority management by setting the following registry entry for them to zero:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceClasses\{Device GUID}\
DeviceParameters\Classpnp\IdlePrioritySupported
Be careful here you’re toying with the Registry, which can be a bad thing. Once again, research, understand, test, use a test system.
Also on my drives, and possibly even on my production server (assuming I trust the batter backup REALLY well) I’ll enable the system to believe that the data is written to the drive, even when it’s just to the cache.
To do that, I opened the Computer object in Windows.
I right-clicked each drive and selected the Hardware tab.
I clicked the Properties button for each drive, and navigated to the Policies tab.
That’s where I set the options for the performance gains. Before you do this you guessed it research, understand, test, use a test system.
Tuning the Memory
More memory is better, of course, specifically with 64-bit operating systems. And there’s an entirely different setup for memory within SQL server, which I’m not going to cover here.
The tuning for the memory really has to do with the paging file. The paging file is where Windows writes out older memory when there isn’t enough to keep everything in physical RAM. In extreme cases, it has to write out memory it’s using to that file, and a file is immensely slower than memory. So even having to use a paging file is bad, but in the case of low memory it’s unavoidable. A common setting when you don’t have a lot of RAM (say below 2-4GB) is to make the page file 1.5 times the size of that RAM. When you have a lot, you may not even need a page file. But I always set one, even if I don’t think I’ll need it.
For this test system, I’ll go with 8GB or so. By default, Windows 2008 “manages” this size dynamically, but I don’t want it to do that. So I’ll set a lower and upper boundary at the same amount, so that the system can set it and forget it. The less CPU cycles it spends on something like this the better.
I start off in the Control Panel again, this time in the System applet.
I click the Advanced system settings link on the left, and then the Advanced tab.
I then click the Change... button on the Virtual Memory area.
To finish off, I click the Custom size value, and then set 8499 as the top and bottom value, placing them on drive C:. I click OK everywhere, and then reboot.
Is this the same setting you need? Nope. You know the drill by now - research, understand, test, use a test system. Even though you don’t have a setting to go on, setting an upper and lower boundary at the same number is a good practice.
Well, that’s it for this article. In the final installment, I’ll finish this up, and show you a little of the testing I set up to be ready for the SQL Server installation.
InformIT Articles and Sample Chapters
If you’re new to Windows 2008, check out the basics in Windows Server 2008 Technology Primer.
Books and eBooks
To go further with Windows Performance tuning, The Complete Guide to Windows Server 2008, by John Savill, will serve you well.
Online Resources
If you’re using Windows 2008 Server R2, check out this whitepaper for tuning.